aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb
blob: 16c0f046d52cc3a61d320cb9811f528205527765 (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
31
32
33
34
35
36
37
38
39
40
41
SUMMARY = "Startup script and systemd unit file for the Weston Wayland compositor"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://core.cfg \
           file://shell.cfg \
           file://hdmi-a-1-270.cfg \
          "

# cluster and html5-landscape
# core, shell, hdmi-a-1-180.cfg, virtual-landscape.cfg
SRC_URI_remove_landscape = " \
	file://hdmi-a-1-270.cfg \
	file://hdmi-a-1-90.cfg \
	file://virtual.cfg \
"
SRC_URI_append_landscape = " \
	file://hdmi-a-1-180.cfg \
	file://virtual-landscape.cfg \
"


S = "${WORKDIR}"

PACKAGE_ARCH = "${MACHINE_ARCH}"

do_compile() {
    # Put all of our cfg files together.
    rm -f ${WORKDIR}/weston.ini
    for F in ${WORKDIR}/*.cfg; do
        cat $F >> ${WORKDIR}/weston.ini
        echo >> ${WORKDIR}/weston.ini
    done
    sed -i -e '$ d' ${WORKDIR}/weston.ini
}

do_install_append() {
    WESTON_INI_CONFIG=${sysconfdir}/xdg/weston
    install -d ${D}${WESTON_INI_CONFIG}
    install -m 0644 ${WORKDIR}/weston.ini ${D}${WESTON_INI_CONFIG}/weston.ini
}