diff options
Diffstat (limited to 'meta/classes/packagegroup.bbclass')
| -rw-r--r-- | meta/classes/packagegroup.bbclass | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass deleted file mode 100644 index 6f17fc73b0..0000000000 --- a/meta/classes/packagegroup.bbclass +++ /dev/null | |||
| @@ -1,67 +0,0 @@ | |||
| 1 | # | ||
| 2 | # Copyright OpenEmbedded Contributors | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: MIT | ||
| 5 | # | ||
| 6 | |||
| 7 | # Class for packagegroup (package group) recipes | ||
| 8 | |||
| 9 | # By default, only the packagegroup package itself is in PACKAGES. | ||
| 10 | # -dbg and -dev flavours are handled by the anonfunc below. | ||
| 11 | # This means that packagegroup recipes used to build multiple packagegroup | ||
| 12 | # packages have to modify PACKAGES after inheriting packagegroup.bbclass. | ||
| 13 | PACKAGES = "${PN}" | ||
| 14 | |||
| 15 | # By default, packagegroup packages do not depend on a certain architecture. | ||
| 16 | # Only if dependencies are modified by MACHINE_FEATURES, packages | ||
| 17 | # need to be set to MACHINE_ARCH before inheriting packagegroup.bbclass | ||
| 18 | PACKAGE_ARCH ?= "all" | ||
| 19 | |||
| 20 | # Fully expanded - so it applies the overrides as well | ||
| 21 | PACKAGE_ARCH_EXPANDED := "${PACKAGE_ARCH}" | ||
| 22 | |||
| 23 | LICENSE ?= "MIT" | ||
| 24 | |||
| 25 | inherit ${@oe.utils.ifelse(d.getVar('PACKAGE_ARCH_EXPANDED') == 'all', 'allarch', '')} | ||
| 26 | |||
| 27 | # This automatically adds -dbg and -dev flavours of all PACKAGES | ||
| 28 | # to the list. Their dependencies (RRECOMMENDS) are handled as usual | ||
| 29 | # by package_depchains in a following step. | ||
| 30 | # Also mark all packages as ALLOW_EMPTY | ||
| 31 | python () { | ||
| 32 | packages = d.getVar('PACKAGES').split() | ||
| 33 | if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY') != '1': | ||
| 34 | types = ['', '-dbg', '-dev'] | ||
| 35 | if bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d): | ||
| 36 | types.append('-ptest') | ||
| 37 | packages = [pkg + suffix for pkg in packages | ||
| 38 | for suffix in types] | ||
| 39 | d.setVar('PACKAGES', ' '.join(packages)) | ||
| 40 | for pkg in packages: | ||
| 41 | d.setVar('ALLOW_EMPTY:%s' % pkg, '1') | ||
| 42 | } | ||
| 43 | |||
| 44 | # We don't want to look at shared library dependencies for the | ||
| 45 | # dbg packages | ||
| 46 | DEPCHAIN_DBGDEFAULTDEPS = "1" | ||
| 47 | |||
| 48 | # We only need the packaging tasks - disable the rest | ||
| 49 | deltask do_fetch | ||
| 50 | deltask do_unpack | ||
| 51 | deltask do_patch | ||
| 52 | deltask do_configure | ||
| 53 | deltask do_compile | ||
| 54 | deltask do_install | ||
| 55 | deltask do_populate_sysroot | ||
| 56 | |||
| 57 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 58 | |||
| 59 | python () { | ||
| 60 | if bb.data.inherits_class('nativesdk', d): | ||
| 61 | return | ||
| 62 | initman = d.getVar("VIRTUAL-RUNTIME_init_manager") | ||
| 63 | if initman and initman in ['sysvinit', 'systemd'] and not bb.utils.contains('DISTRO_FEATURES', initman, True, False, d): | ||
| 64 | bb.fatal("Please ensure that your setting of VIRTUAL-RUNTIME_init_manager (%s) matches the entries enabled in DISTRO_FEATURES" % initman) | ||
| 65 | } | ||
| 66 | |||
| 67 | CVE_PRODUCT = "" | ||
