]> code.ossystems Code Review - openembedded-core.git/commitdiff
allarch: Add warning about packagegroup
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Aug 2014 12:35:52 +0000 (13:35 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Aug 2014 22:01:51 +0000 (23:01 +0100)
Since we want to start including this class conditionally, detect cases
where packagegroup files use the old ordering and inform the user they
need to update this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/allarch.bbclass

index c953e7c7d71889fda3acb21fb806b751d1a1f9b2..4bc99272c4972bd0f00684a8c5d439665e0c504c 100644 (file)
@@ -37,5 +37,7 @@ python () {
         d.setVar("EXCLUDE_FROM_SHLIBS", "1")
         d.setVar("INHIBIT_PACKAGE_DEBUG_SPLIT", "1")
         d.setVar("INHIBIT_PACKAGE_STRIP", "1")
+    elif bb.data.inherits_class('packagegroup', d) and not bb.data.inherits_class('nativesdk', d):
+        bb.error("Please ensure recipe %s sets PACKAGE_ARCH before inherit packagegroup" % d.getVar("FILE", True))
 }