]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
sdl: Fix build with newer kernel headers.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Sep 2011 08:34:12 +0000 (08:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Sep 2011 08:34:12 +0000 (08:34 +0000)
lfs/sdl

diff --git a/lfs/sdl b/lfs/sdl
index 5197e431de6660cada48070d1bda3595cde3aa02..2e5f0f2715e7f4a643edd539d195e6b57c5da16e 100644 (file)
--- a/lfs/sdl
+++ b/lfs/sdl
@@ -77,6 +77,10 @@ dist:
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+ifeq "$(MACHINE)" "arm"
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/SDL-1.2.11-asm-page.h.patch
+       cd $(DIR_APP) && sed "/asm\/page.h/d" -i src/video/fbcon/SDL_fbvideo.c
+endif
        cd $(DIR_APP) && ./configure --prefix=/usr
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install