From db4c0d8df9ed828e916e471753d2e041b5e69bbd Mon Sep 17 00:00:00 2001 From: Steve Sakoman Date: Thu, 7 Oct 2010 10:09:03 -0700 Subject: [PATCH] omap3-sgx-modules: Fix to build for recent linux-omap kernels Signed-off-by: Koen Kooi --- ...002-Compile-fixes-for-recent-kernels.patch | 23 +++++++++++++++++++ .../omap3-sgx-modules_1.4.14.2616.bb | 1 + 2 files changed, 24 insertions(+) create mode 100644 recipes/powervr-drivers/omap3-sgx-modules/0002-Compile-fixes-for-recent-kernels.patch diff --git a/recipes/powervr-drivers/omap3-sgx-modules/0002-Compile-fixes-for-recent-kernels.patch b/recipes/powervr-drivers/omap3-sgx-modules/0002-Compile-fixes-for-recent-kernels.patch new file mode 100644 index 0000000000..1ceba8b139 --- /dev/null +++ b/recipes/powervr-drivers/omap3-sgx-modules/0002-Compile-fixes-for-recent-kernels.patch @@ -0,0 +1,23 @@ +--- GFX_Linux_KM/services4/system/omap3630/sysutils_linux.c-orig 2010-07-30 07:15:01.000000000 -0700 ++++ GFX_Linux_KM/services4/system/omap3630/sysutils_linux.c 2010-10-07 07:49:32.000000000 -0700 +@@ -32,6 +32,12 @@ + #include + #include + ++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,33)) ++#include ++#include ++#include ++#else ++ + #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31)) + #include + #include +@@ -49,6 +55,7 @@ + #endif + #endif + #endif ++#endif + + #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) && \ + (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,29)) diff --git a/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb b/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb index e6baa0495e..5c4e15de6d 100644 --- a/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb +++ b/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb @@ -13,6 +13,7 @@ IMGPV = "1.4.14.2616" BINFILE := "Graphics_SDK_setuplinux_${SGXPV}.bin" SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/Graphics_SDK_setuplinux_${SGXPV}.bin \ + file://0002-Compile-fixes-for-recent-kernels.patch \ " SRC_URI[md5sum] = "a027002dcd7164df467b1a315788d5fd" -- 2.39.5