From 8431b953287f1fa849def345025f1aa1fa3f42cc Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Sun, 23 Apr 2023 20:31:49 +0900 Subject: Enable psplash in guest container using drm-lease The upstream version of psplash is supporting fb based splash screen. On the other hand, drm lease infrastructure is not support fb. This patch enable drm-lease support at psplash. This work contributed by Hiroyuki Ishii at CES2023 demo development. Bug-AGL: SPEC-4766 Change-Id: I2c58b0db489b1573ef3b7f7396203550c1fb89d6 Signed-off-by: Naoto Yamaguchi --- .../psplash-portrait-config_agl-container-guest-demo.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc (limited to 'recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc') diff --git a/recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc b/recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc new file mode 100644 index 00000000..73edc67d --- /dev/null +++ b/recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc @@ -0,0 +1,15 @@ +do_install[depends] = "psplash:do_populate_sysroot" + +do_install() { + # Install override + psplash_service="${STAGING_DIR_TARGET}/${systemd_system_unitdir}/psplash-start.service" + if [ ! -f "$psplash_service" ]; then + echo "ERROR: psplash service unit file not found: $psplash_service" >&2 + exit 1 + fi + install -d ${D}${systemd_system_unitdir}/psplash-start.service.d + psplash_portrait_conf="${D}${systemd_system_unitdir}/psplash-start.service.d/psplash-portrait.conf" + echo "[Service]" > "$psplash_portrait_conf" + echo "ExecStart=" >> "$psplash_portrait_conf" + sed -ne 's!^\(ExecStart=/usr/bin/psplash.*\)!\1 --angle 90!p' "$psplash_service" >> "$psplash_portrait_conf" +} -- cgit 1.2.3-korg