progress?

This commit is contained in:
rusefillc 2022-05-10 10:51:56 -04:00
parent bf9229f5ac
commit 33002e7683
1 changed files with 4 additions and 3 deletions

View File

@ -4,12 +4,15 @@
export PROJECT_BOARD=$1
export PROJECT_CPU=$2
# fail on error
set -e
SCRIPT_NAME="common_make.sh"
echo "Entering $SCRIPT_NAME with board $1 and CPU $2"
cd ../../..
mkdir .dep
mkdir -p .dep
# todo: start using env variable for number of threads or for '-r'
make -j$(nproc) -r PROJECT_BOARD=$PROJECT_BOARD PROJECT_CPU=$PROJECT_CPU
[ -e build/rusefi.hex ] || { echo "FAILED to compile by $SCRIPT_NAME with $PROJECT_BOARD $DEBUG_LEVEL_OPT and $EXTRA_PARAMS"; exit 1; }
@ -28,8 +31,6 @@ chmod u+x $HEX2DFU
mkdir -p deliver
rm -f deliver/*
set -e
echo "$SCRIPT_NAME: invoking hex2dfu for incremental rusEFI image"
$HEX2DFU -i build/rusefi.hex -C 0x1C -o build/rusefi.dfu