[Buildroot] [PATCH v3] package/psplash: add support for missing configure options

bryce.schober at gmail.com bryce.schober at gmail.com
Wed Dec 1 17:55:06 UTC 2021


On Tue, Nov 16, 2021 at 2:46 AM Kory Maincent <kory.maincent at bootlin.com>
wrote:
>
> Add support to three configure options:
> --enable-startup-msg: Enable text banner output on startup
> --enable-progress-bar: Enable progress bar
> --enable-img-fullscreen: Enable the logo image in fullscreen mode
>
> Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>

Tested-by: Bryce Schober <bryce.schober at gmail.com>

> ---
>
> Change since v1:
> Remove the crap .config.in.swp
>
> Change since v2:
> Use both side of enable/disable configure option condition.
> Use positive options in Kconfig.
>
>
>  package/psplash/Config.in  | 17 +++++++++++++++++
>  package/psplash/psplash.mk | 18 ++++++++++++++++++
>  2 files changed, 35 insertions(+)
>
> diff --git a/package/psplash/Config.in b/package/psplash/Config.in
> index da99b264e0..edd30dcb4d 100644
> --- a/package/psplash/Config.in
> +++ b/package/psplash/Config.in
> @@ -35,6 +35,23 @@ 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_FULL_SCREEN
> +       bool "use fullscreen mode"
> +       help
> +         Enable the psplash image in fullscreen mode.
> +
> +config BR2_PACKAGE_PSPLASH_STARTUP_MSG
> +       bool "enable startup message"
> +       default y
> +       help
> +         Enable text banner output on startup.
> +
> +config BR2_PACKAGE_PSPLASH_PROGRESS_BAR
> +       bool "enable progress bar"
> +       default y
> +       help
> +         Enable the management of the progress bar.
> +
>  endif
>
>  comment "psplash needs a toolchain w/ wchar"
> diff --git a/package/psplash/psplash.mk b/package/psplash/psplash.mk
> index 5e61f2392f..e5b212381a 100644
> --- a/package/psplash/psplash.mk
> +++ b/package/psplash/psplash.mk
> @@ -18,6 +18,24 @@ else
>  PSPLASH_CONF_OPTS += --without-systemd
>  endif
>
> +ifeq ($(BR2_PACKAGE_PSPLASH_FULL_SCREEN),y)
> +PSPLASH_CONF_OPTS += --enable-img-fullscreen
> +else
> +PSPLASH_CONF_OPTS += --disable-img-fullscreen
> +endif
> +
> +ifeq ($(BR2_PACKAGE_PSPLASH_STARTUP_MSG),y)
> +PSPLASH_CONF_OPTS += --enable-startup-msg
> +else
> +PSPLASH_CONF_OPTS += --disable-startup-msg
> +endif
> +
> +ifeq ($(BR2_PACKAGE_PSPLASH_PROGRESS_BAR),y)
> +PSPLASH_CONF_OPTS += --enable-progress-bar
> +else
> +PSPLASH_CONF_OPTS += --disable-progress-bar
> +endif
> +
>  PSPLASH_IMAGE = $(call qstrip,$(BR2_PACKAGE_PSPLASH_IMAGE))
>
>  ifneq ($(PSPLASH_IMAGE),)
> --
> 2.25.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20211201/778be1eb/attachment.html>


More information about the buildroot mailing list