summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/Makefile
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-12 15:38:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-25 10:15:29 +0200
commit9d73b518fc3c61640123f8499aab7f8373e41dbd (patch)
treeaf61e6fd5a655afb46f66aa8ca7d0d68f2026c83 /arch/sandbox/Makefile
parent910d0132905ca3ff12dddbcbceb94b4b5112ab5c (diff)
downloadbarebox-9d73b518fc3c61640123f8499aab7f8373e41dbd.tar.gz
barebox-9d73b518fc3c61640123f8499aab7f8373e41dbd.tar.xz
sandbox: add sdl video support
This will allow speed up the dev on framebuffer. By default the resolution is VGA but this can be changed via cmdline. We use a pthread to Flip the screen every 100ms as we can not detect when barebox update it as barebox simpliy write in a buffer. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/Makefile')
-rw-r--r--arch/sandbox/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile
index 9fd18a23b5..c0aa8c6ed2 100644
--- a/arch/sandbox/Makefile
+++ b/arch/sandbox/Makefile
@@ -9,8 +9,7 @@ lds-y := $(BOARD)/barebox.lds
TEXT_BASE = $(CONFIG_TEXT_BASE)
-
-CFLAGS += -Dmalloc=barebox_malloc \
+CFLAGS += -Dmalloc=barebox_malloc -Dcalloc=barebox_calloc \
-Dfree=barebox_free -Drealloc=barebox_realloc \
-Dread=barebox_read -Dwrite=barebox_write \
-Dopen=barebox_open -Dclose=barebox_close \
@@ -40,9 +39,10 @@ archprepare: maketools
PHONY += maketools
+SDL_LIBS-$(CONFIG_DRIVER_VIDEO_SDL) := $(shell pkg-config sdl --libs)
cmd_barebox__ = $(CC) -o $@ -Wl,-T,$(barebox-lds) \
-Wl,--start-group $(barebox-common) -Wl,--end-group \
- -lrt -lpthread
+ -lrt -lpthread $(SDL_LIBS-y)
common-y += $(BOARD) arch/sandbox/os/