Skip to content

Commit

Permalink
Attempt to build all
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jun 7, 2024
1 parent f959501 commit 7c6d98a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
25 changes: 0 additions & 25 deletions tools/make-all

This file was deleted.

30 changes: 30 additions & 0 deletions tools/make-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

PROJECTS="libusb libconn libbtstack libadb bootloader device_bootloader app_layer_v1 blink latency_tester"

if [[ -z "$MAKE" ]] && which colormake > /dev/null 2>&1 ; then
MAKE=colormake
else
MAKE=make
fi

unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;;
Darwin*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;;
CYGWIN*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;;
//MINGW*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;;
*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.bat
esac

echo PRJMAKEFILEGENERATOR=$PRJMAKEFILEGENERATOR

for PROJ in $PROJECTS; do
echo ===========================================
echo "$PROJ"
echo ===========================================
if ! $PRJMAKEFILEGENERATOR firmware/"$PROJ"; then echo "WARNING: failed to regenerate Makefiles."; fi
if ! $MAKE -C firmware/"$PROJ" "$@"; then echo FAILURE ; exit 1 ; fi
done
echo SUCCESS

0 comments on commit 7c6d98a

Please sign in to comment.