sandbox: Provide a build option to avoid using SDL
[oweals/u-boot.git] / arch / sandbox / config.mk
index e094ae2d053f331e40475d46852303c79fa3274a..c3f889fb1cb1fcc1e6d8df22bd9ab652c46b9a7c 100644 (file)
@@ -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