update all compile scripts to use available cores rather than a hardcoded value (#2425)

* fix typos, spelling

* add two V8 firing orders

* use the available number of CPU cores, not just 4

* add new firing orders to config

* updating generated files to include new v8 firing orders

* reverting update of auto-generated files

* correct firing order labels for new firing orders

* update all compile scripts to use available cores rather than a hardcoded value
This commit is contained in:
slowriot 2021-03-06 17:55:46 +00:00 committed by GitHub
parent 76b1bb5f4d
commit b70e39d425
5 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ echo "Entering $SCRIPT_NAME"
BOOTLOADER_CODE_DESTINATION_FILE=$BOOTLOADER_CODE_DESTINATION_PATH/bootloader_generated.hxx
echo "$SCRIPT_NAME: Starting bootloader compilation..."
make -j4 -f src/Makefile $1 $2 $3
make -j$(nproc) -f src/Makefile $1 $2 $3
# downstream scripts detect error condition by checking if the output file exists so we need to make sure we remove it
[ $? -eq 0 ] || { echo "ERROR: bootloader compilation failed"; rm -f blbuild/$BOOTLOADER_CODE_DESTINATION_FILE ; exit 1; }

View File

@ -7,7 +7,7 @@ cd ../../..
mkdir .dep
# todo: start using env variable for number of threads or for '-r'
make -j4 -r
make -j$(nproc) -r
[ -e build/rusefi.hex ] || { echo "FAILED to compile by $SCRIPT_NAME with $PROJECT_BOARD $DEBUG_LEVEL_OPT and $EXTRA_PARAMS"; exit 1; }
mkdir -p deliver

2
simulator/compile.sh Normal file → Executable file
View File

@ -1,5 +1,5 @@
rm -f build/rusefi_simulator.exe
make -j4 -r
make -j$(nproc) -r
[ $? -eq 0 ] || { echo "Simulator compilation failed"; exit 1; }
file build/rusefi_simulator
echo "TIMESTAMP $(date "+%D %T.%2N") just compiled rusefi simulator"

View File

@ -3,4 +3,4 @@
echo "Compiling unit tests"
rm -rf .dep/
rm -rf build/
make -j4
make -j$(nproc)

View File

@ -1,6 +1,6 @@
#!/bin/bash
make clean
make -j4
make -j$(nproc)
build/rusefi_test
bash ci_gcov.sh "$RUSEFI_DOXYGEN_FTP_USER" "$RUSEFI_DOXYGEN_FTP_PASS" "$RUSEFI_FTP_SERVER"