Skip to contentSkip to conversation

package/psplash: add support for missing configure options

PATCH In review Kory Maincent 4 participants 6 messages Nov 16, 2021 – May 16, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 package/psplash: add support for missing configure options

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

---

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(+)
package/psplash/Config.in +17 -0
index da99b264e0..edd30dcb4d 100644
@@ -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"
package/psplash/psplash.mk +18 -0
index 5e61f2392f..e5b212381a 100644
@@ -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),)
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Bump.

<>< <>< <><
Bryce Schober

Quoted 80 lines · Kory Maincent

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

---

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(+)
package/psplash/Config.in +17 -0
index da99b264e0..edd30dcb4d 100644
@@ -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"
package/psplash/psplash.mk +18 -1
index 5e61f2392f..e5b212381a 100644
@@ -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

Quoted 5 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Tested-by on v3 1/1
#2 lore raw
In reply to Kory Maincent
Quoted 7 lines · Kory Maincent

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

Quoted 74 lines

---

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(+)
package/psplash/Config.in +17 -0
index da99b264e0..edd30dcb4d 100644
@@ -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"
package/psplash/psplash.mk +18 -1
index 5e61f2392f..e5b212381a 100644
@@ -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

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Kory Maincent
Quoted 53 lines · Kory Maincent

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

---

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(+)
package/psplash/Config.in +17 -0
index da99b264e0..edd30dcb4d 100644
@@ -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"
package/psplash/psplash.mk +0 -0
index 5e61f2392f..e5b212381a 100644

package/psplash/psplash.mk else · line 24

Quoted 7 lines
package/psplash/psplash.mk +4 -0
@@ -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

Have you actually tested this?

I haven't, but I see this in configure.ac:

AC_ARG_ENABLE([img-fullscreen],
AS_HELP_STRING([--enable-img-fullscreen], [Enable the logo image in
fullscreen mode)]),
[img_fullscreen=true],
[img_fullscreen=false])
AS_IF([test x$img_fullscreen = xtrue], [
EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_IMG_FULLSCREEN=1"
])

i.a. AC_ARG_ENABLE is used incorrectly. That means that both --enable-img-fullscreen and --disable-image-fullscreen will enable the option (because the action-if-present is img_fullscreen=true), while if nothing is set it will be disbled.

Same for the other two options, but there the logic is inverted (i.e. it's
disabled if present and enabled if not).

I don't know if psplash is still an active project; if so, I would propose to
fix this in configure.ac and send the patch upstream. The fix is simple:

AC_ARG_ENABLE([img-fullscreen],
AS_HELP_STRING([--enable-img-fullscreen], [Enable the logo image in
fullscreen mode)]))
AS_IF([test "x$enable_img_fullscreen" != "xno"], [
EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_IMG_FULLSCREEN=1"
])

and for enable-startup-msg:

AC_ARG_ENABLE([startup-msg],
AS_HELP_STRING([--disable-startup-msg], [Disable text banner output on
startup]),

    [],[enable_startup_msg=yes])

AS_IF([test "x$enable_startup_msg" = "xno"], [
EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_DISABLE_STARTUP_MSG"
])

(note: you have to use "no" because that is the value that is set when --disable-foo is given. You shouldn't use anything else because --enable-foo=no or --enable-foo=yes are also allowed).

Regards,
Arnout

Quoted 8 lines
package/psplash/psplash.mk +7 -0
+endif
+
+ifeq ($(BR2_PACKAGE_PSPLASH_STARTUP_MSG),y)
+PSPLASH_CONF_OPTS += --enable-startup-msg
+else
+PSPLASH_CONF_OPTS += --disable-startup-msg
+endif

package/psplash/psplash.mk else · line 41

Quoted 10 lines
package/psplash/psplash.mk +7 -0
+
+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),)

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
Quoted 7 lines · Arnout Vandecappelle
Quoted 4 lines · Kory Maincent

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

 I forgot to mention before: the commit message should say explicitly that startup-msg and progress-bar default to enabled, so they have the corresponding default in Config.in.

 Regards,
 Arnout

Quoted 108 lines
Quoted 50 lines

---

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(+)
package/psplash/Config.in +0 -0
index da99b264e0..edd30dcb4d 100644
@@ -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.

package/psplash/Config.in +13 -0
+
+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"

package/psplash/psplash.mk +0 -0
index 5e61f2392f..e5b212381a 100644
@@ -18,6 +18,24 @@ else

  PSPLASH_CONF_OPTS += --without-systemd
  endif
  +ifeq ($(BR2_PACKAGE_PSPLASH_FULL_SCREEN),y)

package/psplash/psplash.mk else · line 24

Quoted 3 lines
package/psplash/psplash.mk +3 -0
+PSPLASH_CONF_OPTS += --enable-img-fullscreen
+else
+PSPLASH_CONF_OPTS += --disable-img-fullscreen

 Have you actually tested this?

 I haven't, but I see this in configure.ac:

