* [PATCH] boot: rename BOOTM_OPTIONAL_SIGNED_IMAGES
@ 2026-11-13 10:09 Sascha Hauer
2026-11-13 10:21 ` Ahmad Fatoum
0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2026-11-13 10:09 UTC (permalink / raw)
To: Barebox List
BOOTM_OPTIONAL_SIGNED_IMAGES is easily misread as an option that adds
support for signed images which are then optional. The option doesn't
add support for anything, it's merely the opposite of
BOOTM_FORCE_SIGNED_IMAGES. Rename it to BOOTM_ALLOW_UNSIGNED_IMAGES to
make that clear.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
common/Kconfig | 2 +-
common/Sconfig | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/Kconfig b/common/Kconfig
index 9adecfd2e4..4cac59fa22 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -796,7 +796,7 @@ config BOOTM_FORCE_SIGNED_IMAGES
are refused to boot. Effectively this means only FIT images can be booted
since they are the only supported image type that support signing.
-config BOOTM_OPTIONAL_SIGNED_IMAGES
+config BOOTM_ALLOW_UNSIGNED_IMAGES
def_bool !BOOTM_FORCE_SIGNED_IMAGES
select HAS_INSECURE_DEFAULTS
depends on BOOTM
diff --git a/common/Sconfig b/common/Sconfig
index e5bfb63cfc..f7afb9c94a 100644
--- a/common/Sconfig
+++ b/common/Sconfig
@@ -51,7 +51,7 @@ menu "Boot Policy"
config BOOT_UNSIGNED_IMAGES
bool "Allow booting unsigned images"
- depends on $(kconfig-enabled,BOOTM_OPTIONAL_SIGNED_IMAGES)
+ depends on $(kconfig-enabled,BOOTM_ALLOW_UNSIGNED_IMAGES)
help
Say y here if you want to allow booting of images with
an invalid signature or no signature at all.
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] boot: rename BOOTM_OPTIONAL_SIGNED_IMAGES
2026-11-13 10:09 [PATCH] boot: rename BOOTM_OPTIONAL_SIGNED_IMAGES Sascha Hauer
@ 2026-11-13 10:21 ` Ahmad Fatoum
0 siblings, 0 replies; 2+ messages in thread
From: Ahmad Fatoum @ 2026-11-13 10:21 UTC (permalink / raw)
To: Sascha Hauer, Barebox List
On 11/13/26 11:09 AM, Sascha Hauer wrote:
> BOOTM_OPTIONAL_SIGNED_IMAGES is easily misread as an option that adds
> support for signed images which are then optional. The option doesn't
> add support for anything, it's merely the opposite of
> BOOTM_FORCE_SIGNED_IMAGES. Rename it to BOOTM_ALLOW_UNSIGNED_IMAGES to
> make that clear.
>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> common/Kconfig | 2 +-
> common/Sconfig | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/common/Kconfig b/common/Kconfig
> index 9adecfd2e4..4cac59fa22 100644
> --- a/common/Kconfig
> +++ b/common/Kconfig
> @@ -796,7 +796,7 @@ config BOOTM_FORCE_SIGNED_IMAGES
> are refused to boot. Effectively this means only FIT images can be booted
> since they are the only supported image type that support signing.
>
> -config BOOTM_OPTIONAL_SIGNED_IMAGES
> +config BOOTM_ALLOW_UNSIGNED_IMAGES
> def_bool !BOOTM_FORCE_SIGNED_IMAGES
> select HAS_INSECURE_DEFAULTS
> depends on BOOTM
> diff --git a/common/Sconfig b/common/Sconfig
> index e5bfb63cfc..f7afb9c94a 100644
> --- a/common/Sconfig
> +++ b/common/Sconfig
> @@ -51,7 +51,7 @@ menu "Boot Policy"
>
> config BOOT_UNSIGNED_IMAGES
> bool "Allow booting unsigned images"
> - depends on $(kconfig-enabled,BOOTM_OPTIONAL_SIGNED_IMAGES)
> + depends on $(kconfig-enabled,BOOTM_ALLOW_UNSIGNED_IMAGES)
> help
> Say y here if you want to allow booting of images with
> an invalid signature or no signature at all.
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-13 10:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 10:09 [PATCH] boot: rename BOOTM_OPTIONAL_SIGNED_IMAGES Sascha Hauer
2026-11-13 10:21 ` Ahmad Fatoum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox