Skip to content

Commit fcc5384

Browse files
committed
Fix RW61X build output logic
1 parent e5ba1a4 commit fcc5384

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/build/builders/rw61x.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ def generate(self):
118118
super(RW61XBuilder, self).generate()
119119

120120
def build_outputs(self):
121-
extensions = ["elf"]
121+
yield BuilderOutput(
122+
os.path.join(self.output_dir, self.app.NameSuffix()),
123+
f'{self.app.NameSuffix()}.elf')
122124
if self.options.enable_link_map_file:
123-
extensions.append("map")
124-
for ext in extensions:
125-
name = f"{self.app.NameSuffix()}.{ext}"
126-
yield BuilderOutput(os.path.join(self.output_dir, name), name)
125+
yield BuilderOutput(
126+
os.path.join(self.output_dir, f'{self.app.NameSuffix()}.map'),
127+
f'{self.app.NameSuffix()}.map')

0 commit comments

Comments
 (0)