Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prebuilt: add directory of prebuilt examples
People want to be able to just load code on. Provide a prebuilt/ directory with pre-compiled versions. Signed-off-by: Sean Cross <sean@xobs.io>
- Loading branch information
Showing
19 changed files
with
17 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# make-prebuilt.sh | ||
# Go through all of the project directories and copy the output binaries | ||
# to the prebuilt/ directory. | ||
# Then, call dfu-suffix to append a Device Firmware Upgrade suffix to the | ||
# end of each file so that dfu-util will know which device to look for. | ||
|
||
mkdir -p prebuilt | ||
for proj in $(find . -name '*.bin' | cut -d/ -f2 | grep -v prebuilt) | ||
do | ||
cp $proj/$proj.bin prebuilt/$proj.bin | ||
cp $proj/$proj.bin prebuilt/$proj.dfu | ||
cp $proj/$proj.elf prebuilt/$proj.elf | ||
dfu-suffix -v 1209 -p 70b1 -a prebuilt/$proj.dfu | ||
done |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.