summaryrefslogtreecommitdiffstats
path: root/meta-sota/classes/image_types_ostree.bbclass
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2016-10-27 11:25:27 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2016-10-27 11:25:27 +0000
commit4170834d6b4dea5290aab28685aae6f1725e39af (patch)
tree34296c7a2011f0bf5829091f5e2604900356c963 /meta-sota/classes/image_types_ostree.bbclass
parente8c4cdb760738388b926290974da732332fc4cf5 (diff)
parent1b73e59ec2703605ad20ea7b42516cb382a5436a (diff)
Merge "OSTree-enabled image for raspberry Pi"
Diffstat (limited to 'meta-sota/classes/image_types_ostree.bbclass')
-rw-r--r--meta-sota/classes/image_types_ostree.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-sota/classes/image_types_ostree.bbclass b/meta-sota/classes/image_types_ostree.bbclass
index 4353af7..f3eafd7 100644
--- a/meta-sota/classes/image_types_ostree.bbclass
+++ b/meta-sota/classes/image_types_ostree.bbclass
@@ -9,6 +9,9 @@ IMAGE_DEPENDS_ostree = "ostree-native:do_populate_sysroot \
export OSTREE_REPO
export OSTREE_BRANCHNAME
+RAMDISK_EXT ?= ".ext4.gz"
+RAMDISK_EXT_arm = ".ext4.gz.u-boot"
+
IMAGE_CMD_ostree () {
if [ -z "$OSTREE_REPO" ]; then
bbfatal "OSTREE_REPO should be set in your local.conf"
@@ -93,7 +96,7 @@ IMAGE_CMD_ostree () {
checksum=`sha256sum ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} | cut -f 1 -d " "`
cp ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} boot/vmlinuz-${checksum}
- cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}.ext4.gz boot/initramfs-${checksum}
+ cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}${RAMDISK_EXT} boot/initramfs-${checksum}
cd ${WORKDIR}