mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Added usage and help functions to write-bytes.sh
This commit is contained in:
parent
2a8e213f20
commit
e33c2f7a8c
@ -3,6 +3,15 @@
|
|||||||
# This file writes a bunch of bytes to the flash card based on a text
|
# This file writes a bunch of bytes to the flash card based on a text
|
||||||
# file input with bytes written in hexadecimal.
|
# file input with bytes written in hexadecimal.
|
||||||
|
|
||||||
|
usage() { echo "Usage: $0 [-zh] [-b <path/to/buildroot>] <device>" 1>&2; exit 1; }
|
||||||
|
|
||||||
|
help() {
|
||||||
|
echo "Usage: $0 [OPTIONS] <device>"
|
||||||
|
echo " -i Input text file with hex bytes."
|
||||||
|
echo " -b <path/to/buildroot> Output binary file."
|
||||||
|
exit 0;
|
||||||
|
}
|
||||||
|
|
||||||
INPUTFILE=""
|
INPUTFILE=""
|
||||||
OUTPUTFILE=""
|
OUTPUTFILE=""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user