blob: c948bc033e3ca3af6867c8313098f617c87005d3 [file] [log] [blame]
Jan Kundrát69947bf2018-01-15 18:48:34 +01001#!/bin/sh
2
3set -ex
4
Jan Kundrát4932c572018-01-15 19:05:14 +01005install -m 0644 -D ${BR2_EXTERNAL_CZECHLIGHT_PATH}/board/czechlight/clearfog/usb-reflash-factory.sh ${BINARIES_DIR}/usb-reflash-factory.sh
6
Jan Kundrát4fbf2d22019-03-01 14:05:38 +01007${HOST_DIR}/bin/mksquashfs ${BINARIES_DIR}/sdcard.img ${BINARIES_DIR}/sdcard.img.squashfs -root-owned -comp gzip -progress -noappend
Jan Kundrát69947bf2018-01-15 18:48:34 +01008
9GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
10rm -rf "${GENIMAGE_TMP}"
11
12genimage --rootpath "${TARGET_DIR}" --tmppath "${GENIMAGE_TMP}" --inputpath "${BINARIES_DIR}" --outputpath "${BINARIES_DIR}" --config "${BR2_EXTERNAL_CZECHLIGHT_PATH}/board/czechlight/clearfog/usb-genimage.cfg"