aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend
blob: e191617afe27239eac492e4d9163bf046f628a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require checksum_control.inc

RDEPENDS:${PN}:append = " wayland-wsegl"

do_install:append(){
    sed -i 's/GROUP="video"/GROUP="display"/g' ${D}${sysconfdir}/udev/rules.d/72-pvr-seat.rules

    # Work around upstream not using ${nonarch_base_libdir}/firmware
    if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then
        install -d ${D}${nonarch_base_libdir}/
        mv ${D}/lib/firmware ${D}${nonarch_base_libdir}/
        rm -rf ${D}/lib
    fi

    # Undo upstream's out of date use of weston@.service
    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)} ; then
        # Fix weston dependency, needs to be weston.service
        sed -i 's/^RequiredBy=weston@.service$/RequiredBy=weston.service/' \
                ${D}${systemd_system_unitdir}/rc.pvr.service
    fi
}