summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2016-07-21 16:52:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:56:30 +0100
commit4858c6b728e0ed525f6ce5a30c79024c00b70575 (patch)
tree7607b7fc7252547f49f431968e5858ca3c49c872
parent7178f0732dfff402b0c6476bb5b4cf1e38b6c2e4 (diff)
downloadpoky-4858c6b728e0ed525f6ce5a30c79024c00b70575.tar.gz
kernel-uimage.bbclass: indeed update var KERNEL_IMAGETYPE_FOR_MAKE
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. (From OE-Core rev: 392fc3cd276d5029314c7158245bc65dd82279cd) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel-uimage.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/kernel-uimage.bbclass b/meta/classes/kernel-uimage.bbclass
index 2a187f5492..340503a2d6 100644
--- a/meta/classes/kernel-uimage.bbclass
+++ b/meta/classes/kernel-uimage.bbclass
@@ -14,8 +14,7 @@ python __anonymous () {
14 if d.getVar("KEEPUIMAGE", True) != 'yes': 14 if d.getVar("KEEPUIMAGE", True) != 'yes':
15 typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE", True) or "" 15 typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE", True) or ""
16 if "uImage" in typeformake.split(): 16 if "uImage" in typeformake.split():
17 typeformake.replace('uImage', 'vmlinux') 17 d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake.replace('uImage', 'vmlinux'))
18 d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake)
19} 18}
20 19
21do_uboot_mkimage() { 20do_uboot_mkimage() {