diff --git a/tools/build.py b/tools/build.py index f88bf339b9..52d8810eff 100644 --- a/tools/build.py +++ b/tools/build.py @@ -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: diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index c95b1c0068..a81a8e18b0 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -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