diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-19 13:34:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-25 08:57:44 +0100 |
commit | 4f3f34deafe4c1865e2880153a4427f4ee45acee (patch) | |
tree | f3219082505238286f7ca8c980145182633ac573 | |
parent | be8a7abb19e4f72430e1ec3413aae787b6626535 (diff) | |
download | poky-4f3f34deafe4c1865e2880153a4427f4ee45acee.tar.gz |
packagegroup: Make allarch inherit conditional
Make the allarch inherit conditional on PACKAGE_ARCH being left as
all. The one downside to this approach is that recipes need to set
PACKAGE_ARCH *before* inheriting the class in order to avoid the inherit.
The advantage is that we could start to detect the use of the
allarch inherit in the sstatesig code for improved task checksums.
(From OE-Core rev: 9c826962ec8fa45c2b035427442b90a41517144e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/packagegroup.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass index 6606bc6f71..a79d5b05a6 100644 --- a/meta/classes/packagegroup.bbclass +++ b/meta/classes/packagegroup.bbclass | |||
@@ -9,7 +9,8 @@ PACKAGES = "${PN}" | |||
9 | # By default, packagegroup packages do not depend on a certain architecture. | 9 | # By default, packagegroup packages do not depend on a certain architecture. |
10 | # Only if dependencies are modified by MACHINE_FEATURES, packages | 10 | # Only if dependencies are modified by MACHINE_FEATURES, packages |
11 | # need to be set to MACHINE_ARCH after inheriting packagegroup.bbclass | 11 | # need to be set to MACHINE_ARCH after inheriting packagegroup.bbclass |
12 | inherit allarch | 12 | PACKAGE_ARCH ??= "all" |
13 | inherit ${@oe.utils.ifelse(d.getVar('PACKAGE_ARCH', True) == 'all', 'allarch', '')} | ||
13 | 14 | ||
14 | # This automatically adds -dbg and -dev flavours of all PACKAGES | 15 | # This automatically adds -dbg and -dev flavours of all PACKAGES |
15 | # to the list. Their dependencies (RRECOMMENDS) are handled as usual | 16 | # to the list. Their dependencies (RRECOMMENDS) are handled as usual |