diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-08-30 20:47:06 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-30 21:38:23 +0100 |
commit | 0f84702f0811cba4b6e6e890d478f6e98937b831 (patch) | |
tree | df6cbe1d24609cef0e9763e7ddd966ac1230725f /meta/classes/image_types.bbclass | |
parent | 530f3c52a49b23fdec037e3cd21764ee36e46810 (diff) | |
download | openembedded-core-contrib-0f84702f0811cba4b6e6e890d478f6e98937b831.tar.gz |
image_types.bbclass: add wic image type
wic image type is used to produce partitioned images.
Image configuration should be stored in either <recipe>.<machine>.wks
or <recipe>.wks file.
.wks file should be put to the same location as image recipe
and have the same name.
[YOCTO #7672]
(From OE-Core rev: 3658a3278a3752d4aa72cdff4aa8c9f5e1d90f93)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image_types.bbclass')
-rw-r--r-- | meta/classes/image_types.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 2fd4c3794a..05c45f8a6a 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass @@ -162,6 +162,16 @@ IMAGE_CMD_ubi = "multiubi_mkfs "${MKUBIFS_ARGS}" "${UBINIZE_ARGS}" "${UBI_VOLNAM IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS}" +IMAGE_CMD_wic () { + out=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME} + wks=${FILE_DIRNAME}/${IMAGE_BASENAME}.${MACHINE}.wks + [ -e $wks ] || wks=${FILE_DIRNAME}/${IMAGE_BASENAME}.wks + [ -e $wks ] || bbfatal "Kiskstart file $wks doesn't exist" + BUILDDIR=${TOPDIR} wic create $wks --vars ${STAGING_DIR_TARGET}/imgdata/ -e ${IMAGE_BASENAME} -o $out/ + mv $out/build/${IMAGE_BASENAME}*.direct $out.rootfs.wic + rm -rf $out/ +} + EXTRA_IMAGECMD = "" inherit siteinfo @@ -190,6 +200,7 @@ IMAGE_DEPENDS_elf = "virtual/kernel mkelfimage-native" IMAGE_DEPENDS_ubi = "mtd-utils-native" IMAGE_DEPENDS_ubifs = "mtd-utils-native" IMAGE_DEPENDS_multiubi = "mtd-utils-native" +IMAGE_DEPENDS_wic = "parted-native" # This variable is available to request which values are suitable for IMAGE_FSTYPES IMAGE_TYPES = " \ @@ -209,6 +220,7 @@ IMAGE_TYPES = " \ vdi \ qcow2 \ elf \ + wic wic.gz wic.bz2 wic.lzma \ " COMPRESSIONTYPES = "gz bz2 lzma xz lz4 sum" |