summaryrefslogtreecommitdiffstats
path: root/meta/classes/image-vm.bbclass
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2015-09-03 20:42:31 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-06 15:26:25 +0100
commit5d79814b0b9d4d0348dc36c0d9e003e4ba0bd367 (patch)
tree110a45b44271fcdf95b9258fc9d644aa4a5c023a /meta/classes/image-vm.bbclass
parent95bfdce73dd17be7ebb14037665248ba371eb573 (diff)
downloadpoky-5d79814b0b9d4d0348dc36c0d9e003e4ba0bd367.tar.gz
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>
Diffstat (limited to 'meta/classes/image-vm.bbclass')
-rw-r--r--meta/classes/image-vm.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/image-vm.bbclass b/meta/classes/image-vm.bbclass
index 3df2c362e0..0632667084 100644
--- a/meta/classes/image-vm.bbclass
+++ b/meta/classes/image-vm.bbclass
@@ -3,6 +3,11 @@ SYSLINUX_PROMPT ?= "0"
3SYSLINUX_LABELS = "boot" 3SYSLINUX_LABELS = "boot"
4LABELS_append = " ${SYSLINUX_LABELS} " 4LABELS_append = " ${SYSLINUX_LABELS} "
5 5
6# Using an initramfs is optional. Enable it by setting INITRD_IMAGE.
7INITRD_IMAGE ?= ""
8INITRD ?= "${@'${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE}-${MACHINE}.cpio.gz' if '${INITRD_IMAGE}' else ''}"
9do_bootdirectdisk[depends] += "${@'${INITRD_IMAGE}:do_rootfs' if '${INITRD_IMAGE}' else ''}"
10
6# need to define the dependency and the ROOTFS for directdisk 11# need to define the dependency and the ROOTFS for directdisk
7do_bootdirectdisk[depends] += "${PN}:do_rootfs" 12do_bootdirectdisk[depends] += "${PN}:do_rootfs"
8ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext4" 13ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext4"