diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-06-08 15:50:30 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2022-06-08 15:50:30 -0400 |
commit | 7af88ec157f047981e45afef7c945c0370932f51 (patch) | |
tree | a63540b76a4c53304bf839bbcbf903f6f9124376 | |
parent | f45d44e2d8b4402572abeafde60b8e227b3a61fa (diff) |
psplash-portrait-config: add recipe
Add psplash-portrait-config recipe to install a systemd unit override
for psplash-start.service that forces a 90 degree rotation for
portrait mode, add add it to packagegroup-agl-demo-platform so that
it takes affect in the agl-demo-platform image.
Bug-AGL: SPEC-4433
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I507f2b3290ac3cad7f4a36a8b776813660ebc460
-rw-r--r-- | recipes-core/psplash/files/psplash-portrait.conf | 3 | ||||
-rw-r--r-- | recipes-core/psplash/psplash-portrait-config.bb | 20 | ||||
-rw-r--r-- | recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb | 1 |
3 files changed, 24 insertions, 0 deletions
diff --git a/recipes-core/psplash/files/psplash-portrait.conf b/recipes-core/psplash/files/psplash-portrait.conf new file mode 100644 index 000000000..1423cf9d0 --- /dev/null +++ b/recipes-core/psplash/files/psplash-portrait.conf @@ -0,0 +1,3 @@ +[Service] +ExecStart= +ExecStart=/usr/bin/psplash --angle 90 diff --git a/recipes-core/psplash/psplash-portrait-config.bb b/recipes-core/psplash/psplash-portrait-config.bb new file mode 100644 index 000000000..7afee442c --- /dev/null +++ b/recipes-core/psplash/psplash-portrait-config.bb @@ -0,0 +1,20 @@ +SUMMARY = "Systemd unit override for psplash portrait mode for the AGL Demonstrator" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +inherit systemd allarch + +SRC_URI = "file://psplash-portrait.conf" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install() { + # Install override + install -d ${D}${systemd_system_unitdir}/psplash-start.service.d + install -m 0644 ${WORKDIR}/psplash-portrait.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/ +} + +FILES:${PN} += "${systemd_system_unitdir}" + +RDEPENDS:${PN} += "psplash" diff --git a/recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb b/recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb index c7db0355f..a8be87b8d 100644 --- a/recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb +++ b/recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb @@ -34,4 +34,5 @@ RDEPENDS:${PN}:append = " \ qtquickcontrols2-agl-style \ ${@bb.utils.contains('DISTRO_FEATURES', 'agl-devel', 'unzip mpc' , '', d)} \ ${AGL_APPS} \ + psplash-portrait-config \ " |