freescale-layer: weston-init: adapt to scarthgap
A lot of the imx93-specific changes have been upstreamed to meta-freescale, and this version is now used in all platforms, so we don't need to include version-specific code (for example, to manage weston-socket.sh). Also, update our do_install:append() to match the one in meta-imx, while keeping our customizations. https://onedigi.atlassian.net/browse/DEL-9011 https://onedigi.atlassian.net/browse/DEL-9081 Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
parent
8699ce656c
commit
85f03852c2
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (C) 2019-2023, Digi International Inc.
|
# Copyright (C) 2019-2024, Digi International Inc.
|
||||||
|
|
||||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
|
|
@ -6,15 +6,6 @@ SRC_URI += " \
|
||||||
file://digi_background.png \
|
file://digi_background.png \
|
||||||
file://profile \
|
file://profile \
|
||||||
"
|
"
|
||||||
SRC_URI:append:ccimx93 = " file://weston-socket.sh"
|
|
||||||
|
|
||||||
INI_UNCOMMENT_ASSIGNMENTS:append:mx9-nxp-bsp = " \
|
|
||||||
repaint-window=16 \
|
|
||||||
"
|
|
||||||
INI_UNCOMMENT_ASSIGNMENTS:append:mx93-nxp-bsp = " \
|
|
||||||
gbm-format=argb8888 \
|
|
||||||
use-g2d=true \
|
|
||||||
"
|
|
||||||
|
|
||||||
update_file() {
|
update_file() {
|
||||||
if ! grep -q "$1" $3; then
|
if ! grep -q "$1" $3; then
|
||||||
|
|
@ -24,12 +15,17 @@ update_file() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install:append() {
|
do_install:append() {
|
||||||
# Add weston.log back, used by NXP for testing
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||||
update_file "ExecStart=/usr/bin/weston " "ExecStart=/usr/bin/weston --log=\$\{XDG_RUNTIME_DIR\}/weston.log " ${D}${systemd_system_unitdir}/weston.service
|
# Add weston.log back, used by NXP for testing
|
||||||
|
update_file "ExecStart=/usr/bin/weston " "ExecStart=/usr/bin/weston --log=\$\{XDG_RUNTIME_DIR\}/weston.log " ${D}${systemd_system_unitdir}/weston.service
|
||||||
|
|
||||||
# FIXME: weston should be run as weston, not as root
|
# FIXME: weston should be run as weston, not as root
|
||||||
update_file "User=weston" "User=root" ${D}${systemd_system_unitdir}/weston.service
|
update_file "User=weston" "User=root" ${D}${systemd_system_unitdir}/weston.service
|
||||||
update_file "Group=weston" "Group=root" ${D}${systemd_system_unitdir}/weston.service
|
update_file "Group=weston" "Group=root" ${D}${systemd_system_unitdir}/weston.service
|
||||||
|
else
|
||||||
|
# Install weston-socket.sh for sysvinit as well
|
||||||
|
install -D -p -m0644 ${WORKDIR}/weston-socket.sh ${D}${sysconfdir}/profile.d/weston-socket.sh
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# DEY customizations
|
# DEY customizations
|
||||||
|
|
@ -41,10 +37,6 @@ do_install:append() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install:append:ccimx93() {
|
do_install:append:ccimx93() {
|
||||||
# The ccimx93 uses a new version of weston where 'weston-socket.sh' supercedes 'weston.sh'
|
|
||||||
\rm -f ${D}${sysconfdir}/profile.d/weston.sh
|
|
||||||
install -Dm0644 ${WORKDIR}/weston-socket.sh ${D}${sysconfdir}/profile.d/weston-socket.sh
|
|
||||||
|
|
||||||
install -d ${D}${sysconfdir}/default/
|
install -d ${D}${sysconfdir}/default/
|
||||||
echo "QMLSCENE_DEVICE=softwarecontext" >> ${D}${sysconfdir}/default/weston
|
echo "QMLSCENE_DEVICE=softwarecontext" >> ${D}${sysconfdir}/default/weston
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# set weston variables for use with global weston socket
|
|
||||||
global_socket="/run/wayland-0"
|
|
||||||
if [ -e "$global_socket" ]; then
|
|
||||||
weston_group=$(stat -c "%G" "$global_socket")
|
|
||||||
if [ "$(id -u)" = "0" ]; then
|
|
||||||
export WAYLAND_DISPLAY="$global_socket"
|
|
||||||
else
|
|
||||||
case "$(groups "$USER")" in
|
|
||||||
*"$weston_group"*)
|
|
||||||
export WAYLAND_DISPLAY="$global_socket"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
unset weston_group
|
|
||||||
fi
|
|
||||||
unset global_socket
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
[core]
|
|
||||||
#gbm-format=argb8888
|
|
||||||
idle-time=0
|
|
||||||
#use-g2d=true
|
|
||||||
#xwayland=true
|
|
||||||
#repaint-window=16
|
|
||||||
#enable-overlay-view=1
|
|
||||||
|
|
||||||
#[shell]
|
|
||||||
#size=1920x1080
|
|
||||||
|
|
||||||
[libinput]
|
|
||||||
touchscreen_calibrator=true
|
|
||||||
|
|
||||||
#[output]
|
|
||||||
#name=HDMI-A-1
|
|
||||||
#mode=1920x1080@60
|
|
||||||
#transform=rotate-90
|
|
||||||
|
|
||||||
#[output]
|
|
||||||
#name=HDMI-A-2
|
|
||||||
#mode=off
|
|
||||||
# WIDTHxHEIGHT Resolution size width and height in pixels
|
|
||||||
# off Disables the output
|
|
||||||
# preferred Uses the preferred mode
|
|
||||||
# current Uses the current crt controller mode
|
|
||||||
#transform=rotate-90
|
|
||||||
|
|
||||||
[screen-share]
|
|
||||||
command=@bindir@/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize
|
|
||||||
#start-on-startup=true
|
|
||||||
|
|
||||||
# Digi: Set custom background
|
|
||||||
[shell]
|
|
||||||
background-image=/usr/share/weston/digi_background.png
|
|
||||||
background-type=scale-crop
|
|
||||||
|
|
@ -1,9 +1,4 @@
|
||||||
[core]
|
[core]
|
||||||
#gbm-format=argb8888
|
|
||||||
idle-time=0
|
|
||||||
#use-g2d=1
|
|
||||||
#xwayland=true
|
|
||||||
#repaint-window=16
|
|
||||||
#enable-overlay-view=1
|
#enable-overlay-view=1
|
||||||
modules=screen-share.so
|
modules=screen-share.so
|
||||||
|
|
||||||
|
|
@ -29,6 +24,7 @@ touchscreen_calibrator=true
|
||||||
|
|
||||||
[screen-share]
|
[screen-share]
|
||||||
command=@bindir@/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/etc/freerdp/keys/server.crt --rdp-tls-key=/etc/freerdp/keys/server.key
|
command=@bindir@/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/etc/freerdp/keys/server.crt --rdp-tls-key=/etc/freerdp/keys/server.key
|
||||||
|
#start-on-startup=true
|
||||||
|
|
||||||
# Digi: Set custom background
|
# Digi: Set custom background
|
||||||
[shell]
|
[shell]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue