base.bbclass: Fix matching of MACHINEOVERRIDES in COMPATIBLE_MACHINE
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 8 Apr 2013 21:42:44 +0000 (18:42 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Apr 2013 12:19:43 +0000 (13:19 +0100)
commit0c8164b677f9325987cec4ff00ecc3ba35eb9d97
tree82e1c367beb79bca1afe43915807e07cb340c92d
parent80323fb686121a87c4755a0de5a757e87a59e87a
base.bbclass: Fix matching of MACHINEOVERRIDES in COMPATIBLE_MACHINE

The use of SOC_FAMILY here is old code and SOC_FAMILY is now implemented by
MACHINEOVERRIDES behind the scenes. It therefore makes more sense to use
the replacement value in this code. Just like SOC_FAMILY, this is a ":"
delimited variable so we should iterate over the components, not use
the value directly.

Finally, MACHINEOVERRIDES contains MACHINE so we don't need to check that
directly.

This makes the functionality match what most users would expect it to do
and is also compatible with the way things previously worked.

(From OE-Core rev: 8ceef74dd4f662b4c7e3c170ce486e966ebebeff)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass