From patchwork Mon Feb 28 19:21:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINES Date: Mon, 28 Feb 2011 19:21:07 -0000 From: Koen Kooi X-Patchwork-Id: 839 Message-Id: <1298920867-4961-1-git-send-email-koen@dominion.thruhere.net> To: openembedded-core@lists.openembedded.org Cc: Koen Kooi * Add support for using SOC_FAMILY in the COMPATIBLE_MACHINES setting for a recipe. * This will allow recipes to work for entire families of devices without having to maintain/update the compatible devices as new devices are added into a family Based on 07076390358f211bd96779bec2d6eb5eaa0ad699 by Chase Maupin Signed-off-by: Koen Kooi --- meta/classes/base.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index a674f52..aaf99da 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -342,7 +342,9 @@ python () { import re this_machine = bb.data.getVar('MACHINE', d, 1) if this_machine and not re.match(need_machine, this_machine): - raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine) + this_soc_family = bb.data.getVar('SOC_FAMILY', d, 1) + if (this_soc_family and not re.match(need_machine, this_soc_family)) or not this_soc_family: + raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine) dont_want_license = bb.data.getVar('INCOMPATIBLE_LICENSE', d, 1)