This is not useful on the sandbox architecture since we can simply link all
our code with U-Boot.
Signed-off-by: Simon Glass <sjg@chromium.org>
 
 # The "tools" are needed early, so put this first
 # Don't include stuff already done in $(LIBS)
-SUBDIRS        = tools \
-         examples/standalone \
-         examples/api
+SUBDIRS        = tools
 
 .PHONY : $(SUBDIRS) $(VERSION_FILE) $(TIMESTAMP_FILE)
 
 include $(obj)include/config.mk
 export ARCH CPU BOARD VENDOR SOC
 
+ifndef CONFIG_SANDBOX
+SUBDIRS += examples/standalone \
+         examples/api
+endif
+
 # set default to nothing for native builds
 ifeq ($(HOSTARCH),$(ARCH))
 CROSS_COMPILE ?=