diff options
Diffstat (limited to 'recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb')
-rw-r--r-- | recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb new file mode 100644 index 00000000..c29b9fee --- /dev/null +++ b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | |||
@@ -0,0 +1,76 @@ | |||
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=550702a031857e0426ef7d6f6cf2d9f4" | ||
5 | |||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | |||
8 | BRANCH = "ti-img-sgx/${PV}" | ||
9 | |||
10 | SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}" | ||
11 | SRCREV = "626c4f773b7c704f1d9a55ca80f60a79f809186d" | ||
12 | |||
13 | # There's only hardfp version available | ||
14 | python __anonymous() { | ||
15 | tunes = bb.data.getVar("TUNE_FEATURES", d, 1) | ||
16 | if not tunes: | ||
17 | return | ||
18 | pkgn = bb.data.getVar("PN", d, 1) | ||
19 | pkgv = bb.data.getVar("PV", d, 1) | ||
20 | if "callconvention-hard" not in tunes: | ||
21 | bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) | ||
22 | raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) | ||
23 | } | ||
24 | |||
25 | TARGET_PRODUCT_omap-a15 = "jacinto6evm" | ||
26 | TARGET_PRODUCT_ti33x = "ti335x" | ||
27 | TARGET_PRODUCT_ti43x = "ti437x" | ||
28 | |||
29 | INITSCRIPT_NAME = "rc.pvr" | ||
30 | INITSCRIPT_PARAMS = "defaults 8" | ||
31 | |||
32 | inherit update-rc.d | ||
33 | |||
34 | PR = "r8" | ||
35 | PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 omap5-sgx-ddk-um-linux" | ||
36 | |||
37 | RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap" | ||
38 | |||
39 | RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux" | ||
40 | RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev" | ||
41 | RPROVIDES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg" | ||
42 | |||
43 | RREPLACES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux" | ||
44 | RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev" | ||
45 | RREPLACES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg" | ||
46 | |||
47 | RCONFLICTS_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux" | ||
48 | RCONFLICTS_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev" | ||
49 | RCONFLICTS_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg" | ||
50 | |||
51 | S = "${WORKDIR}/git" | ||
52 | |||
53 | do_install () { | ||
54 | oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} | ||
55 | mkdir -p ${D}${libdir}/gbm | ||
56 | ln -sf ../libpvrGBMWSEGL.so.${PV} ${D}${libdir}/gbm/gbm_pvr.so | ||
57 | } | ||
58 | |||
59 | FILES_${PN} = "${bindir}/*" | ||
60 | FILES_${PN} += " ${libdir}/*" | ||
61 | FILES_${PN} += "${includedir}/*" | ||
62 | FILES_${PN} += "${sysconfdir}/*" | ||
63 | |||
64 | PACKAGES =+ "${PN}-plugins" | ||
65 | FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so" | ||
66 | RDEPENDS_${PN} += "${PN}-plugins" | ||
67 | |||
68 | ALLOW_EMPTY_${PN}-plugins = "1" | ||
69 | |||
70 | INHIBIT_PACKAGE_STRIP = "1" | ||
71 | INHIBIT_SYSROOT_STRIP = "1" | ||
72 | |||
73 | INSANE_SKIP_${PN} += "dev-so ldflags useless-rpaths" | ||
74 | INSANE_SKIP_${PN}-plugins = "dev-so" | ||
75 | |||
76 | CLEANBROKEN = "1" | ||