summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-26 20:21:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-10 22:46:19 +0100
commit1435d708ae85aeba69373972d6f3dcaa7cc11b53 (patch)
treee8972a7a3bee1cfc4b6535394cc4e8f118a084fc /meta
parentba0f8592c82a652d5172ebf3af88ca043b8eaa4e (diff)
downloadpoky-1435d708ae85aeba69373972d6f3dcaa7cc11b53.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: 6683b784d3258672c8d56c945db02ba37379cbf6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 2522daf22e2c27dd9c7926feda0345978217c6c3) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 85c6594c27..2a3cb21fc0 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -91,6 +91,8 @@ python __anonymous () {
91 imagedest = d.getVar('KERNEL_IMAGEDEST') 91 imagedest = d.getVar('KERNEL_IMAGEDEST')
92 92
93 for type in types.split(): 93 for type in types.split():
94 if bb.data.inherits_class('nopackages', d):
95 continue
94 typelower = type.lower() 96 typelower = type.lower()
95 d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower)) 97 d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower))
96 d.setVar('FILES_' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type) 98 d.setVar('FILES_' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type)