[PATCH v3 03/10] Kconfig: make CONFIG_FRAMEPOINTER available on arm64
Casey Connolly
casey.connolly at linaro.org
Tue Jul 29 17:50:01 CEST 2025
From: Heinrich Schuchardt <xypron.glpk at gmx.de>
Move the frame pointer configuration to the generic setup section as it is
applicable for multiple architectures (RISC-V, arm64).
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
Kconfig | 25 +++++++++++++++++++++++++
arch/riscv/Kconfig | 21 ---------------------
2 files changed, 25 insertions(+), 21 deletions(-)
diff --git a/Kconfig b/Kconfig
index c883f11545952588aff574fdceb88b43407352d9..d8e117d0b1a511f12f7a54be1c84f4c45634828a 100644
--- a/Kconfig
+++ b/Kconfig
@@ -178,8 +178,33 @@ config CC_COVERAGE
help
Enabling this option will pass "--coverage" to gcc to compile
and link code instrumented for coverage analysis.
+if ARM64 || RISCV
+
+config FRAMEPOINTER
+ bool "Build with frame pointer for stack unwinding"
+ help
+ Choose this option to use the frame pointer so the stack can be
+ unwound if needed. This is useful for tracing where faults came
+ from as the source may be several functions back
+
+ If you say Y here, then the code size will be increased due to
+ having to store the fp.
+
+config SPL_FRAMEPOINTER
+ bool "Build SPL with frame pointer for stack unwinding"
+ depends on SPL
+ help
+ Choose this option to use the frame pointer so the stack can be
+ unwound if needed. This is useful for tracing where faults came
+ from as the source may be several functions back
+
+ If you say Y here, then the code size will be increased due to
+ having to store the fp.
+
+endif
+
config ASAN
bool "Enable AddressSanitizer"
depends on SANDBOX
help
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 8c6feae5735592ad12880f1d460568768b848a44..f60ad5e9acec76aca773fb77a4016cecf41fc679 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -149,29 +149,8 @@ config ARCH_RV64I
Choose this option to target the RV64I base integer instruction set.
endchoice
-config FRAMEPOINTER
- bool "Build with frame pointer for stack unwinding"
- help
- Choose this option to use the frame pointer so the stack can be
- unwound if needed. This is useful for tracing where faults came
- from as the source may be several functions back
-
- If you say Y here, then the code size will be increased due to
- having to store the fp.
-
-config SPL_FRAMEPOINTER
- bool "Build SPL with frame pointer for stack unwinding"
- depends on SPL
- help
- Choose this option to use the frame pointer so the stack can be
- unwound if needed. This is useful for tracing where faults came
- from as the source may be several functions back
-
- If you say Y here, then the code size will be increased due to
- having to store the fp.
-
choice
prompt "Code Model"
default CMODEL_MEDLOW
--
2.50.0
More information about the U-Boot
mailing list