mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6914 from 0xc0170/fix_build_notifier
build: fix notifier typo and passing to builds APIpull/7116/merge
commit
4fcaa56b77
|
@ -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:
|
||||
|
|
|
@ -383,7 +383,6 @@ class SingleTestRunner(object):
|
|||
build_mbed_libs_result = build_mbed_libs(
|
||||
T, toolchain,
|
||||
clean=clean_mbed_libs_options,
|
||||
verbose=self.opts_verbose,
|
||||
jobs=self.opts_jobs,
|
||||
report=build_report,
|
||||
properties=build_properties,
|
||||
|
@ -463,7 +462,6 @@ class SingleTestRunner(object):
|
|||
build_lib(lib_id,
|
||||
T,
|
||||
toolchain,
|
||||
verbose=self.opts_verbose,
|
||||
clean=clean_mbed_libs_options,
|
||||
jobs=self.opts_jobs,
|
||||
report=build_report,
|
||||
|
@ -509,7 +507,7 @@ class SingleTestRunner(object):
|
|||
try:
|
||||
path = build_project(test.source_dir, join(build_dir, test_id), T,
|
||||
toolchain, test.dependencies, clean=clean_project_options,
|
||||
verbose=self.opts_verbose, name=project_name, macros=MACROS,
|
||||
name=project_name, macros=MACROS,
|
||||
inc_dirs=INC_DIRS, jobs=self.opts_jobs, report=build_report,
|
||||
properties=build_properties, project_id=test_id,
|
||||
project_description=test.get_description(),
|
||||
|
|
|
@ -731,7 +731,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':
|
||||
|
@ -1083,7 +1083,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
|
||||
|
||||
|
@ -1173,7 +1173,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