mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
sandbox: Correct SDL build flags
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>
This commit is contained in:
parent
e74429bb17
commit
398ae02669
2 changed files with 1 additions and 3 deletions
|
@ -11,11 +11,9 @@ PLATFORM_LIBS += -lrt
|
||||||
ifneq ($(NO_SDL),)
|
ifneq ($(NO_SDL),)
|
||||||
PLATFORM_CPPFLAGS += -DSANDBOX_NO_SDL
|
PLATFORM_CPPFLAGS += -DSANDBOX_NO_SDL
|
||||||
else
|
else
|
||||||
ifdef CONFIG_SANDBOX_SDL
|
|
||||||
PLATFORM_LIBS += $(shell sdl-config --libs)
|
PLATFORM_LIBS += $(shell sdl-config --libs)
|
||||||
PLATFORM_CPPFLAGS += $(shell sdl-config --cflags)
|
PLATFORM_CPPFLAGS += $(shell sdl-config --cflags)
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
cmd_u-boot__ = $(CC) -o $@ -Wl,-T u-boot.lds $(u-boot-init) \
|
cmd_u-boot__ = $(CC) -o $@ -Wl,-T u-boot.lds $(u-boot-init) \
|
||||||
-Wl,--start-group $(u-boot-main) -Wl,--end-group \
|
-Wl,--start-group $(u-boot-main) -Wl,--end-group \
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
#include <SDL/SDL.h>
|
#include <SDL.h>
|
||||||
#include <asm/state.h>
|
#include <asm/state.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue