Skip to contentSkip to conversation

kernel-uimage.bbclass: use boolean to check KEEPUIMAGE

PATCH New [email protected] 1 participant 1 message May 30, 2018

lore
Share & tools
lore
#0 lore raw

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.

---
 meta/classes/kernel-uimage.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/classes/kernel-uimage.bbclass +3 -3
index 1d8656e..a3a3d33 100644
@@ -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