Lines Matching refs:partitions
109 def find_obj_file_partitions(filename, partitions): argument
126 if partition_name not in partitions:
127 partitions[partition_name] = {SZ: section.header.sh_size}
130 partitions[partition_name][SRC] = filename
133 partitions[partition_name][SZ] += section.header.sh_size
136 return partitions
139 def parse_obj_files(partitions): argument
147 find_obj_file_partitions(fullname, partitions)
150 def parse_compile_command_file(partitions): argument
167 find_obj_file_partitions(fullname, partitions)
170 def parse_elf_file(partitions): argument
191 if partition_name not in partitions:
192 partitions[partition_name] = {SZ: size}
195 partitions[partition_name][SRC] = args.elf
198 partitions[partition_name][SZ] += size
201 def generate_final_linker(linker_file, partitions, lnkr_sect=""): argument
204 if len(partitions) > 0:
207 for partition, item in partitions.items():
256 partitions = {}
259 parse_obj_files(partitions)
261 parse_compile_command_file(partitions)
263 parse_elf_file(partitions)
268 if ptn not in partitions:
269 partitions[ptn] = {}
271 if LIB not in partitions[ptn]:
272 partitions[ptn][LIB] = [lib]
274 partitions[ptn][LIB].append(lib)
279 generic_partitions = {key: value for key, value in partitions.items()
281 pinned_partitions = {key: value for key, value in partitions.items()
284 generic_partitions = partitions