[oe-commits] [openembedded-core] 01/03: syslinux.bbclass: The AUTO_SYSLINUXMENU value needs to be boolean
git at git.openembedded.org
git at git.openembedded.org
Tue Apr 19 20:13:14 UTC 2016
rpurdie pushed a commit to branch krogoth
in repository openembedded-core.
commit 5c5144806bfde7e19960fe8d841e4f6191ea5972
Author: Otavio Salvador <otavio at ossystems.com.br>
AuthorDate: Tue Apr 19 16:34:00 2016 -0300
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 at ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/syslinux.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass
index defad73..fd04ac6 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]))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list