[Concept,04/18] sandbox: Enable ULIB just for the sandbox build

Message ID 20250909151824.2327219-5-sjg@u-boot.org
State New
Headers
Series ulib: Complete initial U-Boot library |

Commit Message

Simon Glass Sept. 9, 2025, 3:18 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

It doesn't really make sense to use ulib in anything other than the main
sandbox build, since it has the most features enabled. Move the setting
into defconfig so that other boards don't enable it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 Kconfig                   | 1 -
 configs/sandbox_defconfig | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/Kconfig b/Kconfig
index 76cfa74dc8b..c110c9f2a6e 100644
--- a/Kconfig
+++ b/Kconfig
@@ -100,7 +100,6 @@  endchoice
 
 config ULIB
 	bool "Build U-Boot as a library"
-	default y if SANDBOX
 	help
 	  Enable this to build a library which can be linked to other programs,
 	  to extend U-Boot's functionality.
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index d10b029f540..614947f0213 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -11,6 +11,7 @@  CONFIG_PCI=y
 CONFIG_DEBUG_UART=y
 CONFIG_SYS_MEMTEST_START=0x00100000
 CONFIG_SYS_MEMTEST_END=0x00101000
+CONFIG_ULIB=y
 CONFIG_EXAMPLES=y
 CONFIG_EFI_SECURE_BOOT=y
 CONFIG_EFI_RT_VOLATILE_STORE=y