From: "João Marcos Costa" <joaomarcos.costa@bootlin.com>
To: openembedded-core@lists.openembedded.org
Cc: thomas.petazzoni@bootlin.com,
"João Marcos Costa" <joaomarcos.costa@bootlin.com>
Subject: [PATCH] soc-family.inc: improve clarity at MACHINEOVERRIDES's prepend
Date: Fri, 24 Apr 2026 17:10:13 +0200 [thread overview]
Message-ID: <20260424151013.12534-1-joaomarcos.costa@bootlin.com> (raw)
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
reply other threads:[~2026-04-24 15:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260424151013.12534-1-joaomarcos.costa@bootlin.com \
--to=joaomarcos.costa@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox