From 54389716e81db4a727842e1ad7a69086de47885e Mon Sep 17 00:00:00 2001 From: Jean-Francois Penven <67962328+jepenven-silabs@users.noreply.github.com> Date: Thu, 30 Mar 2023 16:19:30 -0400 Subject: [PATCH] silabs_fix_buildscript (#25898) --- scripts/examples/gn_efr32_example.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/examples/gn_efr32_example.sh b/scripts/examples/gn_efr32_example.sh index 2bf76edb93a3ea..25ffa25daa69db 100755 --- a/scripts/examples/gn_efr32_example.sh +++ b/scripts/examples/gn_efr32_example.sh @@ -270,6 +270,10 @@ else if [ "$USE_SLC" == true ] && [ "$GN_PATH_PROVIDED" == false ]; then GN_PATH=./.environment/cipd/packages/pigweed/gn + elif [ "$USE_SLC" == false ]; then + # Activation needs to be after SLC generation which is done in gn gen. + # Zap generation requires activation and is done in the build phase + source "$CHIP_ROOT/scripts/activate.sh" fi BUILD_DIR=$OUTDIR/$SILABS_BOARD @@ -298,9 +302,11 @@ else fi fi - # Activation needs to be after SLC generation which is done in gn gen. - # Zap generation requires activation and is done in the build phase - source "$CHIP_ROOT/scripts/activate.sh" + if [ "$USE_SLC" == true ]; then + # Activation needs to be after SLC generation which is done in gn gen. + # Zap generation requires activation and is done in the build phase + source "$CHIP_ROOT/scripts/activate.sh" + fi ninja -v -C "$BUILD_DIR"/ #print stats