mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-06 02:40:18 +00:00
arm-autonomy: Create xenguest-nodisk-image recipe
Create a xenguest-nodisk-image recipe to be used when wanting to create a xenguest image without packing in it a root filesystem generated by Yocto. This recipe can be used to use aio root filesystem from an external tar file and just compile and take the linux kernel coming from Yocto. To achieve this, the variable XENGUEST_IMAGE_SRC_URI_DISK_FILES should be set to a SRC_URI compatible URL to the tar file and then call bitbake xenguest-nodisk-image. Change-Id: I1a8d80b89930f3bb6bcce40a55b4dfce9b5331ef Issue-Id: SCM-767 Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com> Reviewed-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
committed by
Jon Mason
parent
77c6d12f59
commit
56196afc91
@@ -0,0 +1,38 @@
|
||||
# Create a xenguest image with kernel but no rootfs or an external rootfs
|
||||
DESCRIPTION = "Xenguest No Disk Image"
|
||||
LICENSE = "MIT"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
inherit deploy xenguest-image
|
||||
|
||||
# Name of the file we create in deploy
|
||||
XENGUEST_IMAGE_NODISK_DEPLOY = "xenguest-nodisk-image.xenguest"
|
||||
|
||||
# use a local copy to pack all together
|
||||
XENGUEST_IMAGE_DEPLOY_DIR = "${WORKDIR}/tmp-xenguest"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
do_install[noexec] = "1"
|
||||
|
||||
do_deploy() {
|
||||
xenguest_image_clone
|
||||
|
||||
# Add kernel to the image
|
||||
if [ -n "${XENGUEST_IMAGE_KERNEL}" ]; then
|
||||
call_xenguest_mkimage partial \
|
||||
--xen-kernel=${DEPLOY_DIR_IMAGE}/${XENGUEST_IMAGE_KERNEL}
|
||||
fi
|
||||
|
||||
# Pack and deploy the final image
|
||||
rm -f ${DEPLOYDIR}/${XENGUEST_IMAGE_NODISK_DEPLOY}
|
||||
call_xenguest_mkimage pack ${DEPLOYDIR}/${XENGUEST_IMAGE_NODISK_DEPLOY}
|
||||
}
|
||||
do_deploy[depends] += "virtual/kernel:do_deploy"
|
||||
do_deploy[depends] += "xenguest-base-image:do_deploy"
|
||||
|
||||
addtask deploy before do_build after do_install
|
||||
|
||||
Reference in New Issue
Block a user