summaryrefslogtreecommitdiff
path: root/arch/sandbox/config.mk
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-03-22 17:12:58 -0600
committerSimon Glass <sjg@chromium.org>2014-05-09 14:47:13 -0600
commitad0e4639545b0928a3673114962ee1f3e56402d7 (patch)
tree14c62bdd6bf2ed2a0804cba5f354ee0057fa8118 /arch/sandbox/config.mk
parent1992dbfdb9886c3dfc4a505091895c851f736f3a (diff)
downloadu-boot-ad0e4639545b0928a3673114962ee1f3e56402d7.tar.gz
u-boot-ad0e4639545b0928a3673114962ee1f3e56402d7.tar.bz2
u-boot-ad0e4639545b0928a3673114962ee1f3e56402d7.zip
sandbox: Provide a build option to avoid using SDL
Some machines do not have SDL libraries installed, and it is still useful to build sandbox without LCD/keyboard support. Add an option for this, used as follows: make sandbox_config all NO_SDL=1 Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/config.mk')
-rw-r--r--arch/sandbox/config.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sandbox/config.mk b/arch/sandbox/config.mk
index e094ae2d05..c3f889fb1c 100644
--- a/arch/sandbox/config.mk
+++ b/arch/sandbox/config.mk
@@ -18,3 +18,9 @@ cmd_u-boot__ = $(CC) -o $@ -T u-boot.lds \
$(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot.map
CONFIG_ARCH_DEVICE_TREE := sandbox
+
+# Define this to avoid linking with SDL, which requires SDL libraries
+# This can solve 'sdl-config: Command not found' errors
+ifneq ($(NO_SDL),)
+PLATFORM_CPPFLAGS += -DSANDBOX_NO_SDL
+endif