mirror of https://github.com/FOME-Tech/fome-fw.git
handle if USE_OPENBLT is blank
This commit is contained in:
parent
f1774af593
commit
5aa327d821
|
@ -4,7 +4,7 @@ PROJECT_BOARD=$1
|
||||||
PROJECT_CPU=$2
|
PROJECT_CPU=$2
|
||||||
|
|
||||||
# fail on error
|
# fail on error
|
||||||
set -euo pipefail
|
set -e
|
||||||
|
|
||||||
SCRIPT_NAME="common_make.sh"
|
SCRIPT_NAME="common_make.sh"
|
||||||
echo "Entering $SCRIPT_NAME with board $1 and CPU $2"
|
echo "Entering $SCRIPT_NAME with board $1 and CPU $2"
|
||||||
|
@ -22,7 +22,7 @@ mkdir -p .dep
|
||||||
echo "Calling make for the main firmware..."
|
echo "Calling make for the main firmware..."
|
||||||
make -j6 -r PROJECT_BOARD=$PROJECT_BOARD PROJECT_CPU=$PROJECT_CPU BOARD_DIR=$BOARD_DIR
|
make -j6 -r PROJECT_BOARD=$PROJECT_BOARD PROJECT_CPU=$PROJECT_CPU BOARD_DIR=$BOARD_DIR
|
||||||
[ -e build/fome.hex ] || { echo "FAILED to compile by $SCRIPT_NAME with $PROJECT_BOARD $DEBUG_LEVEL_OPT and $EXTRA_PARAMS"; exit 1; }
|
[ -e build/fome.hex ] || { echo "FAILED to compile by $SCRIPT_NAME with $PROJECT_BOARD $DEBUG_LEVEL_OPT and $EXTRA_PARAMS"; exit 1; }
|
||||||
if [ "$USE_OPENBLT" = "yes" ]; then
|
if [ "${USE_OPENBLT-no}" = "yes" ]; then
|
||||||
# TODO: why is this rm necessary?
|
# TODO: why is this rm necessary?
|
||||||
rm -f pch/pch.h.gch/*
|
rm -f pch/pch.h.gch/*
|
||||||
echo "Calling make for the bootloader..."
|
echo "Calling make for the bootloader..."
|
||||||
|
|
Loading…
Reference in New Issue