@@ -23,9 +23,21 @@ PACKAGECONFIG[use-pixman] = ",,"
DEFAULTBACKEND ??= ""
DEFAULTBACKEND:qemuall ?= "drm"
+DRI_CARD_COUNT ??= "1"
+DRI_CARD_COUNT:j721e = "2"
+DRI_CARD_COUNT:j721s2 = "2"
+DRI_CARD_COUNT:j784s4 = "2"
+DRI_CARD_COUNT:j742s2 = "2"
+DRI_CARD_COUNT:am62xx = "2"
+DRI_CARD_COUNT:am62pxx = "2"
+DRI_CARD_COUNT:j722s = "2"
+
do_install() {
install -D -p -m0644 weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
install -D -p -m0644 emptty.conf ${D}${sysconfdir}/emptty/conf
+ if [ -n "${DRI_CARD_COUNT}" ]; then
+ sed -i -e "/^#WAIT_CARD_DEVICE_COUNT=/c WAIT_CARD_DEVICE_COUNT=${DRI_CARD_COUNT}" ${D}${sysconfdir}/emptty/conf
+ fi
if [ -n "${DEFAULTBACKEND}" ]; then
sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini
@@ -20,7 +20,7 @@ AUTOLOGIN=true
AUTOLOGIN_SESSION=Weston
# If Autologin is enabled and session does not start correctly, the number of retries in short period is kept to eventually stop the infinite loop of restarts. -1 is for infinite retries, 0 is for no retry.
-AUTOLOGIN_MAX_RETRY=-1
+# AUTOLOGIN_MAX_RETRY=2
# Default LANG, if user does not have set own in init script.
#LANG=en_US.UTF-8
@@ -75,3 +75,6 @@ SESSION_ERROR_LOGGING=rotate
#If set true, environmental groups are printed to differ Xorg/Wayland/Custom/UserCustom desktops.
IDENTIFY_ENVS=false
+
+# Number of DRI card devices to wait for before starting the session. A machine with 2 GPUs may want to set this to 2.
+#WAIT_CARD_DEVICE_COUNT=0