aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/werner/build-all.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-12-18 15:02:39 -0700
committerSelene ToyKeeper2018-12-18 15:02:39 -0700
commite966d935f005b230ee67f7afd64a49a9ca5e10b2 (patch)
tree37e043ec7a083ddbfbffb35844279318afc6dddb /spaghetti-monster/werner/build-all.sh
parentUpdated Anduril text file, mostly. (diff)
parentUpdated the rest of the FSM interfaces to use the new config file system. (diff)
downloadanduril-e966d935f005b230ee67f7afd64a49a9ca5e10b2.tar.gz
anduril-e966d935f005b230ee67f7afd64a49a9ca5e10b2.tar.bz2
anduril-e966d935f005b230ee67f7afd64a49a9ca5e10b2.zip
merged include-fix branch, cleans up how include files / config files get pulled in
Diffstat (limited to '')
-rwxr-xr-xspaghetti-monster/werner/build-all.sh18
1 files changed, 6 insertions, 12 deletions
diff --git a/spaghetti-monster/werner/build-all.sh b/spaghetti-monster/werner/build-all.sh
index 43879bb..87d4f0d 100755
--- a/spaghetti-monster/werner/build-all.sh
+++ b/spaghetti-monster/werner/build-all.sh
@@ -4,16 +4,10 @@ cp -av ../anduril/cfg*.h .
UI=werner
-for TARGET in \
- BLF_GT \
- BLF_Q8 \
- EMISAR_D1 \
- EMISAR_D1S \
- EMISAR_D4 \
- EMISAR_D4S \
- FW3A \
- ; do
- echo "===== $TARGET ====="
- ../../../bin/build.sh 85 "$UI" "-DFSM_${TARGET}_DRIVER"
- mv -f "$UI".hex "$UI".$TARGET.hex
+for TARGET in cfg-*.h ; do
+ NAME=$(echo "$TARGET" | perl -ne '/cfg-(.*).h/ && print "$1\n";')
+ echo "===== $NAME ====="
+ echo ../../../bin/build.sh 85 "$UI" "-DCONFIGFILE=${TARGET}"
+ ../../../bin/build.sh 85 "$UI" "-DCONFIGFILE=${TARGET}"
+ mv -f "$UI".hex "$UI".$NAME.hex
done