diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2016-04-19 16:34:00 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-19 21:11:25 +0100 |
commit | 0c3eaa7952792329c60887955fbb7aed63c188a0 (patch) | |
tree | 287006a5d6b6ac90f10246a310654c42ad616752 /meta/classes/syslinux.bbclass | |
parent | 9c8a049f48be5596e538013f3fb0d0dbd3eef2ec (diff) | |
download | poky-0c3eaa7952792329c60887955fbb7aed63c188a0.tar.gz |
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.
(From OE-Core rev: 5c5144806bfde7e19960fe8d841e4f6191ea5972)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/syslinux.bbclass')
-rw-r--r-- | meta/classes/syslinux.bbclass | 2 |
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 () { | |||
121 | if syslinux_serial: | 121 | if syslinux_serial: |
122 | cfgfile.write('SERIAL %s\n' % syslinux_serial) | 122 | cfgfile.write('SERIAL %s\n' % syslinux_serial) |
123 | 123 | ||
124 | menu = d.getVar('AUTO_SYSLINUXMENU', True) | 124 | menu = (d.getVar('AUTO_SYSLINUXMENU', True) == "1") |
125 | 125 | ||
126 | if menu and syslinux_serial: | 126 | if menu and syslinux_serial: |
127 | cfgfile.write('DEFAULT Graphics console %s\n' % (labels.split()[0])) | 127 | cfgfile.write('DEFAULT Graphics console %s\n' % (labels.split()[0])) |