]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel: Fix interaction when packaging disabled
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Jun 2021 19:21:41 +0000 (20:21 +0100)
committerSteve Sakoman <steve@sakoman.com>
Mon, 5 Jul 2021 15:35:36 +0000 (05:35 -1000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2522daf22e2c27dd9c7926feda0345978217c6c3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel.bbclass

index 85c6594c275d6c11d1e652cf20c6945803ae65ca..2a3cb21fc007c6effd949c5ea9c731c69f9088fa 100644 (file)
@@ -91,6 +91,8 @@ python __anonymous () {
     imagedest = d.getVar('KERNEL_IMAGEDEST')
 
     for type in types.split():
+        if bb.data.inherits_class('nopackages', d):
+            continue
         typelower = type.lower()
         d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower))
         d.setVar('FILES_' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type)