]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Use real filenames in kernel packages
authorAndreas Oberritter <obi@opendreambox.org>
Wed, 30 Nov 2016 23:36:48 +0000 (00:36 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Dec 2016 10:26:12 +0000 (10:26 +0000)
When iterating over kernel image types to set up their packaging
variables, don't use make targets but the real names.

It was surprising if both vmlinux.bin and vmlinux.gz were enabled
and only the latter had its filename extension removed from the
package name.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel.bbclass

index 71d543b38e521610fcf14626aa42c23ef465cab8..0cc8af6faeb108222520fdfd82278a4a17f33fd5 100644 (file)
@@ -43,7 +43,7 @@ python __anonymous () {
     typeformake = re.sub(r'\.gz', '', types)
     d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake)
 
-    for type in typeformake.split():
+    for type in types.split():
         typelower = type.lower()
 
         d.appendVar('PACKAGES', ' ' + 'kernel-image-' + typelower)