blob: 8d8243274aec710c8bb10e28319305491dc6bf27 [file] [log] [blame]
Jan Kundrát1de4ebd2017-10-20 17:14:13 +02001#!/bin/sh
2
3RAUC_BUILD_DIR=${BUILD_DIR}/rauc-work-tmp
4RAUC_IMAGE=${BINARIES_DIR}/update.raucb
5ROOTFS_NAME=rootfs.tar.xz
6
7rm -rf ${RAUC_BUILD_DIR}
8mkdir ${RAUC_BUILD_DIR}
9rm -f ${RAUC_IMAGE}
10
11ln ${BINARIES_DIR}/${ROOTFS_NAME} ${RAUC_BUILD_DIR}/
12cat > ${RAUC_BUILD_DIR}/manifest.raucm << EOF
13[update]
14compatible=czechlight-clearfog
15version=dev
16
17[image.rootfs]
18filename=${ROOTFS_NAME}
19EOF
20
21rauc \
22 --cert ${BR2_EXTERNAL_CZECHLIGHT_PATH}/crypto/rauc-cert.pem \
23 --key ${BR2_EXTERNAL_CZECHLIGHT_PATH}/crypto/rauc-key.pem \
24 bundle ${RAUC_BUILD_DIR} ${RAUC_IMAGE}