[oe-commits] Paul Eggleton : classes/packagegroup: add ability to disable complementary packages
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 4 11:50:56 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 3a3ae22bc0be5b36e0400986930f30c22a61a74e
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3a3ae22bc0be5b36e0400986930f30c22a61a74e
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date: Thu Aug 30 14:56:00 2012 +0100
classes/packagegroup: add ability to disable complementary packages
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 at linux.intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/classes/packagegroup.bbclass | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass
index aa9e0ac..76a6aa5 100644
--- a/meta/classes/packagegroup.bbclass
+++ b/meta/classes/packagegroup.bbclass
@@ -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:
More information about the Openembedded-commits
mailing list