summaryrefslogtreecommitdiffstats
path: root/classes/image_types_ostree.bbclass
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2016-10-25 11:08:50 +0200
committerAnton Gerasimov <anton@advancedtelematic.com>2016-10-27 11:35:21 +0200
commitd6573cf9e0ca272433876ac517ed9924bd741268 (patch)
treeb6313dd364c4d98b173e65d5be5e20c9dd3c4d41 /classes/image_types_ostree.bbclass
parent3dfa44ab995f813172eb239bb2067ba7b0f6103d (diff)
downloadmeta-updater-d6573cf9e0ca272433876ac517ed9924bd741268.tar.gz
OSTree-enabled image for raspberry Pi
Bug-AGL: SPEC-254 v2 [jsmoeller]: change rpi fdt addr to 200M (fix cma), re-add inherit gobject-introspection (!) v3 [oytis]: move boot logic to editable uEnv.txt Change-Id: Ic54aadc8377ed1e2a8f2f4ab87db2a7a6660cd15 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com> Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'classes/image_types_ostree.bbclass')
-rw-r--r--classes/image_types_ostree.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index 4353af7..f3eafd7 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -9,6 +9,9 @@ IMAGE_DEPENDS_ostree = "ostree-native:do_populate_sysroot \
9export OSTREE_REPO 9export OSTREE_REPO
10export OSTREE_BRANCHNAME 10export OSTREE_BRANCHNAME
11 11
12RAMDISK_EXT ?= ".ext4.gz"
13RAMDISK_EXT_arm = ".ext4.gz.u-boot"
14
12IMAGE_CMD_ostree () { 15IMAGE_CMD_ostree () {
13 if [ -z "$OSTREE_REPO" ]; then 16 if [ -z "$OSTREE_REPO" ]; then
14 bbfatal "OSTREE_REPO should be set in your local.conf" 17 bbfatal "OSTREE_REPO should be set in your local.conf"
@@ -93,7 +96,7 @@ IMAGE_CMD_ostree () {
93 checksum=`sha256sum ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} | cut -f 1 -d " "` 96 checksum=`sha256sum ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} | cut -f 1 -d " "`
94 97
95 cp ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} boot/vmlinuz-${checksum} 98 cp ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} boot/vmlinuz-${checksum}
96 cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}.ext4.gz boot/initramfs-${checksum} 99 cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}${RAMDISK_EXT} boot/initramfs-${checksum}
97 100
98 cd ${WORKDIR} 101 cd ${WORKDIR}
99 102