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)
|
||||
else:
|
||||
try:
|
||||
notify = TerminalNotifer(options.verbose, options.silent)
|
||||
notifier = TerminalNotifier(options.verbose, options.silent)
|
||||
mcu = TARGET_MAP[target]
|
||||
profile = extract_profile(parser, options, toolchain)
|
||||
if options.source_dir:
|
||||
|
|
@ -197,6 +197,7 @@ if __name__ == '__main__':
|
|||
name=options.artifact_name,
|
||||
build_profile=profile,
|
||||
ignore=options.ignore,
|
||||
notify = notifier,
|
||||
)
|
||||
else:
|
||||
lib_build_res = build_mbed_libs(
|
||||
|
|
@ -206,6 +207,7 @@ if __name__ == '__main__':
|
|||
macros=options.macros,
|
||||
build_profile=profile,
|
||||
ignore=options.ignore,
|
||||
notify=notifier,
|
||||
)
|
||||
|
||||
for lib_id in libraries:
|
||||
|
|
|
|||
|
|
@ -733,7 +733,7 @@ class mbedToolchain:
|
|||
|
||||
elif ext == self.LINKER_EXT:
|
||||
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
|
||||
|
||||
elif ext == '.lib':
|
||||
|
|
@ -1085,7 +1085,7 @@ class mbedToolchain:
|
|||
lib = self.STD_LIB_NAME % name
|
||||
fout = join(dir, lib)
|
||||
if self.need_update(fout, objects):
|
||||
self.info("Library: %s" % lib)
|
||||
self.notify.info("Library: %s" % lib)
|
||||
self.archive(objects, fout)
|
||||
needed_update = True
|
||||
|
||||
|
|
@ -1175,7 +1175,7 @@ class mbedToolchain:
|
|||
|
||||
# Parse and decode a map file
|
||||
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
|
||||
|
||||
# Store the memap instance for later use
|
||||
|
|
|
|||
Loading…
Reference in New Issue