* [PATCH] soc-family.inc: Add a default SOC_FAMILY value
@ 2015-06-01 21:14 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-06-01 21:14 UTC (permalink / raw)
To: openembedded-core
Otherwise, if MACHINEOVERRIDES is expanded before SOC_FAMILY is set
(which may happen as MACHINEOVERRIDES is included in OVERRIDES) we can
see:
ExpansionError: Failure expanding variable MACHINEOVERRIDES, expression was
${@['', '${SOC_FAMILY}:']['${SOC_FAMILY}' != '']}p1022ds
which triggered exception SyntaxError: EOL while scanning string literal (MACHINEOVERRIDES, line 1)
To avoid this, give SOC_FAMILY a default empty value so it doesn't
get read as None.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/meta/conf/machine/include/soc-family.inc b/meta/conf/machine/include/soc-family.inc
index 0251da0..1ff0899 100644
--- a/meta/conf/machine/include/soc-family.inc
+++ b/meta/conf/machine/include/soc-family.inc
@@ -1,2 +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}' != '']}"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-01 21:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-01 21:14 [PATCH] soc-family.inc: Add a default SOC_FAMILY value Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox