summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/syslinux.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass
index d6f882420e..959aed4fb8 100644
--- a/meta/classes/syslinux.bbclass
+++ b/meta/classes/syslinux.bbclass
@@ -21,6 +21,7 @@ do_bootimg[depends] += "${MLPREFIX}syslinux:do_populate_sysroot \
21 syslinux-native:do_populate_sysroot" 21 syslinux-native:do_populate_sysroot"
22 22
23ISOLINUXDIR ?= "/isolinux" 23ISOLINUXDIR ?= "/isolinux"
24KERNEL_IMAGETYPE ??= "bzImage"
24SYSLINUXDIR = "/" 25SYSLINUXDIR = "/"
25# The kernel has an internal default console, which you can override with 26# The kernel has an internal default console, which you can override with
26# a console=...some_tty... 27# a console=...some_tty...
@@ -173,8 +174,9 @@ python build_syslinux_cfg () {
173 if not root: 174 if not root:
174 bb.fatal('SYSLINUX_ROOT not defined') 175 bb.fatal('SYSLINUX_ROOT not defined')
175 176
177 kernel = localdata.getVar('KERNEL_IMAGETYPE')
176 for btype in btypes: 178 for btype in btypes:
177 cfgfile.write('LABEL %s%s\nKERNEL /vmlinuz\n' % (btype[0], label)) 179 cfgfile.write('LABEL %s%s\nKERNEL /%s\n' % (btype[0], label, kernel))
178 180
179 exargs = d.getVar('SYSLINUX_KERNEL_ARGS') 181 exargs = d.getVar('SYSLINUX_KERNEL_ARGS')
180 if exargs: 182 if exargs: