[PATCH 4/5] Kconfig: make CONFIG_FRAMEPOINTER available on arm64
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Thu Jul 3 07:19:50 CEST 2025
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 05b7f410fa5..99b1596b843 100644
--- a/Kconfig
+++ b/Kconfig
@@ -165,6 +165,31 @@ config CC_COVERAGE
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
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 8c6feae5735..f60ad5e9ace 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -150,27 +150,6 @@ config ARCH_RV64I
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.48.1
More information about the U-Boot
mailing list