From 77e4f537584299b369bf8ec2e169c41ed6517d0e Mon Sep 17 00:00:00 2001 From: Andrey G Date: Sat, 7 May 2022 13:12:07 +0300 Subject: [PATCH] Export PROJECT_BOARD, we need it while compiling OpenBLT with separate make call (#4146) --- firmware/config/boards/clean_env_variables.sh | 2 ++ firmware/config/boards/common_make.sh | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/firmware/config/boards/clean_env_variables.sh b/firmware/config/boards/clean_env_variables.sh index 7e82b3c526..dca5484d22 100644 --- a/firmware/config/boards/clean_env_variables.sh +++ b/firmware/config/boards/clean_env_variables.sh @@ -3,6 +3,8 @@ echo "clean_env_variables.sh: Cleaning up so that no one inherits any of these values" export DEBUG_LEVEL_OPT="" export EXTRA_PARAMS="" +export PROJECT_BOARD="" +export PROJECT_CPU="" export USE_BOOTLOADER="" export VAR_DEF_ENGINE_TYPE="" export LED_CRITICAL_ERROR_BRAIN_PIN="" diff --git a/firmware/config/boards/common_make.sh b/firmware/config/boards/common_make.sh index 0c30adce85..d6b04e6423 100644 --- a/firmware/config/boards/common_make.sh +++ b/firmware/config/boards/common_make.sh @@ -1,7 +1,8 @@ #!/bin/bash -PROJECT_BOARD=$1 -PROJECT_CPU=$2 +#exporting for OpenBlt Makefile +export PROJECT_BOARD=$1 +export PROJECT_CPU=$2 SCRIPT_NAME="common_make.sh" echo "Entering $SCRIPT_NAME with board $1 and CPU $2"