Adding ChibiOS path override feature to chbuild.sh

This commit is contained in:
Fabien Poussin 2019-03-07 09:24:58 +00:00
parent 34701463fc
commit 559e7bd1d7
1 changed files with 5 additions and 2 deletions

View File

@ -11,7 +11,6 @@ JOBS=$(grep -c ^processor /proc/cpuinfo)
SKIP_ARRAY=(Win32)
RETCODE=0
function test_skip {
Array=$1
SKIP=0
@ -42,7 +41,11 @@ function chbuild {
fi
pushd $t > /dev/null
printf "BUILDING: ${t}\n"
make --quiet -j $JOBS > /dev/null
if [ -z "$CH_PATH" ]; then
make --quiet -j $JOBS > /dev/null
else
make CHIBIOS=$CH_PATH --quiet -j $JOBS > /dev/null
fi
if [ $? -ne 0 ]; then
((NOK++))
FAIL+=($t)