Skip to content

Commit

Permalink
Pull request project-chip#1492: Add a condition in the build script t…
Browse files Browse the repository at this point in the history
…o avoid OT-libs build args in wifi builds.

Merge in WMN_TOOLS/matter from ot-lib_release to RC_2.3.0-1.3

Squashed commit of the following:

commit 775ab02ce0b85fb5fd558ec68cac8e2b9ba30559
Author: Junior Martinez <[email protected]>
Date:   Mon Jan 15 10:08:41 2024 -0500

    Add a condition in the build script to avoid OT-libs build args in wifi builds. Re-add --use_ot_lib in Pipeline for the 4187C release build
  • Loading branch information
jmartinez-silabs committed Jan 16, 2024
1 parent db3f65c commit c6f74ac
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/examples/gn_silabs_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ USE_WIFI=false
USE_DOCKER=false
USE_GIT_SHA_FOR_VERSION=true
USE_SLC=false
USE_OT_LIB=false
GN_PATH=gn
GN_PATH_PROVIDED=false
USE_BOOTLOADER=false
Expand Down Expand Up @@ -162,6 +163,7 @@ else

shift
shift
otLibArgs=""
while [ $# -gt 0 ]; do
case $1 in
--clean)
Expand Down Expand Up @@ -205,11 +207,13 @@ else
shift
;;
--use_ot_lib)
optArgs+="use_silabs_thread_lib=true chip_openthread_target=$SILABS_THREAD_TARGET openthread_external_platform=\"""\" "
USE_OT_LIB=true
otLibArgs+="use_silabs_thread_lib=true chip_openthread_target=$SILABS_THREAD_TARGET openthread_external_platform=\"""\" "
shift
;;
--use_ot_coap_lib)
optArgs+="use_silabs_thread_lib=true chip_openthread_target=$SILABS_THREAD_TARGET openthread_external_platform=\"""\" use_thread_coap_lib=true "
USE_OT_LIB=true
otLibArgs+="use_silabs_thread_lib=true chip_openthread_target=$SILABS_THREAD_TARGET openthread_external_platform=\"""\" use_thread_coap_lib=true "
shift
;;
--use_chip_lwip_lib)
Expand Down Expand Up @@ -295,6 +299,10 @@ else
optArgs+="chip_device_platform =\"SiWx917\" is_debug=false "
fi

if [ "$USE_OT_LIB" == true ] && [ "$USE_WIFI" == false ]; then
optArgs+="$otLibArgs"
fi

if [ "$USE_GIT_SHA_FOR_VERSION" == true ]; then
{
ShortCommitSha=$(git describe --always --dirty --exclude '*')
Expand Down

0 comments on commit c6f74ac

Please sign in to comment.