AC_ARG_ENABLE([img-fullscreen],
    AS_HELP_STRING([--enable-img-fullscreen], [Enable the logo image in fullscreen mode)]), [img_fullscreen=true],
    [img_fullscreen=false])
AS_IF([test x$img_fullscreen = xtrue], [
    EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_IMG_FULLSCREEN=1"
])

i.a. AC_ARG_ENABLE is used incorrectly. That means that both --enable-img-fullscreen and --disable-image-fullscreen will enable the option (because the action-if-present is img_fullscreen=true), while if nothing is set it will be disbled.

 Same for the other two options, but there the logic is inverted (i.e. it's disabled if present and enabled if not).

 I don't know if psplash is still an active project; if so, I would propose to fix this in configure.ac and send the patch upstream. The fix is simple:

AC_ARG_ENABLE([img-fullscreen],
    AS_HELP_STRING([--enable-img-fullscreen], [Enable the logo image in fullscreen mode)])) AS_IF([test "x$enable_img_fullscreen" != "xno"], [ EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_IMG_FULLSCREEN=1"
])

 and for enable-startup-msg:

AC_ARG_ENABLE([startup-msg],
    AS_HELP_STRING([--disable-startup-msg], [Disable text banner output on startup]), [],[enable_startup_msg=yes])
AS_IF([test "x$enable_startup_msg" = "xno"], [ EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_DISABLE_STARTUP_MSG"
])

(note: you have to use "no" because that is the value that is set when --disable-foo is given. You shouldn't use anything else because --enable-foo=no or --enable-foo=yes are also allowed).

 Regards,
 Arnout

Quoted 9 lines
package/psplash/psplash.mk +9 -0
+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)
Quoted 8 lines
Quoted 8 lines
package/psplash/psplash.mk +5 -0
+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),)

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw

Ping

Quoted 154 lines · Arnout Vandecappelle
Quoted 7 lines · Arnout Vandecappelle
Quoted 4 lines · Kory Maincent

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

I forgot to mention before: the commit message should say explicitly
that
startup-msg and progress-bar default to enabled, so they have the corresponding
default in Config.in.

Regards,
Arnout

Quoted 67 lines
Quoted 47 lines

---

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(+)
package/psplash/Config.in +16 -0
index da99b264e0..edd30dcb4d 100644
@@ -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"
package/psplash/psplash.mk +0 -0
index 5e61f2392f..e5b212381a 100644

package/psplash/psplash.mk else · line 23

Quoted 6 lines
package/psplash/psplash.mk +3 -0
@@ -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

Have you actually tested this?

I haven't, but I see this in configure.ac:

AC_ARG_ENABLE([img-fullscreen],
AS_HELP_STRING([--enable-img-fullscreen], [Enable the logo image in
fullscreen mode)]),
[img_fullscreen=true],
[img_fullscreen=false])
AS_IF([test x$img_fullscreen = xtrue], [
EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_IMG_FULLSCREEN=1"
])

Quoted 2 lines

i.a. AC_ARG_ENABLE is used incorrectly. That means that both --enable-img-fullscreen and --disable-image-fullscreen will enable the

option

Quoted 1 line

(because the action-if-present is img_fullscreen=true), while if nothing

is

Quoted 3 lines

set it will be disbled.

Same for the other two options, but there the logic is inverted (i.e.

it's

Quoted 3 lines

disabled if present and enabled if not).

I don't know if psplash is still an active project; if so, I would

propose to

Quoted 11 lines

fix this in configure.ac and send the patch upstream. The fix is simple:

AC_ARG_ENABLE([img-fullscreen],
AS_HELP_STRING([--enable-img-fullscreen], [Enable the logo image in
fullscreen mode)]))
AS_IF([test "x$enable_img_fullscreen" != "xno"], [
EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_IMG_FULLSCREEN=1"
])

Quoted 4 lines

and for enable-startup-msg:

AC_ARG_ENABLE([startup-msg],
AS_HELP_STRING([--disable-startup-msg], [Disable text banner output

on

Quoted 23 lines

startup]),

    [],[enable_startup_msg=yes])

AS_IF([test "x$enable_startup_msg" = "xno"], [
EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_DISABLE_STARTUP_MSG"
])

(note: you have to use "no" because that is the value that is set when --disable-foo is given. You shouldn't use anything else because --enable-foo=no or --enable-foo=yes are also allowed).

Regards,
Arnout

Quoted 9 lines
package/psplash/psplash.mk +9 -0
+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)
Quoted 8 lines

package/psplash/psplash.mk else

Quoted 8 lines
package/psplash/psplash.mk +5 -0
+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),)
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Signature · 5 lines
*David Corbeil-Stroombergen*
Software development engineer
Dynon
425-402-0433 Main
www.dynon.aero <http://www.dynonavionics.com/>

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot