From patchwork Fri Sep 21 16:40:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] classes/multilib: prevent multilib extension of nativesdk recipes Date: Fri, 21 Sep 2012 16:40:37 -0000 From: Paul Eggleton X-Patchwork-Id: 37013 Message-Id: <2364b5deb93745b2964fb46aebc460094fd227b6.1348245594.git.paul.eggleton@linux.intel.com> To: openembedded-core@lists.openembedded.org It isn't supported to mix multilib and nativesdk in the same target, so explicitly skip multilib processing if nativesdk is inherited. As a bonus this fixes a bunch of related "missing file" warnings from the file checksum code during parsing because BPN was not correctly stripped for these targets. Second half of the fix for [YOCTO #3146]. Signed-off-by: Paul Eggleton --- meta/classes/multilib.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass index 25cf068..6923822 100644 --- a/meta/classes/multilib.bbclass +++ b/meta/classes/multilib.bbclass @@ -14,6 +14,9 @@ python multilib_virtclass_handler () { if bb.data.inherits_class('native', e.data): raise bb.parse.SkipPackage("We can't extend native recipes") + if bb.data.inherits_class('nativesdk', e.data): + raise bb.parse.SkipPackage("We can't extend nativesdk recipes") + # Set variables suitable for image recipes (as well as everything else) e.data.setVar("MLPREFIX", variant + "-") e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False))