Skip to content

Commit

Permalink
adding condition for the wiseconnect packages
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Oct 3, 2023
1 parent bed44ce commit 465574a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/build/builders/efr32.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,13 @@ def __init__(self,
# case for pre-installed images), use it directly.
sdk_path = shlex.quote(os.environ['GSDK_ROOT'])
self.extra_gn_options.append(f"efr32_sdk_root=\"{sdk_path}\"")
if not enable_wifi:
self.extra_gn_options.append(f"openthread_root=\"{sdk_path}/util/third_party/openthread\"")
self.extra_gn_options.append(f"openthread_root=\"{sdk_path}/util/third_party/openthread\"")

if "WISECONNECT_PATH" in os.environ:
wifi_sdk_path = shlex.quote(os.environ['WISECONNECT_PATH'])
self.extra_gn_options.append(f"wifi_sdk_root=\"{wifi_sdk_path}\"")
# adding wiseconnect path only for the 917 soc devices
if enable_917_soc:
if "WISECONNECT_PATH" in os.environ:
wifi_sdk_path = shlex.quote(os.environ['WISECONNECT_PATH'])
self.extra_gn_options.append(f"wifi_sdk_root=\"{wifi_sdk_path}\"")

def GnBuildArgs(self):
return self.extra_gn_options
Expand Down

0 comments on commit 465574a

Please sign in to comment.