diff options
author | Kai Kang <kai.kang@windriver.com> | 2016-07-21 16:52:58 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-25 23:47:00 +0100 |
commit | 392fc3cd276d5029314c7158245bc65dd82279cd (patch) | |
tree | 1a6c8dd6d1a30d5cc1cbbb2b0ae90c919ad759c9 /meta/classes | |
parent | dbbd58cb64b12cb4dc816425eee59c56cd46301f (diff) | |
download | openembedded-core-392fc3cd276d5029314c7158245bc65dd82279cd.tar.gz openembedded-core-392fc3cd276d5029314c7158245bc65dd82279cd.tar.bz2 openembedded-core-392fc3cd276d5029314c7158245bc65dd82279cd.zip |
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.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel-uimage.bbclass | 3 |
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 () { 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() { |