File tree 6 files changed +12
-9
lines changed
6 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -811,6 +811,7 @@ def main() -> int:
811
811
'chip_shell_cmd_server = false' ,
812
812
'chip_build_libshell = true' ,
813
813
'chip_enable_openthread = false' ,
814
+ 'chip_generate_link_map_file = true' ,
814
815
'chip_config_network_layer_ble = false' ,
815
816
'chip_device_project_config_include = "<CHIPProjectAppConfig.h>"' ,
816
817
'chip_project_config_include = "<CHIPProjectAppConfig.h>"' ,
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ def build_outputs(self):
257
257
if self .options .enable_link_map_file :
258
258
extensions .append ("map" )
259
259
for ext in extensions :
260
- name = f"{ self .app .AppNamePrefix () } .{ ext } "
260
+ name = f"{ self .app .AppNamePrefix } .{ ext } "
261
261
yield BuilderOutput (os .path .join (self .output_dir , name ), name )
262
262
263
263
def bundle_outputs (self ):
Original file line number Diff line number Diff line change @@ -111,6 +111,6 @@ def build_outputs(self):
111
111
yield BuilderOutput (os .path .join (self .output_dir , name ), name )
112
112
113
113
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 :
115
115
for line in filter (None , [x .strip () for x in f .readlines ()]):
116
116
yield BuilderOutput (os .path .join (self .output_dir , line ), line )
Original file line number Diff line number Diff line change @@ -243,6 +243,6 @@ def build_outputs(self):
243
243
def bundle_outputs (self ):
244
244
if self .app == NrfApp .UNIT_TESTS :
245
245
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 :
247
247
for line in filter (None , [x .strip () for x in f .readlines ()]):
248
248
yield BuilderOutput (os .path .join (self .output_dir , line ), line )
Original file line number Diff line number Diff line change @@ -129,9 +129,11 @@ def generate(self):
129
129
super (NxpBuilder , self ).generate ()
130
130
131
131
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' )
133
136
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' )
Original file line number Diff line number Diff line change @@ -129,5 +129,5 @@ def build_outputs(self):
129
129
if self .options .enable_link_map_file :
130
130
suffixes .append (".out.map" )
131
131
for suffix in suffixes :
132
- name = f"{ self .app .AppNamePrefix ()} { suffix } "
132
+ name = f"{ self .app .AppNamePrefix (self . board )} { suffix } "
133
133
yield BuilderOutput (os .path .join (self .output_dir , name ), name )
You can’t perform that action at this time.
0 commit comments