diff options
author | e-ruei1@ti.com <e-ruei1@ti.com> | 2018-07-14 02:54:08 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2018-07-27 20:00:11 +0000 |
commit | 94fd10877499352cdf3fbe0871bc6300e6436b93 (patch) | |
tree | 76db86320c658e0e43cd9074b105cc294881c8be /recipes-graphics | |
parent | f708e4686fb0d3c7e5aedf5e6b66dbae15d23c5b (diff) | |
download | meta-ti-94fd10877499352cdf3fbe0871bc6300e6436b93.tar.gz |
ti-sgx-ddk-um: add k3 (AM654x) support
- add COMPATIBLE_MACHINE to distinguish AM3/4/5 with K3 (AM654x)
- add k3 support based on SGX DDK 1.17
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 1 | ||||
-rw-r--r-- | recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 71 |
2 files changed, 72 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 index d17411ec..ef33d3a7 100644 --- a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +++ b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | |||
@@ -3,6 +3,7 @@ HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-um-linux" | |||
3 | LICENSE = "TI-TSPA" | 3 | LICENSE = "TI-TSPA" |
4 | LIC_FILES_CHKSUM = "file://TI-Linux-Graphics-DDK-UM-Manifest.doc;md5=550702a031857e0426ef7d6f6cf2d9f4" | 4 | LIC_FILES_CHKSUM = "file://TI-Linux-Graphics-DDK-UM-Manifest.doc;md5=550702a031857e0426ef7d6f6cf2d9f4" |
5 | 5 | ||
6 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" | ||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 7 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
7 | 8 | ||
8 | BRANCH = "ti-img-sgx/rocko/${PV}" | 9 | BRANCH = "ti-img-sgx/rocko/${PV}" |
diff --git a/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb b/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb new file mode 100644 index 00000000..4718e124 --- /dev/null +++ b/recipes-graphics/libgles/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 | COMPATIBLE_MACHINE = "k3" | ||
7 | |||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | BRANCH = "ti-img-sgx/rocko/${PV}" | ||
11 | |||
12 | SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}" | ||
13 | SRCREV = "a564d20ec1b6aed55b3e60aa9ff35f3809eca110" | ||
14 | |||
15 | TARGET_PRODUCT_k3 = "ti654x" | ||
16 | |||
17 | INITSCRIPT_NAME = "rc.pvr" | ||
18 | INITSCRIPT_PARAMS = "defaults 8" | ||
19 | |||
20 | inherit update-rc.d | ||
21 | |||
22 | PR = "r29" | ||
23 | PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 omap5-sgx-ddk-um-linux" | ||
24 | |||
25 | DEPENDS += "libdrm udev libgbm wayland libffi" | ||
26 | RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap" | ||
27 | |||
28 | RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux" | ||
29 | RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev" | ||
30 | RPROVIDES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg" | ||
31 | |||
32 | RREPLACES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux" | ||
33 | RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev" | ||
34 | RREPLACES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg" | ||
35 | |||
36 | RCONFLICTS_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux" | ||
37 | RCONFLICTS_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev" | ||
38 | RCONFLICTS_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg" | ||
39 | |||
40 | # The actual SONAME is libGLESv2.so.2, so need to explicitly specify RPROVIDES for .so.1 here | ||
41 | RPROVIDES_${PN} += "libGLESv2.so.1" | ||
42 | |||
43 | S = "${WORKDIR}/git" | ||
44 | |||
45 | do_install () { | ||
46 | oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} | ||
47 | mkdir -p ${D}${libdir}/gbm | ||
48 | ln -sf ../libpvrGBMWSEGL.so.${PV} ${D}${libdir}/gbm/gbm_pvr.so | ||
49 | ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1 | ||
50 | chown -R root:root ${D} | ||
51 | } | ||
52 | |||
53 | FILES_${PN} = "${bindir}/*" | ||
54 | FILES_${PN} += " ${libdir}/*" | ||
55 | FILES_${PN} += "${includedir}/*" | ||
56 | FILES_${PN} += "${sysconfdir}/*" | ||
57 | |||
58 | PACKAGES =+ "${PN}-plugins" | ||
59 | FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libGLES_CM.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so" | ||
60 | RDEPENDS_${PN} += "${PN}-plugins" | ||
61 | |||
62 | ALLOW_EMPTY_${PN}-plugins = "1" | ||
63 | |||
64 | INHIBIT_PACKAGE_STRIP = "1" | ||
65 | INHIBIT_SYSROOT_STRIP = "1" | ||
66 | |||
67 | INSANE_SKIP_${PN} += "dev-so ldflags useless-rpaths" | ||
68 | INSANE_SKIP_${PN}-plugins = "dev-so" | ||
69 | INSANE_SKIP_${PN} += "already-stripped" | ||
70 | |||
71 | CLEANBROKEN = "1" | ||