kernel-uimage.bbclass: use boolean to check KEEPUIMAGE
PATCH 1/1 kernel-uimage.bbclass: use boolean to check KEEPUIMAGE
From: Ming Liu <[email protected]>
It now accepts yes/on/1 as positive values.
Signed-off-by Ming Liu <[email protected]>
--- meta/classes/kernel-uimage.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta/classes/kernel-uimage.bbclass +3 -3
@@ -9,9 +9,9 @@ python __anonymous () { # Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal # to kernel.bbclass . We override the variable here, since we need # to build uImage using the kernel build system if and only if - # KEEPUIMAGE == yes. Otherwise, we pack compressed vmlinux into - # the uImage . - if d.getVar("KEEPUIMAGE") != 'yes': + # KEEPUIMAGE == yes|1|on. Otherwise, we pack compressed vmlinux + # into the uImage. + if not oe.types.boolean(d.getVar("KEEPUIMAGE")): typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE") or "" if "uImage" in typeformake.split(): d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake.replace('uImage', 'vmlinux'))
Signature · 1 line
2.7.4