[PATCH 2/4] xilinx: mbv: Allow compiler to optimize inlining in SPL
Michal Simek
michal.simek at amd.com
Thu Apr 30 14:03:45 CEST 2026
Enable CONFIG_SPL_OPTIMIZE_INLINING to let the compiler decide which
functions marked 'inline' to actually inline, rather than forcing all of
them. This reduces SPL code size by allowing the compiler to eliminate
unnecessary code duplication.
spl/u-boot-spl: all -872 text -872
Signed-off-by: Michal Simek <michal.simek at amd.com>
---
configs/xilinx_mbv32_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/xilinx_mbv32_defconfig b/configs/xilinx_mbv32_defconfig
index 4a61c9eb5e3d..9d0111fe8e53 100644
--- a/configs/xilinx_mbv32_defconfig
+++ b/configs/xilinx_mbv32_defconfig
@@ -19,6 +19,7 @@ CONFIG_TARGET_XILINX_MBV=y
# CONFIG_RISCV_ISA_F is not set
# CONFIG_SPL_SMP is not set
# CONFIG_AVAILABLE_HARTS is not set
+CONFIG_SPL_OPTIMIZE_INLINING=y
CONFIG_REMAKE_ELF=y
# CONFIG_EFI_LOADER is not set
CONFIG_FIT=y
--
2.43.0
base-commit: 6ada697cef076eaed1971c4877c402a91ad5cb48
branch: debian-sent3
More information about the U-Boot
mailing list