diff options
author | Michael Lauer <mickey@vanille-media.de> | 2007-08-20 12:07:56 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2007-08-20 12:07:56 +0000 |
commit | c665c146f949fb40806285277e65c6bfc4fa1c23 (patch) | |
tree | 02d7bdd7707ada103c399f89d1d3af6328c218f8 /classes | |
parent | fc5fa44544b61fe20011986480b945eb4ff7f20a (diff) | |
parent | 50a725086ad78d6733af3896710c38712c54ceed (diff) |
merge of '28a8c519bdad5460acd375fdfc946ccc83177df6'
and '640195905df353942a1e0cde6e72a194c3a7434a'
Diffstat (limited to 'classes')
-rw-r--r-- | classes/task.bbclass | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/classes/task.bbclass b/classes/task.bbclass new file mode 100644 index 0000000000..4edd704829 --- /dev/null +++ b/classes/task.bbclass @@ -0,0 +1,27 @@ +# Task packages are only used to pull in other packages +# via their dependencies. They are empty. +ALLOW_EMPTY = "1" + +# By default, only the task package itself is in PACKAGES. +# -dbg and -dev flavours are handled by the anonfunc below. +# This means that task recipes used to build multiple task +# packages have to modify PACKAGES after inheriting task.bbclass. +PACKAGES = "${PN}" + +# By default, task packages do not depend on a certain architecture. +# Only if dependencies are modified by MACHINE_FEATURES, packages +# need to be set to MACHINE_ARCH after inheriting task.bbclass +PACKAGE_ARCH = "all" + +# This automatically adds -dbg and -dev flavours of all PACKAGES +# to the list. Their dependencies (RRECOMMENDS) are handled as usual +# by package_depchains in a following step. +python () { + packages = bb.data.getVar('PACKAGES', d, 1).split() + genpackages = [] + for pkg in packages: + for postfix in ['-dbg', '-dev']: + genpackages.append(pkg+postfix) + bb.data.setVar('PACKAGES', ' '.join(packages+genpackages), d) +} + |