From: California Sullivan Date: Thu, 1 Mar 2018 02:15:07 +0000 (-0800) Subject: syslinux.bbclass: don't use vmlinuz X-Git-Tag: uninative-1.8~134 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=8e9a5350e51d4c3be5417e55e4fd1428f49f3d8b;p=openembedded-core.git syslinux.bbclass: don't use vmlinuz We can't guarantee the kernel will be named vmlinuz anymore. Use KERNEL_IMAGETYPE instead. Signed-off-by: California Sullivan Signed-off-by: Richard Purdie --- 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 \ 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: