]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/packagegroup: add ability to disable complementary packages
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 30 Aug 2012 13:56:00 +0000 (14:56 +0100)
committerSaul Wold <sgw@linux.intel.com>
Tue, 4 Sep 2012 05:52:50 +0000 (22:52 -0700)
This allows package group recipes that do not want the automatic
addition of complementary packages (e.g. for SDKs) to still inherit from
this class and thus it becomes very easy to determine if a recipe is a
package group which we need to do in certain circumstances.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/packagegroup.bbclass

index aa9e0ac650a77d481f2032b5e005f7baadd5d7ce..76a6aa5badc14902e04b40d0ee399c250f0d0d82 100644 (file)
@@ -19,6 +19,9 @@ PACKAGE_ARCH = "all"
 # to the list. Their dependencies (RRECOMMENDS) are handled as usual
 # by package_depchains in a following step.
 python () {
+    if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) == '1':
+        return
+
     packages = d.getVar('PACKAGES', True).split()
     genpackages = []
     for pkg in packages: