Jan Kundrát | 69947bf | 2018-01-15 18:48:34 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -ex |
| 4 | |
Jan Kundrát | 4932c57 | 2018-01-15 19:05:14 +0100 | [diff] [blame] | 5 | install -m 0644 -D ${BR2_EXTERNAL_CZECHLIGHT_PATH}/board/czechlight/clearfog/usb-reflash-factory.sh ${BINARIES_DIR}/usb-reflash-factory.sh |
| 6 | |
Jan Kundrát | 69947bf | 2018-01-15 18:48:34 +0100 | [diff] [blame] | 7 | mksquashfs ${BINARIES_DIR}/sdcard.img ${BINARIES_DIR}/sdcard.img.squashfs -root-owned -comp gzip -progress |
| 8 | |
| 9 | GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" |
| 10 | rm -rf "${GENIMAGE_TMP}" |
| 11 | |
| 12 | genimage --rootpath "${TARGET_DIR}" --tmppath "${GENIMAGE_TMP}" --inputpath "${BINARIES_DIR}" --outputpath "${BINARIES_DIR}" --config "${BR2_EXTERNAL_CZECHLIGHT_PATH}/board/czechlight/clearfog/usb-genimage.cfg" |