Jan Kundrát | 1de4ebd | 2017-10-20 17:14:13 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | RAUC_BUILD_DIR=${BUILD_DIR}/rauc-work-tmp |
| 4 | RAUC_IMAGE=${BINARIES_DIR}/update.raucb |
| 5 | ROOTFS_NAME=rootfs.tar.xz |
| 6 | |
| 7 | rm -rf ${RAUC_BUILD_DIR} |
| 8 | mkdir ${RAUC_BUILD_DIR} |
| 9 | rm -f ${RAUC_IMAGE} |
| 10 | |
| 11 | ln ${BINARIES_DIR}/${ROOTFS_NAME} ${RAUC_BUILD_DIR}/ |
| 12 | cat > ${RAUC_BUILD_DIR}/manifest.raucm << EOF |
| 13 | [update] |
| 14 | compatible=czechlight-clearfog |
| 15 | version=dev |
| 16 | |
| 17 | [image.rootfs] |
| 18 | filename=${ROOTFS_NAME} |
| 19 | EOF |
| 20 | |
| 21 | rauc \ |
| 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} |