]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 27 Jun 2021 15:03:32 +0000 (16:03 +0100)
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>
meta/classes/kernel.bbclass

index 379bed44f24fa022966178f63f098d787e360903..846b19663bb7bc0f48e4ec25b7bea3a50e10adb0 100644 (file)
@@ -92,6 +92,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)