Skip to content

Commit cf5eeea

Browse files
committed
More copy-paste fixes
1 parent fcc5384 commit cf5eeea

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

examples/chef/chef.py

+1
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ def main() -> int:
811811
'chip_shell_cmd_server = false',
812812
'chip_build_libshell = true',
813813
'chip_enable_openthread = false',
814+
'chip_generate_link_map_file = true',
814815
'chip_config_network_layer_ble = false',
815816
'chip_device_project_config_include = "<CHIPProjectAppConfig.h>"',
816817
'chip_project_config_include = "<CHIPProjectAppConfig.h>"',

scripts/build/builders/esp32.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def build_outputs(self):
257257
if self.options.enable_link_map_file:
258258
extensions.append("map")
259259
for ext in extensions:
260-
name = f"{self.app.AppNamePrefix()}.{ext}"
260+
name = f"{self.app.AppNamePrefix}.{ext}"
261261
yield BuilderOutput(os.path.join(self.output_dir, name), name)
262262

263263
def bundle_outputs(self):

scripts/build/builders/infineon.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,6 @@ def build_outputs(self):
111111
yield BuilderOutput(os.path.join(self.output_dir, name), name)
112112

113113
def bundle_outputs(self):
114-
with open(os.path.join(self.output_dir, self.app.FlashBundleName)) as f:
114+
with open(os.path.join(self.output_dir, self.app.FlashBundleName())) as f:
115115
for line in filter(None, [x.strip() for x in f.readlines()]):
116116
yield BuilderOutput(os.path.join(self.output_dir, line), line)

scripts/build/builders/nrf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,6 @@ def build_outputs(self):
243243
def bundle_outputs(self):
244244
if self.app == NrfApp.UNIT_TESTS:
245245
return
246-
with open(os.path.join(self.output_dir, self.app.FlashBundleName)) as f:
246+
with open(os.path.join(self.output_dir, self.app.FlashBundleName())) as f:
247247
for line in filter(None, [x.strip() for x in f.readlines()]):
248248
yield BuilderOutput(os.path.join(self.output_dir, line), line)

scripts/build/builders/nxp.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,11 @@ def generate(self):
129129
super(NxpBuilder, self).generate()
130130

131131
def build_outputs(self):
132-
extensions = ["elf"]
132+
name = 'chip-%s-%s' % (self.board.Name(), self.app.NameSuffix())
133+
yield BuilderOutput(
134+
os.path.join(self.output_dir, name),
135+
f'{name}.elf')
133136
if self.options.enable_link_map_file:
134-
extensions.append("map")
135-
for ext in extensions:
136-
name = f"chip-{self.board.Name()}-{self.app.NameSuffix()}.{ext}"
137-
yield BuilderOutput(os.path.join(self.output_dir, name), name)
137+
yield BuilderOutput(
138+
os.path.join(self.output_dir, f'{name}.map'),
139+
f'{name}.map')

scripts/build/builders/ti.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@ def build_outputs(self):
129129
if self.options.enable_link_map_file:
130130
suffixes.append(".out.map")
131131
for suffix in suffixes:
132-
name = f"{self.app.AppNamePrefix()}{suffix}"
132+
name = f"{self.app.AppNamePrefix(self.board)}{suffix}"
133133
yield BuilderOutput(os.path.join(self.output_dir, name), name)

0 commit comments

Comments
 (0)