diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-26 20:21:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-27 22:51:05 +0100 |
commit | 10b39fb94bd35c5c9cf858d1d638b243511edfd1 (patch) | |
tree | c93aa5b5ec9f0e941d3f08db15b5d344749ea031 | |
parent | 9c591cfa06ce9161bdbf070f0ce445fe34304d0e (diff) | |
download | poky-10b39fb94bd35c5c9cf858d1d638b243511edfd1.tar.gz |
kernel: Fix interaction when packaging disabled
When packaging is disabled using the nopackages class, ensure we don't
add to PACKAGES. This fixes builds where we have an unpackaged kernel
alongside a packaged kernel.
(From OE-Core rev: 2522daf22e2c27dd9c7926feda0345978217c6c3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 379bed44f2..846b19663b 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -92,6 +92,8 @@ python __anonymous () { | |||
92 | imagedest = d.getVar('KERNEL_IMAGEDEST') | 92 | imagedest = d.getVar('KERNEL_IMAGEDEST') |
93 | 93 | ||
94 | for type in types.split(): | 94 | for type in types.split(): |
95 | if bb.data.inherits_class('nopackages', d): | ||
96 | continue | ||
95 | typelower = type.lower() | 97 | typelower = type.lower() |
96 | d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower)) | 98 | d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower)) |
97 | d.setVar('FILES_' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type) | 99 | d.setVar('FILES_' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type) |