[Buildroot] [PATCH] package/psplash: add support to psplash personalized png image
Kory Maincent
kory.maincent at bootlin.com
Thu Oct 7 09:31:01 UTC 2021
Add an configuration to use personalized png image. If the configuration is
empty we keep the psplash default image.
Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
---
package/psplash/Config.in | 10 ++++++++++
package/psplash/psplash.mk | 8 ++++++++
2 files changed, 18 insertions(+)
diff --git a/package/psplash/Config.in b/package/psplash/Config.in
index 5053ebacf7..da99b264e0 100644
--- a/package/psplash/Config.in
+++ b/package/psplash/Config.in
@@ -27,5 +27,15 @@ config BR2_PACKAGE_PSPLASH
http://git.yoctoproject.org/cgit/cgit.cgi/psplash/
+if BR2_PACKAGE_PSPLASH
+
+config BR2_PACKAGE_PSPLASH_IMAGE
+ string "psplash image"
+ help
+ Use a personalized png image as boot splash.
+ Let it empty if you want to keep the psplash default image.
+
+endif
+
comment "psplash needs a toolchain w/ wchar"
depends on !BR2_USE_WCHAR
diff --git a/package/psplash/psplash.mk b/package/psplash/psplash.mk
index a0f01869b4..882c17704a 100644
--- a/package/psplash/psplash.mk
+++ b/package/psplash/psplash.mk
@@ -18,6 +18,14 @@ else
PSPLASH_CONF_OPTS += --without-systemd
endif
+PSPLASH_IMAGE = $(call qstrip,$(BR2_PACKAGE_PSPLASH_IMAGE))
+
+define PSPLASH_COPY_IMAGE
+ $(if $(PSPLASH_IMAGE),cp $(PSPLASH_IMAGE) $(@D)/base-images/psplash-poky.png)
+endef
+
+PSPLASH_POST_EXTRACT_HOOKS += PSPLASH_COPY_IMAGE
+
define PSPLASH_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 package/psplash/psplash-start.service \
$(TARGET_DIR)/usr/lib/systemd/system/psplash-start.service
--
2.25.1
More information about the buildroot
mailing list