diff options
Diffstat (limited to 'meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb')
-rw-r--r-- | meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb new file mode 100644 index 00000000..755cc4f5 --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb | |||
@@ -0,0 +1,71 @@ | |||
1 | DESCRIPTION = "Userspace libraries for PowerVR SGX chipset on TI SoCs" | ||
2 | HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-um-linux" | ||
3 | LICENSE = "TI-TSPA" | ||
4 | LIC_FILES_CHKSUM = "file://TI-Linux-Graphics-DDK-UM-Manifest.doc;md5=b17390502bc89535c86cfbbae961a2a8" | ||
5 | |||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|am65xx" | ||
8 | |||
9 | PR = "r38" | ||
10 | |||
11 | BRANCH = "ti-img-sgx/kirkstone-mesa/${PV}" | ||
12 | |||
13 | SRC_URI = " \ | ||
14 | git://git.ti.com/git/graphics/omap5-sgx-ddk-um-linux.git;protocol=https;branch=${BRANCH} \ | ||
15 | file://pvrsrvkm.rules \ | ||
16 | " | ||
17 | SRCREV = "bbae7217051341f515515ec190e165119102f45a" | ||
18 | |||
19 | TARGET_PRODUCT:ti33x = "ti335x" | ||
20 | TARGET_PRODUCT:ti43x = "ti437x" | ||
21 | TARGET_PRODUCT:omap-a15 = "ti572x" | ||
22 | TARGET_PRODUCT:am65xx = "ti654x" | ||
23 | |||
24 | INITSCRIPT_NAME = "rc.pvr" | ||
25 | INITSCRIPT_PARAMS = "defaults 8" | ||
26 | |||
27 | PACKAGECONFIG ??= "udev" | ||
28 | PACKAGECONFIG[udev] = ",,,udev" | ||
29 | |||
30 | def use_initscript(d): | ||
31 | sysvinit = bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d) | ||
32 | udev = bb.utils.contains('PACKAGECONFIG', 'udev', True, False, d) | ||
33 | return sysvinit and not udev | ||
34 | |||
35 | inherit ${@oe.utils.ifelse(use_initscript(d), 'update-rc.d', '')} | ||
36 | |||
37 | RDEPENDS:${PN} += "libdrm" | ||
38 | |||
39 | RRECOMMENDS:${PN} += "ti-sgx-ddk-km" | ||
40 | |||
41 | S = "${WORKDIR}/git" | ||
42 | |||
43 | do_install () { | ||
44 | oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} | ||
45 | |||
46 | without_sysvinit=${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)} | ||
47 | with_udev=${@bb.utils.contains('PACKAGECONFIG', 'udev', 'true', 'false', d)} | ||
48 | |||
49 | # Delete initscript if it is not needed or would conflict with the udev rules | ||
50 | if ${@oe.utils.ifelse(use_initscript(d), 'false', 'true')}; then | ||
51 | rm -rf ${D}${sysconfdir}/init.d | ||
52 | rmdir --ignore-fail-on-non-empty ${D}${sysconfdir} | ||
53 | fi | ||
54 | |||
55 | if $with_udev; then | ||
56 | install -m644 -D ${WORKDIR}/pvrsrvkm.rules \ | ||
57 | ${D}${nonarch_base_libdir}/udev/rules.d/80-pvrsrvkm.rules | ||
58 | fi | ||
59 | |||
60 | chown -R root:root ${D} | ||
61 | } | ||
62 | |||
63 | FILES:${PN} = "${bindir}/*" | ||
64 | FILES:${PN} += " ${libdir}/*" | ||
65 | FILES:${PN} += "${includedir}/*" | ||
66 | FILES:${PN} += "${sysconfdir}/*" | ||
67 | FILES:${PN} += "${datadir}/*" | ||
68 | FILES:${PN} += "${nonarch_base_libdir}/udev/rules.d" | ||
69 | |||
70 | INSANE_SKIP:${PN} += "ldflags" | ||
71 | INSANE_SKIP:${PN} += "already-stripped" | ||