mirror of https://github.com/ARMmbed/mbed-os.git
build: fix notifier typo and passing to builds API
Notifier should be passed to build libs functions, otherwise it's none and fails. Missing notify object in toolchain also fixed.pull/6914/head
parent
8be2e34390
commit
0bbfc6199c
|
|
@ -184,7 +184,7 @@ if __name__ == '__main__':
|
||||||
skipped.append(tt_id)
|
skipped.append(tt_id)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
notify = TerminalNotifer(options.verbose, options.silent)
|
notifier = TerminalNotifier(options.verbose, options.silent)
|
||||||
mcu = TARGET_MAP[target]
|
mcu = TARGET_MAP[target]
|
||||||
profile = extract_profile(parser, options, toolchain)
|
profile = extract_profile(parser, options, toolchain)
|
||||||
if options.source_dir:
|
if options.source_dir:
|
||||||
|
|
@ -197,6 +197,7 @@ if __name__ == '__main__':
|
||||||
name=options.artifact_name,
|
name=options.artifact_name,
|
||||||
build_profile=profile,
|
build_profile=profile,
|
||||||
ignore=options.ignore,
|
ignore=options.ignore,
|
||||||
|
notify = notifier,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
lib_build_res = build_mbed_libs(
|
lib_build_res = build_mbed_libs(
|
||||||
|
|
@ -206,6 +207,7 @@ if __name__ == '__main__':
|
||||||
macros=options.macros,
|
macros=options.macros,
|
||||||
build_profile=profile,
|
build_profile=profile,
|
||||||
ignore=options.ignore,
|
ignore=options.ignore,
|
||||||
|
notify=notifier,
|
||||||
)
|
)
|
||||||
|
|
||||||
for lib_id in libraries:
|
for lib_id in libraries:
|
||||||
|
|
|
||||||
|
|
@ -733,7 +733,7 @@ class mbedToolchain:
|
||||||
|
|
||||||
elif ext == self.LINKER_EXT:
|
elif ext == self.LINKER_EXT:
|
||||||
if resources.linker_script is not None:
|
if resources.linker_script is not None:
|
||||||
self.info("Warning: Multiple linker scripts detected: %s -> %s" % (resources.linker_script, file_path))
|
self.notify.info("Warning: Multiple linker scripts detected: %s -> %s" % (resources.linker_script, file_path))
|
||||||
resources.linker_script = file_path
|
resources.linker_script = file_path
|
||||||
|
|
||||||
elif ext == '.lib':
|
elif ext == '.lib':
|
||||||
|
|
@ -1085,7 +1085,7 @@ class mbedToolchain:
|
||||||
lib = self.STD_LIB_NAME % name
|
lib = self.STD_LIB_NAME % name
|
||||||
fout = join(dir, lib)
|
fout = join(dir, lib)
|
||||||
if self.need_update(fout, objects):
|
if self.need_update(fout, objects):
|
||||||
self.info("Library: %s" % lib)
|
self.notify.info("Library: %s" % lib)
|
||||||
self.archive(objects, fout)
|
self.archive(objects, fout)
|
||||||
needed_update = True
|
needed_update = True
|
||||||
|
|
||||||
|
|
@ -1175,7 +1175,7 @@ class mbedToolchain:
|
||||||
|
|
||||||
# Parse and decode a map file
|
# Parse and decode a map file
|
||||||
if memap.parse(abspath(map), toolchain) is False:
|
if memap.parse(abspath(map), toolchain) is False:
|
||||||
self.info("Unknown toolchain for memory statistics %s" % toolchain)
|
self.notify.info("Unknown toolchain for memory statistics %s" % toolchain)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# Store the memap instance for later use
|
# Store the memap instance for later use
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue