diff options
author | Andrew F. Davis <afd@ti.com> | 2019-09-05 22:38:43 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2019-09-06 21:09:11 +0000 |
commit | fb9f13a6f7a45361c2208f5a13e5e9c9bbeb39bc (patch) | |
tree | c48b0546369b5a6b5919d37a57499c7b3e60949e /recipes-graphics | |
parent | 5c4028d4c40046b8006e4e74145f4a37104679bb (diff) | |
download | meta-ti-fb9f13a6f7a45361c2208f5a13e5e9c9bbeb39bc.tar.gz |
ti-sgx-ddk-um: libgbm is now part of this project
The GBM library is tightly coupled with the system graphics systems,
other hardware GPU vendors (including our Rogue DDK) and Mesa all deploy
a version of the library as part of their GPU driver. We SGX does the
same. This should ease integration for us as we now don't rely on a
separate project for this library and our deployment strategy can match
across Mesa/RGX recipes, allowing for better re-use of common components.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/gbm/libgbm_10.0.0.bb | 23 | ||||
-rw-r--r-- | recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 30 |
2 files changed, 14 insertions, 39 deletions
diff --git a/recipes-graphics/gbm/libgbm_10.0.0.bb b/recipes-graphics/gbm/libgbm_10.0.0.bb deleted file mode 100644 index 6d058b72..00000000 --- a/recipes-graphics/gbm/libgbm_10.0.0.bb +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | SUMMARY = "Userspace interface for the kernel GBM services" | ||
2 | HOMEPAGE = "http://git.ti.com/glsdk/libgbm.git" | ||
3 | |||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://gbm.c;beginline=1;endline=26;md5=b871c7f2f477df29ee4c0ec437b187f7" | ||
6 | |||
7 | DEPENDS = "libdrm udev" | ||
8 | |||
9 | PROVIDES += "virtual/libgbm" | ||
10 | |||
11 | inherit autotools pkgconfig | ||
12 | |||
13 | BRANCH = "next" | ||
14 | |||
15 | SRCREV = "96f37555c7e82a417b02051661377b10e6b3966e" | ||
16 | |||
17 | SRC_URI = "git://git.ti.com/glsdk/libgbm.git;protocol=git;branch=${BRANCH} \ | ||
18 | file://0001-gbm.c-include-sys-sysmacros.h-for-minor-major-in-new.patch" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | COMPATIBLE_HOST ?= "null" | ||
23 | COMPATIBLE_HOST_ti-soc = "(.*)" | ||
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 index 02c9b750..80570ef0 100644 --- a/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +++ b/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | |||
@@ -10,7 +10,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
10 | BRANCH = "ti-img-sgx/thud/${PV}" | 10 | BRANCH = "ti-img-sgx/thud/${PV}" |
11 | 11 | ||
12 | SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}" | 12 | SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}" |
13 | SRCREV = "9e63d5ac0b40d6a70463173c597122b6645c8a95" | 13 | SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd" |
14 | 14 | ||
15 | TARGET_PRODUCT_omap-a15 = "jacinto6evm" | 15 | TARGET_PRODUCT_omap-a15 = "jacinto6evm" |
16 | TARGET_PRODUCT_ti33x = "ti335x" | 16 | TARGET_PRODUCT_ti33x = "ti335x" |
@@ -22,23 +22,23 @@ INITSCRIPT_PARAMS = "defaults 8" | |||
22 | 22 | ||
23 | inherit update-rc.d | 23 | inherit update-rc.d |
24 | 24 | ||
25 | PR = "r33" | 25 | PR = "r34" |
26 | PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 omap5-sgx-ddk-um-linux" | 26 | PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 virtual/libgbm omap5-sgx-ddk-um-linux" |
27 | 27 | ||
28 | DEPENDS += "libdrm udev libgbm wayland libffi" | 28 | DEPENDS += "libdrm udev wayland libffi" |
29 | RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap" | 29 | RDEPENDS_${PN} += "libdrm libudev wayland libffi libdrm-omap" |
30 | 30 | ||
31 | RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux" | 31 | RPROVIDES_${PN} = "libegl libgles1 libgles2 libgbm omap5-sgx-ddk-um-linux" |
32 | RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev" | 32 | RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev omap5-sgx-ddk-um-linux-dev" |
33 | RPROVIDES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg" | 33 | RPROVIDES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg libgbm-dbg omap5-sgx-ddk-um-linux-dbg" |
34 | 34 | ||
35 | RREPLACES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux" | 35 | RREPLACES_${PN} = "libegl libgles1 libgles2 libgbm omap5-sgx-ddk-um-linux" |
36 | RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev" | 36 | RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev omap5-sgx-ddk-um-linux-dev" |
37 | RREPLACES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg" | 37 | RREPLACES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg libgbm-dbg omap5-sgx-ddk-um-linux-dbg" |
38 | 38 | ||
39 | RCONFLICTS_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux" | 39 | RCONFLICTS_${PN} = "libegl libgles1 libgles2 libgbm omap5-sgx-ddk-um-linux" |
40 | RCONFLICTS_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev" | 40 | RCONFLICTS_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev omap5-sgx-ddk-um-linux-dev" |
41 | RCONFLICTS_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg" | 41 | RCONFLICTS_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg libgbm-dbg omap5-sgx-ddk-um-linux-dbg" |
42 | 42 | ||
43 | # The actual SONAME is libGLESv2.so.2, so need to explicitly specify RPROVIDES for .so.1 here | 43 | # The actual SONAME is libGLESv2.so.2, so need to explicitly specify RPROVIDES for .so.1 here |
44 | RPROVIDES_${PN} += "libGLESv2.so.1" | 44 | RPROVIDES_${PN} += "libGLESv2.so.1" |
@@ -47,8 +47,6 @@ S = "${WORKDIR}/git" | |||
47 | 47 | ||
48 | do_install () { | 48 | do_install () { |
49 | oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} | 49 | oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} |
50 | mkdir -p ${D}${libdir}/gbm | ||
51 | ln -sf ../libpvrGBMWSEGL.so.${PV} ${D}${libdir}/gbm/gbm_pvr.so | ||
52 | ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1 | 50 | ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1 |
53 | 51 | ||
54 | rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc | 52 | rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc |