From: Grazvydas Ignotas Date: Tue, 15 May 2012 22:47:47 +0000 (+0300) Subject: build fixes X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ece4a9dfa0d8e96e4378e6862fb44d8edbedac4;p=sgx.git build fixes --- diff --git a/Kbuild b/Kbuild index a34841f..ac8f40e 100644 --- a/Kbuild +++ b/Kbuild @@ -63,3 +63,7 @@ obj-y := services4/3rdparty/dc_omap3430_linux/ endif obj-y += services4/3rdparty/bufferclass_ti/ +ifeq ($(VERSION), 3) +export EXTRA_CFLAGS += -DAUTOCONF_INCLUDED +endif + diff --git a/services4/3rdparty/dc_omap3430_linux/Kbuild b/services4/3rdparty/dc_omap3430_linux/Kbuild index e867f83..583151a 100644 --- a/services4/3rdparty/dc_omap3430_linux/Kbuild +++ b/services4/3rdparty/dc_omap3430_linux/Kbuild @@ -13,5 +13,9 @@ EXTRA_CFLAGS = -DLINUX \ -I$(PVR_BUILD_DIR)/services4/system/include \ $(SYS_CFLAGS.1) \ +ifeq ($(VERSION), 3) +export EXTRA_CFLAGS += -DAUTOCONF_INCLUDED +endif + obj-m := omaplfb.o omaplfb-y := omaplfb_displayclass.o omaplfb_linux.o diff --git a/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c b/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c index 8b0f2ff..249f983 100644 --- a/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c +++ b/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c @@ -38,6 +38,11 @@ #include "kerneldisplay.h" #include "omaplfb.h" +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38) +#define acquire_console_sem console_lock +#define release_console_sem console_unlock +#endif + static void *gpvAnchor; static int fb_idx = 0; diff --git a/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c b/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c index fa52836..7f40633 100644 --- a/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c +++ b/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c @@ -61,7 +61,13 @@ extern int omap_dispc_request_irq(unsigned long, void (*)(void *), void *); extern void omap_dispc_free_irq(unsigned long, void (*)(void *), void *); extern void omap_dispc_set_plane_base(int plane, IMG_UINT32 phys_addr); #else +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)) +#include