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/classes-recipe/kernel.bbclass | |
| 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/classes-recipe/kernel.bbclass')
| -rw-r--r-- | meta/classes-recipe/kernel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass index 9ff37f5c38..a76aaee5ba 100644 --- a/meta/classes-recipe/kernel.bbclass +++ b/meta/classes-recipe/kernel.bbclass | |||
| @@ -171,7 +171,7 @@ set -e | |||
| 171 | # image types. | 171 | # image types. |
| 172 | 172 | ||
| 173 | KERNEL_CLASSES ?= " kernel-uimage " | 173 | KERNEL_CLASSES ?= " kernel-uimage " |
| 174 | inherit ${KERNEL_CLASSES} | 174 | inherit_defer ${KERNEL_CLASSES} |
| 175 | 175 | ||
| 176 | # Old style kernels may set ${S} = ${WORKDIR}/git for example | 176 | # Old style kernels may set ${S} = ${WORKDIR}/git for example |
| 177 | # We need to move these over to STAGING_KERNEL_DIR. We can't just | 177 | # We need to move these over to STAGING_KERNEL_DIR. We can't just |
