diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-31 13:27:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-18 10:15:58 +0000 |
commit | c917323a39da6fc3e8d92b2fe907d0357149c9bb (patch) | |
tree | 254fd4963f6a7c0f65f5cc9aa1834158fc94b457 /meta/recipes-core | |
parent | bc883e49912b8d0cdc9ea403e85f2cb3198b48ff (diff) | |
download | poky-c917323a39da6fc3e8d92b2fe907d0357149c9bb.tar.gz |
classes/recipes: Switch to use inherit_defer
Now that bitbake supports the use of inherit_defer, switch all conditional
(variable based) inherits to use this instead. This leads to more a more
deterministic user experience since there is no longer an immediate expansion
and later changes to the variables in question (e.g. a bbappend) are
accounted for.
This patch tries to ensure the behaviour before/after remains as unchanged
as it reasonably can, e.g. by always inherting populate_sdk_base. native
and nativesdk continue to need to be inherited last, hence being used
with inherit_defer in a handful of very specific cases.
(From OE-Core rev: 451363438d38bd4552d5bcec4a92332f5819a5d4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/libxml/libxml2_2.11.5.bb | 2 | ||||
-rw-r--r-- | meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/libxml/libxml2_2.11.5.bb b/meta/recipes-core/libxml/libxml2_2.11.5.bb index 319833f053..44336c25e1 100644 --- a/meta/recipes-core/libxml/libxml2_2.11.5.bb +++ b/meta/recipes-core/libxml/libxml2_2.11.5.bb | |||
@@ -35,7 +35,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | |||
35 | 35 | ||
36 | inherit autotools pkgconfig binconfig-disabled ptest | 36 | inherit autotools pkgconfig binconfig-disabled ptest |
37 | 37 | ||
38 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3targetconfig', '', d)} | 38 | inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3targetconfig', '', d)} |
39 | 39 | ||
40 | LDFLAGS:append:riscv64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld ptest', ' -fuse-ld=bfd', '', d)}" | 40 | LDFLAGS:append:riscv64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld ptest', ' -fuse-ld=bfd', '', d)}" |
41 | 41 | ||
diff --git a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb index 11e31dcba3..c1d3c25060 100644 --- a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb +++ b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb | |||
@@ -4,7 +4,8 @@ | |||
4 | 4 | ||
5 | SUMMARY = "Host packages for the standalone SDK or external toolchain" | 5 | SUMMARY = "Host packages for the standalone SDK or external toolchain" |
6 | 6 | ||
7 | inherit packagegroup nativesdk | 7 | inherit packagegroup |
8 | inherit_defer nativesdk | ||
8 | 9 | ||
9 | PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" | 10 | PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" |
10 | 11 | ||