[DistroKit] [PATCH 2/2] reason: Check for BOOTM_OFTREE_FALLBACK only if BOOTM_OFTREE=y

Ahmad Fatoum
2026-04-07T13:38:05Z

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