diff options
author | Anton Gerasimov <anton@advancedtelematic.com> | 2016-10-25 11:08:50 +0200 |
---|---|---|
committer | Anton Gerasimov <anton@advancedtelematic.com> | 2016-10-27 11:35:21 +0200 |
commit | d6573cf9e0ca272433876ac517ed9924bd741268 (patch) | |
tree | b6313dd364c4d98b173e65d5be5e20c9dd3c4d41 /classes/image_types_ostree.bbclass | |
parent | 3dfa44ab995f813172eb239bb2067ba7b0f6103d (diff) | |
download | meta-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.bbclass | 5 |
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 \ | |||
9 | export OSTREE_REPO | 9 | export OSTREE_REPO |
10 | export OSTREE_BRANCHNAME | 10 | export OSTREE_BRANCHNAME |
11 | 11 | ||
12 | RAMDISK_EXT ?= ".ext4.gz" | ||
13 | RAMDISK_EXT_arm = ".ext4.gz.u-boot" | ||
14 | |||
12 | IMAGE_CMD_ostree () { | 15 | IMAGE_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 | ||