]> code.ossystems Code Review - openembedded-core.git/commitdiff
syslinux.bbclass: The AUTO_SYSLINUXMENU value needs to be boolean
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 19:34:00 +0000 (16:34 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Apr 2016 20:09:50 +0000 (21:09 +0100)
The python code expects AUTO_SYSLINUXMENU to be a boolean value,
otherwise the logic fails. This fixes the code comparing the value to
"1" which is the value expected by the shell script code, counterpart.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/syslinux.bbclass

index defad73a119d64947c8318eabc8e64896d0f3492..fd04ac68bad3ef87e9a233fcce82e261a3a15c35 100644 (file)
@@ -121,7 +121,7 @@ python build_syslinux_cfg () {
     if syslinux_serial:
         cfgfile.write('SERIAL %s\n' % syslinux_serial)
 
-    menu = d.getVar('AUTO_SYSLINUXMENU', True)
+    menu = (d.getVar('AUTO_SYSLINUXMENU', True) == "1")
 
     if menu and syslinux_serial:
         cfgfile.write('DEFAULT Graphics console %s\n' % (labels.split()[0]))