Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] allarch: Add warning about packagegroup
@ 2014-08-19 12:35 Richard Purdie
  2014-08-27 17:20 ` Bob Cochran
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2014-08-19 12:35 UTC (permalink / raw)
  To: openembedded-core

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>

diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass
index c953e7c..4bc9927 100644
--- a/meta/classes/allarch.bbclass
+++ b/meta/classes/allarch.bbclass
@@ -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))
 }
 




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-27 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-19 12:35 [PATCH] allarch: Add warning about packagegroup Richard Purdie
2014-08-27 17:20 ` Bob Cochran
2014-08-27 23:03   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox