From 392fc3cd276d5029314c7158245bc65dd82279cd Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Thu, 21 Jul 2016 16:52:58 +0800 Subject: 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 Signed-off-by: Ross Burton --- meta/classes/kernel-uimage.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'meta/classes') 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() { -- cgit v1.2.3