* [DistroKit] [PATCH 1/2] barebox: enable CONFIG_BOOTM_OFTREE_FALLBACK everywhere
@ 2026-04-07 13:37 Ahmad Fatoum
2026-04-07 13:37 ` [DistroKit] [PATCH 2/2] reason: Check for BOOTM_OFTREE_FALLBACK only if BOOTM_OFTREE=y Ahmad Fatoum
2026-04-07 13:43 ` [DistroKit] [PATCH 1/2] barebox: enable CONFIG_BOOTM_OFTREE_FALLBACK everywhere Robert Schwebel
0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2026-04-07 13:37 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
To quote configs/bsp.ref:
| barebox will substitute its own device tree when no kernel device
| tree was supplied. This is useful for development, but not recommended
| for use in production as DT binding breakage is not an infrequent
| occurrence.
|
| We take care in DistroKit though to specify the DT when we specify
| a kernel, so enable this option as it's occasionally helpful for quick
This rationale applies to all boards we have that use DT, so enable
CONFIG_BOOTM_OFTREE_FALLBACK everywhere.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/platform-v7a/barebox-at91.config | 2 +-
configs/platform-v7a/barebox-common.config | 2 +-
configs/platform-v7a_noneon/barebox-at91.config | 2 +-
configs/platform-v7a_noneon/barebox-common.config | 2 +-
configs/platform-v7a_noneon/barebox-vexpress.config | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/configs/platform-v7a/barebox-at91.config b/configs/platform-v7a/barebox-at91.config
index 2aac4d007cd0..ed423655640c 100644
--- a/configs/platform-v7a/barebox-at91.config
+++ b/configs/platform-v7a/barebox-at91.config
@@ -210,7 +210,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
CONFIG_BOOTM_VERBOSE=y
CONFIG_BOOTM_INITRD=y
CONFIG_BOOTM_OFTREE=y
-# CONFIG_BOOTM_OFTREE_FALLBACK is not set
+CONFIG_BOOTM_OFTREE_FALLBACK=y
CONFIG_BOOTM_UIMAGE=y
CONFIG_BOOTM_OFTREE_UIMAGE=y
# CONFIG_BOOTM_AIMAGE is not set
diff --git a/configs/platform-v7a/barebox-common.config b/configs/platform-v7a/barebox-common.config
index 328ca48009b8..0be80cb6d650 100644
--- a/configs/platform-v7a/barebox-common.config
+++ b/configs/platform-v7a/barebox-common.config
@@ -195,7 +195,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
CONFIG_BOOTM_VERBOSE=y
CONFIG_BOOTM_INITRD=y
CONFIG_BOOTM_OFTREE=y
-# CONFIG_BOOTM_OFTREE_FALLBACK is not set
+CONFIG_BOOTM_OFTREE_FALLBACK=y
CONFIG_BOOTM_UIMAGE=y
# CONFIG_BOOTM_OFTREE_UIMAGE is not set
# CONFIG_BOOTM_AIMAGE is not set
diff --git a/configs/platform-v7a_noneon/barebox-at91.config b/configs/platform-v7a_noneon/barebox-at91.config
index 9554d5d53a42..f8f1da88f1e5 100644
--- a/configs/platform-v7a_noneon/barebox-at91.config
+++ b/configs/platform-v7a_noneon/barebox-at91.config
@@ -199,7 +199,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
# CONFIG_BOOTM_VERBOSE is not set
CONFIG_BOOTM_INITRD=y
CONFIG_BOOTM_OFTREE=y
-# CONFIG_BOOTM_OFTREE_FALLBACK is not set
+CONFIG_BOOTM_OFTREE_FALLBACK=y
# CONFIG_BOOTM_UIMAGE is not set
# CONFIG_BOOTM_AIMAGE is not set
CONFIG_ELF=y
diff --git a/configs/platform-v7a_noneon/barebox-common.config b/configs/platform-v7a_noneon/barebox-common.config
index 63ff1f02b404..0d7cc1d8992a 100644
--- a/configs/platform-v7a_noneon/barebox-common.config
+++ b/configs/platform-v7a_noneon/barebox-common.config
@@ -193,7 +193,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
CONFIG_BOOTM_VERBOSE=y
CONFIG_BOOTM_INITRD=y
CONFIG_BOOTM_OFTREE=y
-# CONFIG_BOOTM_OFTREE_FALLBACK is not set
+CONFIG_BOOTM_OFTREE_FALLBACK=y
# CONFIG_BOOTM_UIMAGE is not set
# CONFIG_BOOTM_AIMAGE is not set
CONFIG_ELF=y
diff --git a/configs/platform-v7a_noneon/barebox-vexpress.config b/configs/platform-v7a_noneon/barebox-vexpress.config
index b0a5dbddee7f..05c239214e96 100644
--- a/configs/platform-v7a_noneon/barebox-vexpress.config
+++ b/configs/platform-v7a_noneon/barebox-vexpress.config
@@ -179,7 +179,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
CONFIG_BOOTM_VERBOSE=y
CONFIG_BOOTM_INITRD=y
CONFIG_BOOTM_OFTREE=y
-# CONFIG_BOOTM_OFTREE_FALLBACK is not set
+CONFIG_BOOTM_OFTREE_FALLBACK=y
# CONFIG_BOOTM_UIMAGE is not set
# CONFIG_BOOTM_AIMAGE is not set
CONFIG_ELF=y
--
2.47.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [DistroKit] [PATCH 2/2] reason: Check for BOOTM_OFTREE_FALLBACK only if BOOTM_OFTREE=y
2026-04-07 13:37 [DistroKit] [PATCH 1/2] barebox: enable CONFIG_BOOTM_OFTREE_FALLBACK everywhere Ahmad Fatoum
@ 2026-04-07 13:37 ` Ahmad Fatoum
2026-04-07 13:43 ` [DistroKit] [PATCH 1/2] barebox: enable CONFIG_BOOTM_OFTREE_FALLBACK everywhere Robert Schwebel
1 sibling, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2026-04-07 13:37 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
We have an override to enforce BOOTM_OFTREE_FALLBACK=y in DistroKit, but
that only makes sense of course, if we are actually using DT.
This is currently the case for all our barebox use, but not all our
platforms use barebox. Therefore make the rule conditional of having a
barebox config and BOOTM_OFTREE being actually enabled.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/bsp.ref | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/bsp.ref b/configs/bsp.ref
index 934c99c262c5..de2736462445 100644
--- a/configs/bsp.ref
+++ b/configs/bsp.ref
@@ -49,6 +49,7 @@ barebox_oftree_fallback:
We take care in DistroKit though to specify the DT when we specify
a kernel, so enable this option as it's occasionally helpful for quick
debugging.
+ condition: kconfig.have_barebox_config() and kconfig.BareboxConfig()['BOOTM_OFTREE']
present:
- BOOTM_OFTREE_FALLBACK
--
2.47.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [DistroKit] [PATCH 1/2] barebox: enable CONFIG_BOOTM_OFTREE_FALLBACK everywhere
2026-04-07 13:37 [DistroKit] [PATCH 1/2] barebox: enable CONFIG_BOOTM_OFTREE_FALLBACK everywhere Ahmad Fatoum
2026-04-07 13:37 ` [DistroKit] [PATCH 2/2] reason: Check for BOOTM_OFTREE_FALLBACK only if BOOTM_OFTREE=y Ahmad Fatoum
@ 2026-04-07 13:43 ` Robert Schwebel
1 sibling, 0 replies; 3+ messages in thread
From: Robert Schwebel @ 2026-04-07 13:43 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: distrokit
Series applied to next...
On Tue, Apr 07, 2026 at 03:37:54PM +0200, Ahmad Fatoum wrote:
> To quote configs/bsp.ref:
>
> | barebox will substitute its own device tree when no kernel device
> | tree was supplied. This is useful for development, but not recommended
> | for use in production as DT binding breakage is not an infrequent
> | occurrence.
> |
> | We take care in DistroKit though to specify the DT when we specify
> | a kernel, so enable this option as it's occasionally helpful for quick
>
> This rationale applies to all boards we have that use DT, so enable
> CONFIG_BOOTM_OFTREE_FALLBACK everywhere.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> configs/platform-v7a/barebox-at91.config | 2 +-
> configs/platform-v7a/barebox-common.config | 2 +-
> configs/platform-v7a_noneon/barebox-at91.config | 2 +-
> configs/platform-v7a_noneon/barebox-common.config | 2 +-
> configs/platform-v7a_noneon/barebox-vexpress.config | 2 +-
> 5 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/configs/platform-v7a/barebox-at91.config b/configs/platform-v7a/barebox-at91.config
> index 2aac4d007cd0..ed423655640c 100644
> --- a/configs/platform-v7a/barebox-at91.config
> +++ b/configs/platform-v7a/barebox-at91.config
> @@ -210,7 +210,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
> CONFIG_BOOTM_VERBOSE=y
> CONFIG_BOOTM_INITRD=y
> CONFIG_BOOTM_OFTREE=y
> -# CONFIG_BOOTM_OFTREE_FALLBACK is not set
> +CONFIG_BOOTM_OFTREE_FALLBACK=y
> CONFIG_BOOTM_UIMAGE=y
> CONFIG_BOOTM_OFTREE_UIMAGE=y
> # CONFIG_BOOTM_AIMAGE is not set
> diff --git a/configs/platform-v7a/barebox-common.config b/configs/platform-v7a/barebox-common.config
> index 328ca48009b8..0be80cb6d650 100644
> --- a/configs/platform-v7a/barebox-common.config
> +++ b/configs/platform-v7a/barebox-common.config
> @@ -195,7 +195,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
> CONFIG_BOOTM_VERBOSE=y
> CONFIG_BOOTM_INITRD=y
> CONFIG_BOOTM_OFTREE=y
> -# CONFIG_BOOTM_OFTREE_FALLBACK is not set
> +CONFIG_BOOTM_OFTREE_FALLBACK=y
> CONFIG_BOOTM_UIMAGE=y
> # CONFIG_BOOTM_OFTREE_UIMAGE is not set
> # CONFIG_BOOTM_AIMAGE is not set
> diff --git a/configs/platform-v7a_noneon/barebox-at91.config b/configs/platform-v7a_noneon/barebox-at91.config
> index 9554d5d53a42..f8f1da88f1e5 100644
> --- a/configs/platform-v7a_noneon/barebox-at91.config
> +++ b/configs/platform-v7a_noneon/barebox-at91.config
> @@ -199,7 +199,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
> # CONFIG_BOOTM_VERBOSE is not set
> CONFIG_BOOTM_INITRD=y
> CONFIG_BOOTM_OFTREE=y
> -# CONFIG_BOOTM_OFTREE_FALLBACK is not set
> +CONFIG_BOOTM_OFTREE_FALLBACK=y
> # CONFIG_BOOTM_UIMAGE is not set
> # CONFIG_BOOTM_AIMAGE is not set
> CONFIG_ELF=y
> diff --git a/configs/platform-v7a_noneon/barebox-common.config b/configs/platform-v7a_noneon/barebox-common.config
> index 63ff1f02b404..0d7cc1d8992a 100644
> --- a/configs/platform-v7a_noneon/barebox-common.config
> +++ b/configs/platform-v7a_noneon/barebox-common.config
> @@ -193,7 +193,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
> CONFIG_BOOTM_VERBOSE=y
> CONFIG_BOOTM_INITRD=y
> CONFIG_BOOTM_OFTREE=y
> -# CONFIG_BOOTM_OFTREE_FALLBACK is not set
> +CONFIG_BOOTM_OFTREE_FALLBACK=y
> # CONFIG_BOOTM_UIMAGE is not set
> # CONFIG_BOOTM_AIMAGE is not set
> CONFIG_ELF=y
> diff --git a/configs/platform-v7a_noneon/barebox-vexpress.config b/configs/platform-v7a_noneon/barebox-vexpress.config
> index b0a5dbddee7f..05c239214e96 100644
> --- a/configs/platform-v7a_noneon/barebox-vexpress.config
> +++ b/configs/platform-v7a_noneon/barebox-vexpress.config
> @@ -179,7 +179,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
> CONFIG_BOOTM_VERBOSE=y
> CONFIG_BOOTM_INITRD=y
> CONFIG_BOOTM_OFTREE=y
> -# CONFIG_BOOTM_OFTREE_FALLBACK is not set
> +CONFIG_BOOTM_OFTREE_FALLBACK=y
> # CONFIG_BOOTM_UIMAGE is not set
> # CONFIG_BOOTM_AIMAGE is not set
> CONFIG_ELF=y
> --
> 2.47.3
>
>
>
--
Pengutronix e.K. | Dipl.-Ing. Robert Schwebel |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-07 13:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-07 13:37 [DistroKit] [PATCH 1/2] barebox: enable CONFIG_BOOTM_OFTREE_FALLBACK everywhere Ahmad Fatoum
2026-04-07 13:37 ` [DistroKit] [PATCH 2/2] reason: Check for BOOTM_OFTREE_FALLBACK only if BOOTM_OFTREE=y Ahmad Fatoum
2026-04-07 13:43 ` [DistroKit] [PATCH 1/2] barebox: enable CONFIG_BOOTM_OFTREE_FALLBACK everywhere Robert Schwebel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox