soc-family.inc: improve clarity at MACHINEOVERRIDES's prepend
PATCH 1/1 soc-family.inc: improve clarity at MACHINEOVERRIDES's prepend
Use Python's ternary operator "A if condition else B".
Signed-off-by João Marcos Costa <[email protected]>
--- meta/conf/machine/include/soc-family.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/include/soc-family.inc +1 -1
@@ -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 '' }"
Signature · 1 line
2.47.0