diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-04-21 16:32:43 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2017-04-26 21:02:41 +0000 |
commit | 39902b66a174446a49e1083c357d86b74daef425 (patch) | |
tree | c73408c05ed25ca52385bba68e0da2137dc8c428 /meta-rcar-gen2/recipes-graphics/gles-module/gles-user-module.bb | |
parent | 118df1f34368be06401824a6c5b2bb670e53be81 (diff) |
BSP's should not ship files in /usr/local/dab_3.99.1dab/3.99.13.99.1
* replace /usr/local with path /usr/share/renesas using:
RENESAS_DATADIR = "/usr/share/renesas"
- meta-rcar-gen2/include/rcar-gen2-path-common.inc
Bug-AGL: SPEC-533
Change-Id: I66350e850df385e901dc4a0ff56bf04452f90868
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'meta-rcar-gen2/recipes-graphics/gles-module/gles-user-module.bb')
-rw-r--r-- | meta-rcar-gen2/recipes-graphics/gles-module/gles-user-module.bb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/meta-rcar-gen2/recipes-graphics/gles-module/gles-user-module.bb b/meta-rcar-gen2/recipes-graphics/gles-module/gles-user-module.bb index 37e8052..c3dd808 100644 --- a/meta-rcar-gen2/recipes-graphics/gles-module/gles-user-module.bb +++ b/meta-rcar-gen2/recipes-graphics/gles-module/gles-user-module.bb @@ -1,4 +1,5 @@ require ../../include/gles-control.inc +require include/rcar-gen2-path-common.inc DESCRIPTION = "SGX/RGX user module" LICENSE = "CLOSED" @@ -60,7 +61,12 @@ do_install() { # Copy binary into sysroot cp -r ${S}/etc ${D} cp -r ${S}/usr ${D} - mv ${D}/etc/init.d/rc.pvr ${D}/usr/local/bin/ + mkdir -p ${D}${RENESAS_DATADIR} + mv ${D}/usr/local/* ${D}${RENESAS_DATADIR} + rm -fr ${D}/usr/local + mv ${D}/etc/init.d/rc.pvr ${D}${RENESAS_DATADIR}/bin/ + sed -i "s,/usr/local,${RENESAS_DATADIR},g" \ + ${D}${RENESAS_DATADIR}/bin/rc.pvr # Create a symbolic link for compatibility with various software ln -s libGLESv2.so ${D}/usr/lib/libGLESv2.so.2 @@ -68,6 +74,7 @@ do_install() { if [ "${USE_WAYLAND}" = "1" ]; then # Rename libEGL.so mv ${D}/usr/lib/libEGL.so ${D}/usr/lib/libEGL-pvr.so + # Set the "WindowSystem" parameter for wayland if [ "${GLES}" = "rgx" ]; then @@ -81,6 +88,8 @@ do_install() { # Install systemd unit files if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -m 644 -p -D ${WORKDIR}/rc.pvr.service ${D}${systemd_system_unitdir}/rc.pvr.service + sed -i "s,@RENESAS_DATADIR@,${RENESAS_DATADIR},g" \ + ${D}${systemd_system_unitdir}/rc.pvr.service fi } @@ -92,7 +101,7 @@ PACKAGES = "\ FILES_${PN} = " \ ${sysconfdir}/* \ ${libdir}/* \ - /usr/local/bin/* \ + ${RENESAS_DATADIR}/bin/* \ " FILES_${PN}-dev = " \ |