summaryrefslogtreecommitdiffstats
path: root/classes/sota_xeon-d.bbclass
diff options
context:
space:
mode:
authorMatei Valeanu <Matei.Valeanu@enea.com>2019-06-12 17:59:53 +0200
committerMartin Borg <martin.borg@enea.com>2019-06-26 14:39:33 +0200
commit1004579ca431cdb239295dc6771af45b41b2791a (patch)
tree001010e9e36599fa7e9d2e6281aa1573be054fca /classes/sota_xeon-d.bbclass
parentc9704949a3cf50d40078340908dff34c48dba948 (diff)
downloadmeta-el-nfv-access-1004579ca431cdb239295dc6771af45b41b2791a.tar.gz
ostree and otaimg enhancements
override_image_types_ostree.inc - do_image_ostree task: -add dirs, cleandirs flags, to avoid mktemp, rm, cd, and to also remove at clean -add subimages, imgsuffix flags, to use automatic link creation -create image in IMGDEPLOYDIR, instead of DEPLOY_DIR_IMAGE to use the automatic deploy and clean mechanism (also helps in cleaning old images) override_image_types_ota.inc - do_image_otaimg task: -add dirs, cleandirs flags, to avoid mktemp, rm, cd, and to also remove at clean -avoid untar-ing the ostree image, and use OSTREE_ROOTFS -create image in IMGDEPLOYDIR, instead of DEPLOY_DIR_IMAGE to use the automatic deploy and clean mechanism Move OSTREE_REPO to "${WORKDIR}/ostree-repo", instead of DEPLOY_DIR_IMAGE, this repo is needed for otaimg creation sota_xeon-d.bbclass sota_atom-c3000.bbclass: -set ROOTFS_sota to IMGDEPLOYDIR insted of DEPLOY_DIR_IMAGE, as this is where the otaimg is now created; also use IMAGE_LINK_NAME istead of IMAGE_NAME, to have the correct reference to the image, even if the image was built in a previous run (IMAGE_NAME differs in this case) Change-Id: I44e87311d1819b80d34f924630d09e429d411d41 Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
Diffstat (limited to 'classes/sota_xeon-d.bbclass')
-rw-r--r--classes/sota_xeon-d.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/sota_xeon-d.bbclass b/classes/sota_xeon-d.bbclass
index f9b4864..dff4294 100644
--- a/classes/sota_xeon-d.bbclass
+++ b/classes/sota_xeon-d.bbclass
@@ -7,7 +7,7 @@ WKS_FILE_sota = "efiimage-sota.wks"
7OSTREE_INITRAMFS_FSTYPES ?= "ext4.gz" 7OSTREE_INITRAMFS_FSTYPES ?= "ext4.gz"
8 8
9# Set .otaimg to be used as source for generating hddimg 9# Set .otaimg to be used as source for generating hddimg
10ROOTFS_sota = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.otaimg" 10ROOTFS_sota = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.otaimg"
11 11
12# OSTree initrd needs 'ramdisk_size' and 'rw' parameters in order to boot 12# OSTree initrd needs 'ramdisk_size' and 'rw' parameters in order to boot
13OSTREE_KERNEL_ARGS ?= "rw" 13OSTREE_KERNEL_ARGS ?= "rw"