]> code.ossystems Code Review - openembedded-core.git/commit
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:17:03 +0000 (13:17 +0100)
commit8ceef74dd4f662b4c7e3c170ce486e966ebebeff
tree8fd65e6eac9b4702a20d6b20d187c955ecdbc267
parent7429db6f38e405774ba66b3fa1bc3ac4b74ae6b9
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.

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