DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH] fixup! v7a: barebox: am335x-mlo: document some unusual kconfig options
@ 2024-07-12 15:36 Ahmad Fatoum
  2024-07-12 15:41 ` Robert Schwebel
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-07-12 15:36 UTC (permalink / raw)
  To: distrokit; +Cc: Ahmad Fatoum

v7a: barebox: restrict bsp.ref condition to applicable platforms

While barebox can be built for x86_64 and MIPS, we don't currently do so,
so the condition in the bsp.ref shouldn't assume that all platforms
have a barebox config.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 configs/bsp.ref | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configs/bsp.ref b/configs/bsp.ref
index 5b5b4a763b15..2f64107ef52a 100644
--- a/configs/bsp.ref
+++ b/configs/bsp.ref
@@ -53,7 +53,9 @@ barebox_arm_optimized_string_functions:
     needs to fit into on-chip SRAM to be able to set up DRAM and thus
     we use the smaller C implementation instead.
   variants:
-    - condition: kconfig.BareboxConfig()['ARCH_OMAP'] and kconfig.BareboxConfig()['SHELL_NONE']
+    - condition: |
+        kconfig.have_barebox_config() and
+        kconfig.BareboxConfig()['ARCH_OMAP'] and kconfig.BareboxConfig()['SHELL_NONE']
       value: False
     - value: True
 
@@ -67,7 +69,9 @@ barebox_gpt_support:
     barebox, we only need GPT support later on in the second stage
     barebox-am335x configuration.
   variants:
-    - condition: kconfig.BareboxConfig()['ARCH_OMAP'] and kconfig.BareboxConfig()['SHELL_NONE']
+    - condition: |
+        kconfig.have_barebox_config() and
+        kconfig.BareboxConfig()['ARCH_OMAP'] and kconfig.BareboxConfig()['SHELL_NONE']
       value: False
     - value: True
 
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-12 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-12 15:36 [DistroKit] [PATCH] fixup! v7a: barebox: am335x-mlo: document some unusual kconfig options Ahmad Fatoum
2024-07-12 15:41 ` Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox