Skip to content

Commit

Permalink
Restyled by autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and Martin-NXP committed Jul 29, 2024
1 parent a794eae commit c072483
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,4 +814,4 @@ def BuildOpenIotSdkTargets():
BuildTizenTarget(),
BuildTelinkTarget(),
BuildOpenIotSdkTargets(),
]
]
24 changes: 12 additions & 12 deletions scripts/build/builders/nxp.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,28 +179,28 @@ def GnBuildArgs(self):

if self.has_sw_version_2:
args.append('nxp_software_version=2')

if self.enable_ota:
# OTA is enabled by default on kw32
if self.board == NxpBoard.RW61X:
args.append('chip_enable_ota_requestor=true no_mcuboot=false')

if self.enable_wifi:
args.append('chip_enable_wifi=true')

if self.disable_ble:
args.append('chip_enable_ble=false')

if self.enable_shell:
args.append('chip_enable_matter_cli=true')

if self.enable_thread:
# thread is enabled by default on kw32
if self.board == NxpBoard.RW61X:
args.append('chip_enable_openthread=true chip_inet_config_enable_ipv4=false')
if self.enable_wifi:
args.append('openthread_root=\\"//third_party/connectedhomeip/third_party/openthread/ot-nxp/openthread-br\\"')

if self.is_sdk_package:
args.append('is_sdk_package=true')

Expand Down Expand Up @@ -237,18 +237,18 @@ def generate(self):
build_args=build_args).strip()
self._Execute(['bash', '-c', cmd], title='Generating ' + self.identifier)
else:
cmd=''
cmd = ''
# will be used with next sdk version to get sdk path
if 'NXP_UPDATE_SDK_SCRIPT_DOCKER' in os.environ:
# Dynamic import of a python file to get platforms sdk path
spec = importlib.util.spec_from_file_location("None", os.environ['NXP_UPDATE_SDK_SCRIPT_DOCKER'])
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)

for p in module.ALL_PLATFORM_SDK:
if p.sdk_name == 'k32w0' :
if p.sdk_name == 'k32w0':
cmd += 'export NXP_K32W0_SDK_ROOT="' + str(p.sdk_storage_location_abspath) + '" \n '
elif p.sdk_name == 'common' :
elif p.sdk_name == 'common':
cmd += 'export NXP_SDK_ROOT="' + str(p.sdk_storage_location_abspath) + '" \n '
cmd += 'gn gen --check --fail-on-unused-args --export-compile-commands --root=%s' % self.root

Expand All @@ -265,12 +265,12 @@ def generate(self):

extra_args.extend(self.GnBuildArgs() or [])
if extra_args:
cmd += ' --args="%s' % ' '.join(extra_args) +'" '
cmd += ' --args="%s' % ' '.join(extra_args) + '" '

cmd += self.output_dir

title = 'Generating ' + self.identifier

self._Execute(['bash', '-c', cmd], title=title)

def build_outputs(self):
Expand Down

0 comments on commit c072483

Please sign in to comment.