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

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

do_install:append(){
    # 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
}