diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2021-01-31 21:18:40 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-02-08 10:57:05 +0100 |
commit | 12ad41f91f1824eb141e368294d97860644ab777 (patch) | |
tree | 032da73369f4cf1e2a4614c87b358a87fa64659b /arch/sandbox/Makefile | |
parent | f38f34a2f41e5981f2995231d94688d31104befc (diff) | |
download | barebox-12ad41f91f1824eb141e368294d97860644ab777.tar.gz barebox-12ad41f91f1824eb141e368294d97860644ab777.tar.xz |
sandbox: migrate to SDL 2.0
SDL 2.0 has been released more than 7 years ago and should be available
everywhere. Replace barebox's SDL 1.2 with SDL 2.0 instead:
- better maintained
- At least on Debian, you can't install x86_64 and i386 libsdl-dev at
the same time, which makes a quick use of CONFIG_SANDBOX_LINUX_I386
harder as the user needs to reinstall libraries. With SDL 2.0, it
works
- SDL 2.0 has easier audio API, which will be used in a later commit
- Wayland support for sandbox video driver
Port to SDL 2.0 and as we touch everything anyway, rename the
sdl_ functions to start with sdl_video_ to differentiate from upcoming
sdl_sound_.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/Makefile')
-rw-r--r-- | arch/sandbox/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index 17f9a298d7..ea594944e4 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -37,8 +37,8 @@ archprepare: maketools PHONY += maketools -ifeq ($(CONFIG_DRIVER_VIDEO_SDL),y) -SDL_LIBS := $(shell pkg-config sdl --libs) +ifeq ($(CONFIG_SDL),y) +SDL_LIBS := $(shell pkg-config sdl2 --libs) endif ifeq ($(CONFIG_GPIO_LIBFTDI1),y) @@ -64,7 +64,7 @@ endif BAREBOX_LDFLAGS += \ -Wl,-T,$(BAREBOX_LDS) \ -Wl,--whole-archive $(BAREBOX_OBJS) -Wl,--no-whole-archive \ - -lrt -lpthread $(SDL_LIBS) $(FTDI1_LIBS) \ + -lrt $(SDL_LIBS) $(FTDI1_LIBS) \ $(SANITIZER_LIBS) cmd_barebox__ = $(CC) -o $@ $(BAREBOX_LDFLAGS) |