Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the old 'make upload' target, since it doesn't make as much se…
…nse anymore. Add a script to do uploads instead.
- Loading branch information
Mike Smith
authored and
Mike Smith
committed
Nov 3, 2011
1 parent
41df7b4
commit 9237f20
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
# | ||
# Trivial uploader script, assumes that you have the EC2 tools somewhere on your path. | ||
# | ||
|
||
EWF=`which ec2writeflash` | ||
|
||
if [ -z $EWF ]; then | ||
echo "Could not find ec2writeflash on your path - did you install the EC2 tools?" | ||
exit 1 | ||
fi | ||
if [ -z $1 ]; then | ||
echo "Missing firmware filename." | ||
exit 1 | ||
fi | ||
if [ ! -r $1 ]; then | ||
echo "Input file '$1' not readable." | ||
exit 1 | ||
fi | ||
|
||
${EWF} --port=USB --mode=c2 --run --hex $1 |