mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-20 03:47:20 -04:00
Added usage and help functions to write-bytes.sh
This commit is contained in:
parent
2a8e213f20
commit
e33c2f7a8c
1 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,15 @@
|
|||
# This file writes a bunch of bytes to the flash card based on a text
|
||||
# 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=""
|
||||
OUTPUTFILE=""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue