2012-08-29 12:13:12 +00:00
|
|
|
# Class for packagegroup (package group) recipes
|
|
|
|
|
|
|
|
# packagegroup packages are only used to pull in other packages
|
2012-08-29 10:38:34 +00:00
|
|
|
# via their dependencies. They are empty.
|
|
|
|
ALLOW_EMPTY = "1"
|
|
|
|
|
2012-08-29 12:13:12 +00:00
|
|
|
# By default, only the packagegroup package itself is in PACKAGES.
|
2012-08-29 10:38:34 +00:00
|
|
|
# -dbg and -dev flavours are handled by the anonfunc below.
|
2012-08-29 12:13:12 +00:00
|
|
|
# This means that packagegroup recipes used to build multiple packagegroup
|
|
|
|
# packages have to modify PACKAGES after inheriting packagegroup.bbclass.
|
2012-08-29 10:38:34 +00:00
|
|
|
PACKAGES = "${PN}"
|
|
|
|
|
2012-08-29 12:13:12 +00:00
|
|
|
# By default, packagegroup packages do not depend on a certain architecture.
|
2012-08-29 10:38:34 +00:00
|
|
|
# Only if dependencies are modified by MACHINE_FEATURES, packages
|
2012-08-29 12:13:12 +00:00
|
|
|
# need to be set to MACHINE_ARCH after inheriting packagegroup.bbclass
|
2012-08-29 10:38:34 +00:00
|
|
|
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 () {
|
2012-08-30 13:56:00 +00:00
|
|
|
if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) == '1':
|
|
|
|
return
|
|
|
|
|
2012-08-29 10:38:34 +00:00
|
|
|
packages = d.getVar('PACKAGES', True).split()
|
|
|
|
genpackages = []
|
|
|
|
for pkg in packages:
|
|
|
|
for postfix in ['-dbg', '-dev']:
|
|
|
|
genpackages.append(pkg+postfix)
|
|
|
|
d.setVar('PACKAGES', ' '.join(packages+genpackages))
|
|
|
|
}
|
|
|
|
|
|
|
|
# We don't want to look at shared library dependencies for the
|
|
|
|
# dbg packages
|
|
|
|
DEPCHAIN_DBGDEFAULTDEPS = "1"
|