]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Kconfig: put TPL_OPTIMIZE_INLINING next to SPL_OPTIMIZE_INLINING
authorQuentin Schulz <quentin.schulz@cherry.de>
Fri, 12 Dec 2025 18:13:13 +0000 (19:13 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 24 Dec 2025 04:06:42 +0000 (12:06 +0800)
Right now LTO is in-between both when using menuconfig.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Kconfig

diff --git a/Kconfig b/Kconfig
index 1d60034268553ff38b9a5e9a001a947d99208cb2..c435fb4318260c87618f232e7b600bad531cd38a 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -140,6 +140,15 @@ config SPL_OPTIMIZE_INLINING
          do what it thinks is best, which is desirable in some cases for size
          reasons.
 
+config TPL_OPTIMIZE_INLINING
+       bool "Allow compiler to uninline functions marked 'inline' in TPL"
+       depends on TPL
+       help
+         This option determines if U-Boot forces gcc to inline the functions
+         developers have marked 'inline'. Doing so takes away freedom from gcc to
+         do what it thinks is best, which is desirable in some cases for size
+         reasons.
+
 config ARCH_SUPPORTS_LTO
        bool
 
@@ -163,15 +172,6 @@ config LTO
 
          If unsure, say n.
 
-config TPL_OPTIMIZE_INLINING
-       bool "Allow compiler to uninline functions marked 'inline' in TPL"
-       depends on TPL
-       help
-         This option determines if U-Boot forces gcc to inline the functions
-         developers have marked 'inline'. Doing so takes away freedom from gcc to
-         do what it thinks is best, which is desirable in some cases for size
-         reasons.
-
 config CC_COVERAGE
        bool "Enable code coverage analysis"
        depends on SANDBOX