Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix a error in kernel-uimage.bbclass
@ 2016-07-21  8:52 kai.kang
  2016-07-21  8:52 ` [PATCH 1/1] kernel-uimage.bbclass: indeed update var KERNEL_IMAGETYPE_FOR_MAKE kai.kang
  0 siblings, 1 reply; 2+ messages in thread
From: kai.kang @ 2016-07-21  8:52 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

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(-)

-- 
2.9.2.368.g08bb350



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] kernel-uimage.bbclass: indeed update var KERNEL_IMAGETYPE_FOR_MAKE
  2016-07-21  8:52 [PATCH 0/1] Fix a error in kernel-uimage.bbclass kai.kang
@ 2016-07-21  8:52 ` kai.kang
  0 siblings, 0 replies; 2+ messages in thread
From: kai.kang @ 2016-07-21  8:52 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

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.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/classes/kernel-uimage.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/classes/kernel-uimage.bbclass b/meta/classes/kernel-uimage.bbclass
index 2a187f5..340503a 100644
--- a/meta/classes/kernel-uimage.bbclass
+++ b/meta/classes/kernel-uimage.bbclass
@@ -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() {
-- 
2.9.2.368.g08bb350



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-21  8:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21  8:52 [PATCH 0/1] Fix a error in kernel-uimage.bbclass kai.kang
2016-07-21  8:52 ` [PATCH 1/1] kernel-uimage.bbclass: indeed update var KERNEL_IMAGETYPE_FOR_MAKE kai.kang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox