public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] soc-family.inc: improve clarity at MACHINEOVERRIDES's prepend
@ 2026-04-24 15:10 João Marcos Costa
  0 siblings, 0 replies; only message in thread
From: João Marcos Costa @ 2026-04-24 15:10 UTC (permalink / raw)
  To: openembedded-core; +Cc: thomas.petazzoni, João Marcos Costa

Use Python's ternary operator "A if condition else B".

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
---
 meta/conf/machine/include/soc-family.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/machine/include/soc-family.inc b/meta/conf/machine/include/soc-family.inc
index 1ff0899812..cdc7a5a64c 100644
--- a/meta/conf/machine/include/soc-family.inc
+++ b/meta/conf/machine/include/soc-family.inc
@@ -1,3 +1,3 @@
 # Add SOC_FAMILY to machine overrides so we get access to e.g. 'omap3' and 'ti335x'
 SOC_FAMILY ??= ""
-MACHINEOVERRIDES =. "${@['', '${SOC_FAMILY}:']['${SOC_FAMILY}' != '']}"
+MACHINEOVERRIDES =. "${@'${SOC_FAMILY}:' if '${SOC_FAMILY}' else '' }"
-- 
2.47.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-24 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-24 15:10 [PATCH] soc-family.inc: improve clarity at MACHINEOVERRIDES's prepend João Marcos Costa

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