summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2016-04-19 16:34:00 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-19 21:09:50 +0100
commit5c5144806bfde7e19960fe8d841e4f6191ea5972 (patch)
tree4a7682b21fb162aa1bbd8553f7a6b588be1c7d76
parent76c473dbe9e6a1eb8bca89f26cf29b41ca18d680 (diff)
downloadopenembedded-core-contrib-5c5144806bfde7e19960fe8d841e4f6191ea5972.tar.gz
openembedded-core-contrib-5c5144806bfde7e19960fe8d841e4f6191ea5972.tar.bz2
openembedded-core-contrib-5c5144806bfde7e19960fe8d841e4f6191ea5972.zip
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 <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/syslinux.bbclass2
1 files changed, 1 insertions, 1 deletions
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]))