summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2016-10-28 12:46:49 +0200
committerAnton Gerasimov <anton@advancedtelematic.com>2016-10-28 14:16:06 +0200
commit0939263a7c543e4d2bd667245ce257c2a6d6b9af (patch)
tree44b74ff06791df9c4de9888a5dc785823fc35440 /classes
parentcaa1a1137b58d7cf75508590667d4ca3996582e6 (diff)
downloadmeta-updater-0939263a7c543e4d2bd667245ce257c2a6d6b9af.tar.gz
Move machine-dependent sota configuration to machine templates
Change-Id: Iaf00906eb44f50490a67e5f5e5ca229fd1f76028 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ostree.bbclass8
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
10export OSTREE_BRANCHNAME 10export OSTREE_BRANCHNAME
11 11
12RAMDISK_EXT ?= ".ext4.gz" 12RAMDISK_EXT ?= ".ext4.gz"
13RAMDISK_EXT_arm = ".ext4.gz.u-boot" 13RAMDISK_EXT_arm ?= ".ext4.gz.u-boot"
14
15OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}"
14 16
15IMAGE_CMD_ostree () { 17IMAGE_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}