mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
image-vm.bbclass: support specifying an initramfs
Set INITRD_IMAGE to automatically add a custom initramfs to the boot partition. (From OE-Core rev: 7fa76bd923fd643cf0984077321d6064d8ec3a2b) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
95bfdce73d
commit
5d79814b0b
@@ -3,6 +3,11 @@ SYSLINUX_PROMPT ?= "0"
|
||||
SYSLINUX_LABELS = "boot"
|
||||
LABELS_append = " ${SYSLINUX_LABELS} "
|
||||
|
||||
# Using an initramfs is optional. Enable it by setting INITRD_IMAGE.
|
||||
INITRD_IMAGE ?= ""
|
||||
INITRD ?= "${@'${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE}-${MACHINE}.cpio.gz' if '${INITRD_IMAGE}' else ''}"
|
||||
do_bootdirectdisk[depends] += "${@'${INITRD_IMAGE}:do_rootfs' if '${INITRD_IMAGE}' else ''}"
|
||||
|
||||
# need to define the dependency and the ROOTFS for directdisk
|
||||
do_bootdirectdisk[depends] += "${PN}:do_rootfs"
|
||||
ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext4"
|
||||
|
||||
Reference in New Issue
Block a user