mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
live-vm-common.bbclass: Don't use vmlinuz or VM_DEFAULT_KERNEL
I can't find VM_DEFAULT_KERNEL used anywhere else, and we should not be statically installing the kernel as vmlinuz. (From OE-Core rev: 5493bb5ba4b4520f944d38b214a3d53a5282e0be) 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
bfd48060e3
commit
9703185a83
@@ -33,18 +33,17 @@ inherit ${EFI_CLASS}
|
||||
inherit ${PCBIOS_CLASS}
|
||||
|
||||
KERNEL_IMAGETYPE ??= "bzImage"
|
||||
VM_DEFAULT_KERNEL ??= "${KERNEL_IMAGETYPE}"
|
||||
|
||||
populate_kernel() {
|
||||
dest=$1
|
||||
install -d $dest
|
||||
|
||||
# Install bzImage, initrd, and rootfs.img in DEST for all loaders to use.
|
||||
bbnote "Trying to install ${DEPLOY_DIR_IMAGE}/${VM_DEFAULT_KERNEL} as $dest/vmlinuz"
|
||||
if [ -e ${DEPLOY_DIR_IMAGE}/${VM_DEFAULT_KERNEL} ]; then
|
||||
install -m 0644 ${DEPLOY_DIR_IMAGE}/${VM_DEFAULT_KERNEL} $dest/vmlinuz
|
||||
bbnote "Trying to install ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} as $dest/${KERNEL_IMAGETYPE}"
|
||||
if [ -e ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} ]; then
|
||||
install -m 0644 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} $dest/${KERNEL_IMAGETYPE}
|
||||
else
|
||||
bbwarn "${DEPLOY_DIR_IMAGE}/${VM_DEFAULT_KERNEL} doesn't exist"
|
||||
bbwarn "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} doesn't exist"
|
||||
fi
|
||||
|
||||
# initrd is made of concatenation of multiple filesystem images
|
||||
|
||||
Reference in New Issue
Block a user