42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
# Copyright (C) 2019 Digi International.
|
|
|
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
|
|
|
SRC_URI += " \
|
|
file://digi_background.png \
|
|
file://profile \
|
|
"
|
|
|
|
SRC_URI_append_mx8dx = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', ' file://weston.config', '', d)}"
|
|
|
|
# To customize weston.ini, start by setting the desired assignment in weston.ini,
|
|
# commented out. For example:
|
|
# #xwayland=true
|
|
# Then add the assignment to INI_UNCOMMENT_ASSIGNMENTS.
|
|
INI_UNCOMMENT_ASSIGNMENTS_append_mx8mp = " \
|
|
use-g2d=1 \
|
|
"
|
|
|
|
# Digi: use g2d on ccimx6sbc to fix desktop window issue
|
|
INI_UNCOMMENT_ASSIGNMENTS_append_ccimx6sbc = " \
|
|
use-g2d=1 \
|
|
"
|
|
|
|
do_install_append() {
|
|
install -Dm0755 ${WORKDIR}/profile ${D}${sysconfdir}/profile.d/weston.sh
|
|
|
|
# Add custom background image
|
|
install -d ${D}${datadir}/weston
|
|
install ${WORKDIR}/digi_background.png ${D}${datadir}/weston
|
|
|
|
# Customize weston ini file
|
|
cat <<EOF >>${D}${sysconfdir}/xdg/weston/weston.ini
|
|
|
|
[shell]
|
|
background-image=/usr/share/weston/digi_background.png
|
|
background-type=scale-crop
|
|
EOF
|
|
}
|
|
|
|
FILES_${PN} += "${datadir}/weston/digi_background.png"
|