Skip to content

Commit

Permalink
revert changes on build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Nov 14, 2023
1 parent 85ffa2d commit df659f0
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions scripts/examples/gn_silabs_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ fi
set -x
env
USE_WIFI=false
USE_RPS_EXTENSION=false
USE_DOCKER=false
USE_GIT_SHA_FOR_VERSION=true
USE_SLC=false
Expand Down Expand Up @@ -285,7 +284,6 @@ else
if [ "$SILABS_BOARD" == "BRD4325B" ] || [ "$SILABS_BOARD" == "BRD4325C" ] || [ "$SILABS_BOARD" == "BRD4338A" ] || [ "$SILABS_BOARD" == "BRD4325G" ]; then
echo "Compiling for 917 WiFi SOC"
USE_WIFI=true
USE_RPS_EXTENSION=true
optArgs+="chip_device_platform =\"SiWx917\" "
fi

Expand Down Expand Up @@ -340,23 +338,23 @@ else

# add bootloader to generated image
if [ "$USE_BOOTLOADER" == true ]; then
# Get .s37 path and name
binName="$(find "$BUILD_DIR" -type f -name "*.s37")"

# set commander path
if [ -z "$COMMANDER_PATH" ]; then
commanderPath="commander"
else
commanderPath="$COMMANDER_PATH"
fi
binName=""
InternalBootloaderBoards=("BRD4337A" "BRD2704A" "BRD2703A" "BRD4319A")
bootloaderPath=""

commanderPath=""
# find the matter root folder
if [ -z "$MATTER_ROOT" ]; then
MATTER_ROOT="$CHIP_ROOT"
fi

# set commander path
if [ -z "$COMMANDER_PATH" ]; then
commanderPath="commander"
else
commanderPath="$COMMANDER_PATH"
fi

# search bootloader directory for the respective bootloaders for the input board
bootloaderFiles=("$(find "$MATTER_ROOT/third_party/silabs/matter_support/matter/efr32/bootloader_binaries/" -maxdepth 1 -name "*$SILABS_BOARD*" | tr '\n' ' ')")

Expand All @@ -374,6 +372,7 @@ else
bootloaderPath="${bootloaderFiles[0]}"
fi
echo "$bootloaderPath"
binName="$(find "$BUILD_DIR" -type f -name "*.s37")"
echo "$binName"
"$commanderPath" convert "$binName" "$bootloaderPath" -o "$binName"
fi
Expand Down

0 comments on commit df659f0

Please sign in to comment.