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 | 4fbf2d2 | 2019-03-01 14:05:38 +0100 | [diff] [blame] | 7 | ${HOST_DIR}/bin/mksquashfs ${BINARIES_DIR}/sdcard.img ${BINARIES_DIR}/sdcard.img.squashfs -root-owned -comp gzip -progress -noappend |
Jan Kundrát | 69947bf | 2018-01-15 18:48:34 +0100 | [diff] [blame] | 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" |