Improvement to psplash recipe using service override 69/28969/1 15.0.3 15.0.4 15.0.5 octopus/15.0.3 octopus/15.0.4 octopus/15.0.5 octopus_15.0.3 octopus_15.0.4 octopus_15.0.5
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Sun, 21 May 2023 05:04:04 +0000 (14:04 +0900)
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Wed, 31 May 2023 20:56:00 +0000 (05:56 +0900)
Last psplash patch has some HACK implementation for
drl lease support.  It cause complex change to psplash
service file.

This patch fix this issue reusing
sandbox/ishii.hiroyuki/psplash-drm, that is worked by
ishii hiroyuki.

Bug-AGL: SPEC-4804

Change-Id: Ie98b8fb73534c3d1114580ea1d6ca238e62e6c7a
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
meta-agl-drm-lease/recipes-core/psplash/files/psplash-drmlease.conf [new file with mode: 0644]
meta-agl-drm-lease/recipes-core/psplash/psplash_git.bbappend

diff --git a/meta-agl-drm-lease/recipes-core/psplash/files/psplash-drmlease.conf b/meta-agl-drm-lease/recipes-core/psplash/files/psplash-drmlease.conf
new file mode 100644 (file)
index 0000000..28bf19c
--- /dev/null
@@ -0,0 +1,3 @@
+[Service]
+Environment=PSPLASH_ARGS='--drm --drm-lease lease'
+Environment=DLM_RUNTIME_PATH=/var/display/drm-lease-manager
index 5665066..53adec9 100644 (file)
@@ -25,19 +25,19 @@ SRC_URI += " \
 SRC_URI += " \
        file://0016-Imprement-drm-lease-support.patch \
        file://0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch \
+       file://psplash-drmlease.conf \
        "
 
 # Licesnse checksum was changed by above patches
 LIC_FILES_CHKSUM = "file://psplash.h;beginline=1;endline=8;md5=db1ed16abf4be6de3d79201093ac4f07"
 
-PACKAGECONFIG[drm] = "--enable-drm,,libdrm"
-PSPLASH_ARGS += "${@bb.utils.contains('PACKAGECONFIG', 'drm', '--drm', '', d)}"
+PACKAGECONFIG:append = " drm drm-lease"
 
+PACKAGECONFIG[drm] = "--enable-drm,,libdrm"
 PACKAGECONFIG[drm-lease] = "--enable-drm-lease,,drm-lease-manager"
-PSPLASH_DRM_LEASE_ARGS ??= "--drm-lease lease0"
-PSPLASH_ARGS += "${@bb.utils.contains('PACKAGECONFIG', 'drm-lease', '${PSPLASH_DRM_LEASE_ARGS}', '', d)}"
-RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'drm-lease', 'drm-lease-manager', '', d)}"
 
 do_install:append () {
-       sed -i -e "s!^\(ExecStart=/usr/bin/psplash.*\)!\1 ${PSPLASH_ARGS}!" ${D}${systemd_system_unitdir}/psplash-start.service
+    # Install override
+    install -d ${D}${systemd_system_unitdir}/psplash-start.service.d
+    install -m 0644 ${WORKDIR}/psplash-drmlease.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/
 }