common_make.sh assumes invocation from a sub-directory #5284

This commit is contained in:
rusefi 2023-10-18 21:36:39 -04:00 committed by rusefillc
parent 08b3f6a74f
commit 41720595a7
1 changed files with 1 additions and 4 deletions

View File

@ -6,12 +6,9 @@ PROJECT_CPU=$2
# fail on error
set -e
SCRIPT_NAME="common_make.sh"
SCRIPT_NAME="common_script.sh"
echo "Entering $SCRIPT_NAME with board [$1] and CPU [$2]"
# todo: technical debt: https://github.com/rusefi/rusefi/issues/5284
cd ../../..
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