From aacec4fb82ff82d202e3eaa0a7de63aa48f027d9 Mon Sep 17 00:00:00 2001 From: "Franklin S. Cooper Jr" Date: Sat, 31 Jan 2015 04:45:02 +0000 Subject: Graphics SDK: Add 05.01.01.02 * This graphics sdk is a minor update to the 05.01.01.01 version but includes updates to support the 3.14 kernel. Signed-off-by: Franklin S. Cooper Jr Signed-off-by: Denys Dmytriyenko --- .../omap3-sgx-modules_5.01.01.02.bb | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb (limited to 'recipes-bsp') diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb new file mode 100644 index 00000000..6a07d4f8 --- /dev/null +++ b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb @@ -0,0 +1,68 @@ +DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=60422928ba677faaa13d6ab5f5baaa1e" + +TI_BIN_UNPK_CMDS="Y: qY:workdir:Y" +require ../../recipes-ti/includes/ti-eula-unpack.inc + +SGXPV = "5_01_01_02" +IMGPV = "1.10.2359475" + +inherit module + +MACHINE_KERNEL_PR_append = "a" +PR = "${MACHINE_KERNEL_PR}" + +BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin" +MD5SUM_HARDFP = "94bcb31ea7eb50df1dfa4037055b638e" +SHA256SUM_HARDFP = "54641222cdb49b03f996cbd6412de227198d9e084f5647d706bbf4217e8cdb07" + +# For now we only have hardfp version +python __anonymous() { + tunes = bb.data.getVar("TUNE_FEATURES", d, 1) + if not tunes: + return + pkgn = bb.data.getVar("PN", d, 1) + pkgv = bb.data.getVar("PV", d, 1) + if "callconvention-hard" not in tunes: + bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) + raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) +} + +BINFILE := "${BINFILE_HARDFP}" + +SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}" + + +SRC_URI[md5sum] := "${MD5SUM_HARDFP}" +SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}" + +TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}" +S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM" + +PVRBUILD = "release" +export KERNELDIR = "${STAGING_KERNEL_DIR}" + +INHIBIT_PACKAGE_STRIP = "1" + +TI_PLATFORM_omap3 = "omap3630" +TI_PLATFORM_ti814x = "ti81xx" +TI_PLATFORM_ti816x = "ti81xx" +TI_PLATFORM_ti33x = "ti335x" +TI_PLATFORM_ti43x = "ti43xx" + +MODULESLOCATION_omap3 = "dc_omapfb3_linux" +MODULESLOCATION_ti814x = "dc_ti81xx_linux" +MODULESLOCATION_ti816x = "dc_ti81xx_linux" +MODULESLOCATION_ti33x = "dc_ti335x_linux" +MODULESLOCATION_ti43x = "dc_ti43xx_linux" + +MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}" + +do_install() { + mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr + cp ${S}/pvrsrvkm.ko \ + ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \ + ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \ + ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr +} -- cgit v1.2.3-54-g00ecf