From: Otavio Salvador Date: Tue, 19 Apr 2016 19:34:00 +0000 (-0300) Subject: syslinux.bbclass: The AUTO_SYSLINUXMENU value needs to be boolean X-Git-Tag: 2016-4~4 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=5c5144806bfde7e19960fe8d841e4f6191ea5972;p=openembedded-core.git syslinux.bbclass: The AUTO_SYSLINUXMENU value needs to be boolean 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 Signed-off-by: Richard Purdie --- diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass index defad73a11..fd04ac68ba 100644 --- a/meta/classes/syslinux.bbclass +++ b/meta/classes/syslinux.bbclass @@ -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]))