]> code.ossystems Code Review - openembedded-core.git/commit
soc-family.inc: Add a default SOC_FAMILY value
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Jun 2015 21:14:10 +0000 (22:14 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Jun 2015 08:42:00 +0000 (09:42 +0100)
commit7c763846bca4347d6b9e8cc388ad075f00123235
tree306b8ffd60b3401ea267aa7841abe70efe2ec705
parentd88bb3759c36f2a30550529468c8a8c511b1661c
soc-family.inc: Add a default SOC_FAMILY value

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.

(From OE-Core rev: dee005b6e1bc353230f9f27a469b2054a644e542)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/machine/include/soc-family.inc