@@ -416,7 +416,6 @@ def __init__(self, target, notify=None, macros=None, silent=False,
416
416
417
417
# Print output buffer
418
418
self .output = str ()
419
- self .map_outputs = list () # Place to store memmap scan results in JSON like data structures
420
419
421
420
# uVisor spepcific rules
422
421
if 'UVISOR' in self .target .features and 'UVISOR_SUPPORTED' in self .target .extra_labels :
@@ -585,13 +584,13 @@ def need_update(self, target, dependencies):
585
584
# information about the library paths. Safe option: assume an update
586
585
if not d or not exists (d ):
587
586
return True
588
-
587
+
589
588
if not self .stat_cache .has_key (d ):
590
589
self .stat_cache [d ] = stat (d ).st_mtime
591
590
592
591
if self .stat_cache [d ] >= target_mod_time :
593
592
return True
594
-
593
+
595
594
return False
596
595
597
596
def is_ignored (self , file_path ):
@@ -852,7 +851,7 @@ def get_link_file(self, cmd):
852
851
string = " " .join (cmd_list )
853
852
f .write (string )
854
853
return link_file
855
-
854
+
856
855
# Generate response file for all objects when archiving.
857
856
# ARM, GCC, IAR cross compatible
858
857
def get_arch_file (self , objects ):
@@ -1128,7 +1127,8 @@ def link_program(self, r, tmp_path, name):
1128
1127
self .progress ("elf2bin" , name )
1129
1128
self .binary (r , elf , bin )
1130
1129
1131
- self .map_outputs = self .mem_stats (map )
1130
+ # Initialize memap and process map file. This doesn't generate output.
1131
+ self .mem_stats (map )
1132
1132
1133
1133
self .var ("compile_succeded" , True )
1134
1134
self .var ("binary" , filename )
@@ -1193,8 +1193,7 @@ def var(self, key, value):
1193
1193
def mem_stats (self , map ):
1194
1194
"""! Creates parser object
1195
1195
@param map Path to linker map file to parse and decode
1196
- @return Memory summary structure with memory usage statistics
1197
- None if map file can't be opened and processed
1196
+ @return None
1198
1197
"""
1199
1198
toolchain = self .__class__ .__name__
1200
1199
@@ -1209,10 +1208,10 @@ def mem_stats(self, map):
1209
1208
# Store the memap instance for later use
1210
1209
self .memap_instance = memap
1211
1210
1212
- # Here we return memory statistics structure (constructed after
1213
- # call to generate_output) which contains raw data in bytes
1214
- # about sections + summary
1215
- return memap . mem_report
1211
+ # Note: memory statistics are not returned.
1212
+ # Need call to generate_output later (depends on depth & output format)
1213
+
1214
+ return None
1216
1215
1217
1216
# Set the configuration data
1218
1217
def set_config_data (self , config_data ):
0 commit comments