mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
syslinux.bbclass: don't use vmlinuz
We can't guarantee the kernel will be named vmlinuz anymore. Use KERNEL_IMAGETYPE instead. (From OE-Core rev: 8e9a5350e51d4c3be5417e55e4fd1428f49f3d8b) Signed-off-by: California Sullivan <california.l.sullivan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
93e0e5f5fc
commit
49c638264c
@@ -21,6 +21,7 @@ do_bootimg[depends] += "${MLPREFIX}syslinux:do_populate_sysroot \
|
||||
syslinux-native:do_populate_sysroot"
|
||||
|
||||
ISOLINUXDIR ?= "/isolinux"
|
||||
KERNEL_IMAGETYPE ??= "bzImage"
|
||||
SYSLINUXDIR = "/"
|
||||
# The kernel has an internal default console, which you can override with
|
||||
# a console=...some_tty...
|
||||
@@ -173,8 +174,9 @@ python build_syslinux_cfg () {
|
||||
if not root:
|
||||
bb.fatal('SYSLINUX_ROOT not defined')
|
||||
|
||||
kernel = localdata.getVar('KERNEL_IMAGETYPE')
|
||||
for btype in btypes:
|
||||
cfgfile.write('LABEL %s%s\nKERNEL /vmlinuz\n' % (btype[0], label))
|
||||
cfgfile.write('LABEL %s%s\nKERNEL /%s\n' % (btype[0], label, kernel))
|
||||
|
||||
exargs = d.getVar('SYSLINUX_KERNEL_ARGS')
|
||||
if exargs:
|
||||
|
||||
Reference in New Issue
Block a user