]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Correct SDL build flags
authorSimon Glass <sjg@chromium.org>
Mon, 17 Dec 2018 16:12:16 +0000 (09:12 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Jan 2019 00:47:13 +0000 (17:47 -0700)
The check for CONFIG_SANDBOX_SDL in config.mk does not work since the
build config is not available by the time that file is included. Remove it
so that we always call sdl-config except when NO_SDL is used.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/config.mk
arch/sandbox/cpu/sdl.c

index 7226b7be4286dcc24863c0afad76a1eebe3b3499..31a12db103d77259c32c2f6cba4d0e0d178a7af2 100644 (file)
@@ -11,11 +11,9 @@ PLATFORM_LIBS += -lrt
 ifneq ($(NO_SDL),)
 PLATFORM_CPPFLAGS += -DSANDBOX_NO_SDL
 else
-ifdef CONFIG_SANDBOX_SDL
 PLATFORM_LIBS += $(shell sdl-config --libs)
 PLATFORM_CPPFLAGS += $(shell sdl-config --cflags)
 endif
-endif
 
 cmd_u-boot__ = $(CC) -o $@ -Wl,-T u-boot.lds $(u-boot-init) \
        -Wl,--start-group $(u-boot-main) -Wl,--end-group \
index f668f5379a4d648dc0cba4586da8ec72e93e2252..080c7c8d74d21dcf892e8aec7748823cf350f9ed 100644 (file)
@@ -6,7 +6,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <linux/input.h>
-#include <SDL/SDL.h>
+#include <SDL.h>
 #include <asm/state.h>
 
 /**