Skip to contentSkip to conversation

Fix a error in kernel-uimage.bbclass

PATCH New [email protected] 1 participant 2 messages Jul 21, 2016

lore
Share & tools
lore
#0 lore raw

cover Fix a error in kernel-uimage.bbclass

From: Kai Kang <[email protected]>

The following changes since commit 36feb38045b7a2af86ece147fec54b0db3bf491f:

linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.4 (2016-07-21 07:48:53 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib kangkai/kernel
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/kernel

Kai Kang (1):
kernel-uimage.bbclass: indeed update var KERNEL_IMAGETYPE_FOR_MAKE

 meta/classes/kernel-uimage.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Signature · 1 line
2.9.2.368.g08bb350
#1 lore raw

PATCH 1/1 kernel-uimage.bbclass: indeed update var KERNEL_IMAGETYPE_FOR_MAKE

From: Kai Kang <[email protected]>

The replace() method of the python string class doesn't replace in-place, then the var KERNEL_IMAGETYPE_FOR_MAKE doesn't be updated as design.

---
 meta/classes/kernel-uimage.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/classes/kernel-uimage.bbclass +1 -2
index 2a187f5..340503a 100644
@@ -14,8 +14,7 @@ python __anonymous () {
         if d.getVar("KEEPUIMAGE", True) != 'yes':
             typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE", True) or ""
             if "uImage" in typeformake.split():
-                typeformake.replace('uImage', 'vmlinux')
-            d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake)
+                d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake.replace('uImage', 'vmlinux'))
 }
 
 do_uboot_mkimage() {
Signature · 1 line
2.9.2.368.g08bb350