mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
Tools: fix Build_Summary when more than one targert
This commit is contained in:
parent
d8d73eb44c
commit
d410533424
@ -218,14 +218,15 @@ def size_summary(bld, nodes):
|
||||
path = n.path_from(bld.bldnode)
|
||||
l.append(dict(binary_path=path))
|
||||
|
||||
for d in l:
|
||||
if bld.env.SIZE:
|
||||
if bld.env.get_flat('SIZE').endswith("xtensa-esp32-elf-size"):
|
||||
cmd = [bld.env.get_flat('SIZE')] + ["-t"] + [d['binary_path'] for d in l]
|
||||
cmd = [bld.env.get_flat('SIZE')] + ["-t"] + [d['binary_path']]
|
||||
else:
|
||||
cmd = [bld.env.get_flat('SIZE')] + [d['binary_path'] for d in l]
|
||||
cmd = [bld.env.get_flat('SIZE')] + [d['binary_path']]
|
||||
|
||||
if bld.env.get_flat('SIZE').endswith("arm-none-eabi-size"):
|
||||
cmd2 = [bld.env.get_flat('SIZE')] + ["-A"] + [d['binary_path'] for d in l]
|
||||
cmd2 = [bld.env.get_flat('SIZE')] + ["-A"] + [d['binary_path']]
|
||||
out2 = bld.cmd_and_log(cmd2,
|
||||
cwd=bld.bldnode.abspath(),
|
||||
quiet=Context.BOTH,
|
||||
@ -244,7 +245,7 @@ def size_summary(bld, nodes):
|
||||
parsed = _parse_size_output(out, out2, False)
|
||||
for i, data in enumerate(parsed):
|
||||
try:
|
||||
l[i].update(data)
|
||||
d.update(data)
|
||||
except:
|
||||
print("build summary debug: "+str(i)+"->"+str(data))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user