summaryrefslogtreecommitdiff
path: root/recipes-graphics/wayland/weston-init.bbappend
blob: a280e6e67fd0e98ea1d8884cf207d7bb8e9250ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

PR:append:k3 = ".arago12"

PACKAGECONFIG:append:k3:tdx = " \
    no-idle-timeout \
    ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland','', d)} \
"
PACKAGECONFIG[xwayland] = ",,"

SRC_URI:append:k3 = " \
    file://runWeston \
    file://wayland_env.sh \
    file://weston.ini \
"

do_install:append:k3 () {
    install -d ${D}${bindir}
    install -m 755 ${WORKDIR}/runWeston ${D}${bindir}

    install -d ${D}${sysconfdir}/profile.d
    install -m 0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}
    install -m 0644 ${WORKDIR}/wayland_env.sh ${D}${sysconfdir}/profile.d/

    if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then
        sed -i -e "/^\[core\]/a xwayland=true" ${D}${sysconfdir}/xdg/weston/weston.ini
    fi
}

FILES:${PN}:append:k3 = "${sysconfdir}/profile.d/* ${sysconfdir}/weston.ini"