diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_types_ostree.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index f3eafd7..fcba6d9 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
@@ -10,7 +10,9 @@ export OSTREE_REPO | |||
10 | export OSTREE_BRANCHNAME | 10 | export OSTREE_BRANCHNAME |
11 | 11 | ||
12 | RAMDISK_EXT ?= ".ext4.gz" | 12 | RAMDISK_EXT ?= ".ext4.gz" |
13 | RAMDISK_EXT_arm = ".ext4.gz.u-boot" | 13 | RAMDISK_EXT_arm ?= ".ext4.gz.u-boot" |
14 | |||
15 | OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" | ||
14 | 16 | ||
15 | IMAGE_CMD_ostree () { | 17 | IMAGE_CMD_ostree () { |
16 | if [ -z "$OSTREE_REPO" ]; then | 18 | if [ -z "$OSTREE_REPO" ]; then |
@@ -93,9 +95,9 @@ IMAGE_CMD_ostree () { | |||
93 | mkdir -p boot/loader.1 | 95 | mkdir -p boot/loader.1 |
94 | ln -sf boot/loader.0 boot/loader | 96 | ln -sf boot/loader.0 boot/loader |
95 | 97 | ||
96 | checksum=`sha256sum ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} | cut -f 1 -d " "` | 98 | checksum=`sha256sum ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} | cut -f 1 -d " "` |
97 | 99 | ||
98 | cp ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} boot/vmlinuz-${checksum} | 100 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} boot/vmlinuz-${checksum} |
99 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}${RAMDISK_EXT} boot/initramfs-${checksum} | 101 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}${RAMDISK_EXT} boot/initramfs-${checksum} |
100 | 102 | ||
101 | cd ${WORKDIR} | 103 | cd ${WORKDIR} |