From 5da83ec50ff4ed11883f224541ef6c37bf2c305f Mon Sep 17 00:00:00 2001 From: Olivier Benjamin Date: Thu, 30 Jan 2025 17:07:39 +0100 Subject: [PATCH] package/psplash: add support for two configure options Add support for two configure options: --disable-progress-bar, via BR2_PACKAGE_PSPLAH_PROGRESS_BAR --disable-startup-msg, via BR2_PACKAGE_PSPLASH_STARTUP_MSG Both buildroot options will default to 'y' to be compatible with the previous behaviour, since those were enabled by default by not specifying the disable config flag. Signed-off-by: Olivier Benjamin Signed-off-by: Thomas Petazzoni --- package/psplash/Config.in | 12 ++++++++++++ package/psplash/psplash.mk | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/package/psplash/Config.in b/package/psplash/Config.in index da99b264e0..61162fa583 100644 --- a/package/psplash/Config.in +++ b/package/psplash/Config.in @@ -35,6 +35,18 @@ config BR2_PACKAGE_PSPLASH_IMAGE Use a personalized png image as boot splash. Let it empty if you want to keep the psplash default image. +config BR2_PACKAGE_PSPLASH_PROGRESS_BAR + bool "enable progress bar" + default y + help + Enable progress bar management via the "PROGRESS" command. + +config BR2_PACKAGE_PSPLASH_STARTUP_MSG + bool "enable startup message" + default y + help + Enable text banner output on startup. + endif comment "psplash needs a toolchain w/ wchar" diff --git a/package/psplash/psplash.mk b/package/psplash/psplash.mk index 69f9bf386d..62268e778b 100644 --- a/package/psplash/psplash.mk +++ b/package/psplash/psplash.mk @@ -19,6 +19,18 @@ else PSPLASH_CONF_OPTS += --without-systemd endif +ifeq ($(BR2_PACKAGE_PSPLASH_PROGRESS_BAR),y) +PSPLASH_CONF_OPTS += --enable-progress-bar +else +PSPLASH_CONF_OPTS += --disable-progress-bar +endif + +ifeq ($(BR2_PACKAGE_PSPLASH_STARTUP_MSG),y) +PSPLASH_CONF_OPTS += --enable-startup-msg +else +PSPLASH_CONF_OPTS += --disable-startup-msg +endif + PSPLASH_IMAGE = $(call qstrip,$(BR2_PACKAGE_PSPLASH_IMAGE)) ifneq ($(PSPLASH_IMAGE),)