[Concept,06/10] examples: Allow compilation of examples on sandbox

Message ID 20250905212330.354827-7-sjg@u-boot.org
State New
Headers
Series ulib: Provide examples for building outside the tree |

Commit Message

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

The 'standalone' legacy-API examples don't work with sandbox, but the
forthcoming ulib ones will. Adjust the !SANDBOX restriction to apply
only to the former.

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

 examples/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/examples/Kconfig b/examples/Kconfig
index 4d5a2a9c8dd..5738d555d22 100644
--- a/examples/Kconfig
+++ b/examples/Kconfig
@@ -4,7 +4,6 @@ 
 
 config EXAMPLES
 	bool "Compile legacy API examples"
-	depends on !SANDBOX
 	default y if ARCH_QEMU_ARM
 	help
 	  U-Boot provides an legacy API for standalone applications. Examples
@@ -12,6 +11,7 @@  config EXAMPLES
 
 config EXAMPLES_STANDALONE
 	bool "Compile standalone examples"
+	depends on !SANDBOX
 	depends on EXAMPLES
 	default y
 	help