diff options
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.bb | 81 |
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 @@ | |||
1 | DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs (for X11)" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=ea5743acf520dd81ca172e69f818a3d4" | ||
4 | |||
5 | TI_BIN_UNPK_CMDS="Y: qY:workdir:Y" | ||
6 | require ../../recipes-ti/includes/ti-eula-unpack.inc | ||
7 | |||
8 | SGXPV = "4_09_00_01" | ||
9 | IMGPV = "1.9.2188537" | ||
10 | |||
11 | inherit module | ||
12 | |||
13 | MACHINE_KERNEL_PR_append = "d" | ||
14 | PR = "${MACHINE_KERNEL_PR}" | ||
15 | |||
16 | # Select the corresponding hardfp/softfp filename and checksums based on tune flags | ||
17 | BINFILE_SOFTFP = "Graphics_SDK_setuplinux_${SGXPV}_minimal_demos.bin" | ||
18 | MD5SUM_SOFTFP = "bd35e9d8843aff3a2aca9d41e7db1c7d" | ||
19 | SHA256SUM_SOFTFP = "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249247647" | ||
20 | |||
21 | BINFILE_HARDFP = "Graphics_SDK_setuplinux_${SGXPV}_hardfp_minimal_demos.bin" | ||
22 | MD5SUM_HARDFP = "c9f656dce062d1ab10afffd4dfb71b67" | ||
23 | SHA256SUM_HARDFP = "dbfeba8e1298f139495816334edec1455e6b49b1e11bd1b2aa0a888e5788bb6b" | ||
24 | |||
25 | BINFILE = "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${BINFILE_HARDFP}', '${BINFILE_SOFTFP}', d)}" | ||
26 | |||
27 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE}" | ||
28 | |||
29 | SRC_URI[md5sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${MD5SUM_HARDFP}', '${MD5SUM_SOFTFP}', d)}" | ||
30 | SRC_URI[sha256sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${SHA256SUM_HARDFP}', '${SHA256SUM_SOFTFP}', d)}" | ||
31 | |||
32 | TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}" | ||
33 | S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM" | ||
34 | |||
35 | PVRBUILD = "release" | ||
36 | export KERNELDIR = "${STAGING_KERNEL_DIR}" | ||
37 | |||
38 | INHIBIT_PACKAGE_STRIP = "1" | ||
39 | |||
40 | TI_PLATFORM_omap3 = "omap3630" | ||
41 | TI_PLATFORM_ti814x = "ti81xx" | ||
42 | TI_PLATFORM_ti816x = "ti81xx" | ||
43 | TI_PLATFORM_ti33x = "ti335x" | ||
44 | |||
45 | MODULESLOCATION_omap3 = "dc_omapfb3_linux" | ||
46 | MODULESLOCATION_ti814x = "dc_ti81xx_linux" | ||
47 | MODULESLOCATION_ti816x = "dc_ti81xx_linux" | ||
48 | MODULESLOCATION_ti33x = "dc_ti335x_linux" | ||
49 | |||
50 | export SUPPORT_XORG ?= "1" | ||
51 | |||
52 | MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}" | ||
53 | |||
54 | do_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 | |||
74 | do_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 | } | ||