summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb')
-rw-r--r--recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb81
1 files changed, 0 insertions, 81 deletions
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
deleted file mode 100644
index f033effc..00000000
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
+++ /dev/null
@@ -1,81 +0,0 @@
1DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs (for X11)"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=ea5743acf520dd81ca172e69f818a3d4"
4
5TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
6require ../../recipes-ti/includes/ti-eula-unpack.inc
7
8SGXPV = "4_09_00_01"
9IMGPV = "1.9.2188537"
10
11inherit module
12
13MACHINE_KERNEL_PR_append = "d"
14PR = "${MACHINE_KERNEL_PR}"
15
16# Select the corresponding hardfp/softfp filename and checksums based on tune flags
17BINFILE_SOFTFP = "Graphics_SDK_setuplinux_${SGXPV}_minimal_demos.bin"
18MD5SUM_SOFTFP = "bd35e9d8843aff3a2aca9d41e7db1c7d"
19SHA256SUM_SOFTFP = "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249247647"
20
21BINFILE_HARDFP = "Graphics_SDK_setuplinux_${SGXPV}_hardfp_minimal_demos.bin"
22MD5SUM_HARDFP = "c9f656dce062d1ab10afffd4dfb71b67"
23SHA256SUM_HARDFP = "dbfeba8e1298f139495816334edec1455e6b49b1e11bd1b2aa0a888e5788bb6b"
24
25BINFILE = "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${BINFILE_HARDFP}', '${BINFILE_SOFTFP}', d)}"
26
27SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE}"
28
29SRC_URI[md5sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${MD5SUM_HARDFP}', '${MD5SUM_SOFTFP}', d)}"
30SRC_URI[sha256sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${SHA256SUM_HARDFP}', '${SHA256SUM_SOFTFP}', d)}"
31
32TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
33S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
34
35PVRBUILD = "release"
36export KERNELDIR = "${STAGING_KERNEL_DIR}"
37
38INHIBIT_PACKAGE_STRIP = "1"
39
40TI_PLATFORM_omap3 = "omap3630"
41TI_PLATFORM_ti814x = "ti81xx"
42TI_PLATFORM_ti816x = "ti81xx"
43TI_PLATFORM_ti33x = "ti335x"
44
45MODULESLOCATION_omap3 = "dc_omapfb3_linux"
46MODULESLOCATION_ti814x = "dc_ti81xx_linux"
47MODULESLOCATION_ti816x = "dc_ti81xx_linux"
48MODULESLOCATION_ti33x = "dc_ti335x_linux"
49
50export SUPPORT_XORG ?= "1"
51
52MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
53
54do_compile() {
55 export TOOLCHAIN="${TOOLCHAIN_PATH}"
56 export PLAT_CC="${CC}"
57 export PLAT_CPP="${CXX}"
58 export PLAR_AR="${AR}"
59 for kernelver in ${WORKDIR}/../../${PREFERRED_PROVIDER_virtual/kernel}/* ; do
60 cp -f $kernelver/git/drivers/gpu/drm/*.c ${S}/services4/3rdparty/linux_drm/
61 done
62 if [ $(echo -e "${KERNEL_VERSION}\n3.3" | sort --version-sort | head -1) = "3.3" ] ; then
63 cp -f ${S}/services4/3rdparty/linux_drm/Kbuild_3.3 \
64 ${S}/services4/3rdparty/linux_drm/Kbuild || true
65 else
66 if [ $(echo -e "${KERNEL_VERSION}\n3.2" | sort --version-sort | head -1) = "3.2" ] ; then
67 cp -f ${S}/services4/3rdparty/linux_drm/Kbuild_3.2 \
68 ${S}/services4/3rdparty/linux_drm/Kbuild || true
69 fi
70 fi
71 oe_runmake BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}
72}
73
74do_install() {
75 mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
76 cp ${S}/pvrsrvkm.ko \
77 ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
78 ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
79
80 cp ${S}/services4/3rdparty/linux_drm/drm.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
81}