]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
psplash: consider the situation of psplash not exist for systemd
authorChen Qi <Qi.Chen@windriver.com>
Thu, 1 Dec 2022 05:00:50 +0000 (21:00 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 Dec 2022 22:28:10 +0000 (22:28 +0000)
commit7a62ff9ed39c179d2b9b0c40f4f8423ced413063
tree323785650165e3a0fc70f0f3b40bbaff2f48ef2e
parentbe1634fc35dcc81f0301d942064a6eed584e0704
psplash: consider the situation of psplash not exist for systemd

In current psplash framework, the psplash might not exist at all.
For example, in case DSITRO is set to nodistro, the psplash does
not exist.

In our psplash recipe, we have:
SPLASH_IMAGES = "file://psplash-poky-img.h;outsuffix=default"
This variable is parsed to if psplash-poky-img.h exists, a package
named psplash-default is created and is added to RDEPENDS:${PN}.

We can see that the psplash-poky-img.h resides in meta-poky,
and in psplash_git.bbappend file in meta-poky, we have:
FILESEXTRAPATHS:prepend:poky := "${THISDIR}/files:"
So this file is only available in case poky distro is used.

To fix this issue, add condition check in the corresponding systemd
services.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-core/psplash/files/psplash-start.service
meta/recipes-core/psplash/files/psplash-systemd.service