weston: allow overriding the weston background from Yocto
https://onedigi.atlassian.net/browse/DEL-9816 Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
parent
3b89442fdc
commit
9834232a8c
|
|
@ -1,10 +1,13 @@
|
|||
# Copyright (C) 2026, Digi International Inc.
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
WESTON_BACKGROUND_PNG ?= "${WORKDIR}/background.png"
|
||||
|
||||
DEPENDS += "${@oe.utils.conditional('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
|
||||
|
||||
SRC_URI += " \
|
||||
file://weston.ini \
|
||||
file://digi_background.png \
|
||||
file://background.png \
|
||||
file://weston-launch.service \
|
||||
file://weston-checkgpu.service \
|
||||
file://weston_profile.sh \
|
||||
|
|
@ -42,7 +45,7 @@ do_install() {
|
|||
|
||||
install -m 0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston
|
||||
|
||||
install -m 0644 ${WORKDIR}/digi_background.png ${D}${datadir}/weston/backgrounds/digi_background.png
|
||||
install -m 0644 "${WESTON_BACKGROUND_PNG}" ${D}${datadir}/weston/backgrounds/background.png
|
||||
printf "\n[launcher]\nicon=${datadir}/weston/terminal.png\npath=${bindir}/weston-terminal\n" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||
|
||||
install -d ${D}${systemd_system_unitdir} ${D}${sbindir}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
|
@ -13,7 +13,7 @@ remoting=remoting-plugin.so
|
|||
keymap_layout=us
|
||||
|
||||
[shell]
|
||||
background-image=/usr/share/weston/backgrounds/digi_background.png
|
||||
background-image=/usr/share/weston/backgrounds/background.png
|
||||
background-type=scale-crop
|
||||
|
||||
# HDMI connector
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
# Copyright (C) 2019-2024, Digi International Inc.
|
||||
# Copyright (C) 2019-2026, Digi International Inc.
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
WESTON_BACKGROUND_PNG ?= "${WORKDIR}/background.png"
|
||||
|
||||
SRC_URI += " \
|
||||
file://digi_background.png \
|
||||
file://background.png \
|
||||
file://profile \
|
||||
"
|
||||
|
||||
|
|
@ -30,8 +31,9 @@ do_install:append() {
|
|||
|
||||
# DEY customizations
|
||||
do_install:append() {
|
||||
install -d ${D}${datadir}/weston/backgrounds
|
||||
install -Dm0755 ${WORKDIR}/profile ${D}${sysconfdir}/profile.d/weston.sh
|
||||
install -Dm0644 ${WORKDIR}/digi_background.png ${D}${datadir}/weston/digi_background.png
|
||||
install -Dm0644 "${WESTON_BACKGROUND_PNG}" ${D}${datadir}/weston/backgrounds/background.png
|
||||
|
||||
printf "\n[launcher]\nicon=${datadir}/weston/terminal.png\npath=${bindir}/weston-terminal\n" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||
}
|
||||
|
|
@ -41,4 +43,4 @@ do_install:append:ccimx93() {
|
|||
echo "QMLSCENE_DEVICE=softwarecontext" >> ${D}${sysconfdir}/default/weston
|
||||
}
|
||||
|
||||
FILES:${PN} += "${datadir}/weston/digi_background.png"
|
||||
FILES:${PN} += "${datadir}/weston/backgrounds/background.png"
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
|
@ -28,5 +28,5 @@ command=@bindir@/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --n
|
|||
|
||||
# Digi: Set custom background
|
||||
[shell]
|
||||
background-image=/usr/share/weston/digi_background.png
|
||||
background-image=/usr/share/weston/backgrounds/background.png
|
||||
background-type=scale-crop
|
||||
|
|
|
|||
Loading…
Reference in New Issue