mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
systemd-boot*.bbclass: Don't use vmlinuz
We can't guarantee vmlinuz anymore. Use KERNEL_IMAGETYPE instead. (From OE-Core rev: cceb4266f3e70382e171c3a338c10d9730c9dc3f) 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
b84b422340
commit
00acdebbed
@@ -1,3 +1,5 @@
|
||||
KERNEL_IMAGETYPE ??= "bzImage"
|
||||
|
||||
SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
|
||||
SYSTEMD_BOOT_ENTRIES ?= ""
|
||||
SYSTEMD_BOOT_TIMEOUT ?= "10"
|
||||
@@ -52,7 +54,9 @@ python build_efi_cfg() {
|
||||
localdata.setVar('OVERRIDES', label + ':' + overrides)
|
||||
|
||||
entrycfg.write('title %s\n' % label)
|
||||
entrycfg.write('linux /vmlinuz\n')
|
||||
|
||||
kernel = localdata.getVar("KERNEL_IMAGETYPE")
|
||||
entrycfg.write('linux /%s\n' % kernel)
|
||||
|
||||
append = localdata.getVar('APPEND')
|
||||
initrd = localdata.getVar('INITRD')
|
||||
|
||||
@@ -45,7 +45,7 @@ efi_iso_populate() {
|
||||
mkdir -p ${EFIIMGDIR}/${EFIDIR}
|
||||
cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR}
|
||||
cp -r $iso_dir/loader ${EFIIMGDIR}
|
||||
cp $iso_dir/vmlinuz ${EFIIMGDIR}
|
||||
cp $iso_dir/${KERNEL_IMAGETYPE} ${EFIIMGDIR}
|
||||
EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
|
||||
echo "fs0:${EFIPATH}\\${DEST_EFI_IMAGE}" > ${EFIIMGDIR}/startup.nsh
|
||||
if [ -f "$iso_dir/initrd" ] ; then
|
||||
|
||||
Reference in New Issue
Block a user