summaryrefslogtreecommitdiffstats
path: root/classes/image_types_ota.bbclass
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2016-08-19 18:13:24 +0200
committerAnton Gerasimov <anton@advancedtelematic.com>2016-08-19 18:14:32 +0200
commit2174e75e81397e9c9a99272888a6cc55c494d2f1 (patch)
treeba773f93ee1d41b557be8009b93876bf5ed64eb0 /classes/image_types_ota.bbclass
parent4b9938d16e06ce05b8bdefd1f48f2e9bd85fca5a (diff)
downloadmeta-updater-2174e75e81397e9c9a99272888a6cc55c494d2f1.tar.gz
Replaced functionality in qemux86-ota machine with algsetup.sh feature. otaimg is now a live image.
Bug-AGL: SPEC-236 Change-Id: I5a56ffbdb098c1b4eb33fceeae32e28611b83fb7 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
Diffstat (limited to 'classes/image_types_ota.bbclass')
-rw-r--r--classes/image_types_ota.bbclass23
1 files changed, 15 insertions, 8 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index a67cc80..9820724 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -1,6 +1,6 @@
1# Image to use with u-boot as BIOS and OSTree deployment system 1# Image to use with u-boot as BIOS and OSTree deployment system
2 2
3inherit image_types 3#inherit image_types
4 4
5# Boot filesystem size in MiB 5# Boot filesystem size in MiB
6# OSTree updates may require some space on boot file system for 6# OSTree updates may require some space on boot file system for
@@ -9,12 +9,15 @@ inherit image_types
9BOOTFS_EXTRA_SIZE ?= "512" 9BOOTFS_EXTRA_SIZE ?= "512"
10export BOOTFS_EXTRA_SIZE 10export BOOTFS_EXTRA_SIZE
11 11
12IMAGE_TYPES += " otaimg" 12do_otaimg[depends] += "e2fsprogs-native:do_populate_sysroot \
13IMAGE_DEPENDS_ota = "e2fsprogs-native \ 13 parted-native:do_populate_sysroot \
14 virtual/bootloader \ 14 virtual/kernel:do_deploy \
15 virtual/kernel \ 15 ${INITRD_IMAGE}:do_rootfs \
16 parted-native \ 16 ${PN}:do_rootfs"
17 ${INITRD_IMAGE}" 17
18ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext4"
19INITRD_IMAGE ?= "core-image-minimal-initramfs"
20INITRD ?= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE}-${MACHINE}.cpio.gz"
18 21
19build_bootfs () { 22build_bootfs () {
20 KERNEL_FILE=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} 23 KERNEL_FILE=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}
@@ -36,7 +39,7 @@ build_bootfs () {
36 rm -rf $BOOTTMP 39 rm -rf $BOOTTMP
37} 40}
38 41
39IMAGE_CMD_otaimg () { 42do_otaimg () {
40 BOOTIMG=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.otaboot.ext4 43 BOOTIMG=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.otaboot.ext4
41 rm -f $BOOTIMG 44 rm -f $BOOTIMG
42 build_bootfs $BOOTIMG 45 build_bootfs $BOOTIMG
@@ -70,4 +73,8 @@ IMAGE_CMD_otaimg () {
70 ln -s ${IMAGE_NAME}.otaimg ${IMAGE_LINK_NAME}.otaimg 73 ln -s ${IMAGE_NAME}.otaimg ${IMAGE_LINK_NAME}.otaimg
71} 74}
72 75
76addtask otaimg before do_build
77
78IMAGE_TYPES += " otaimg"
79IMAGE_TYPES_MASKED += "otaimg"
73IMAGE_TYPEDEP_otaimg = "ext4" 80IMAGE_TYPEDEP_otaimg = "ext4"