]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel: Fix interaction when packaging disabled
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Sep 2021 03:06:23 +0000 (11:06 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Sep 2021 22:53:56 +0000 (23:53 +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>
(cherry picked from commit 2522daf22e2c27dd9c7926feda0345978217c6c3)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index f405b6e523be39f1c524e6c2f68f725c9cb848b5..b03a286ed44231dd99c55f10012790bab74d69ca 100644 (file)
@@ -90,6 +90,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)