Skip to content

Commit c3cfff2

Browse files
committed
Replaces prompts starting with >>> with simple one liners. It will be later refactored to common display format via some 'print info/warn/err class'
1 parent 80745d5 commit c3cfff2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

workspace_tools/build_api.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def build_project(src_path, build_path, target, toolchain_name,
4444

4545
if name is None:
4646
name = basename(src_paths[0])
47-
toolchain.info("\n>>> BUILD PROJECT: %s (%s, %s)" % (name.upper(), target.name, toolchain_name))
47+
toolchain.info("Building project %s (%s, %s)" % (name.upper(), target.name, toolchain_name))
4848

4949
# Scan src_path and libraries_paths for resources
5050
resources = toolchain.scan_resources(src_paths[0])
@@ -107,7 +107,7 @@ def build_library(src_paths, build_path, target, toolchain_name,
107107

108108
# The first path will give the name to the library
109109
name = basename(src_paths[0])
110-
toolchain.info("\n>>> BUILD LIBRARY %s (%s, %s)" % (name.upper(), target.name, toolchain_name))
110+
toolchain.info("Building library %s (%s, %s)" % (name.upper(), target.name, toolchain_name))
111111

112112
# Scan Resources
113113
resources = []
@@ -180,7 +180,7 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, clean=F
180180
mkdir(TMP_PATH)
181181

182182
# CMSIS
183-
toolchain.info("\n>>> BUILD LIBRARY %s (%s, %s)" % ('CMSIS', target.name, toolchain_name))
183+
toolchain.info("Building library %s (%s, %s)"% ('CMSIS', target.name, toolchain_name))
184184
cmsis_src = join(MBED_TARGETS_PATH, "cmsis")
185185
resources = toolchain.scan_resources(cmsis_src)
186186

@@ -191,7 +191,7 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, clean=F
191191
toolchain.copy_files(objects, BUILD_TOOLCHAIN)
192192

193193
# mbed
194-
toolchain.info("\n>>> BUILD LIBRARY %s (%s, %s)" % ('MBED', target.name, toolchain_name))
194+
toolchain.info("Building library %s (%s, %s)" % ('MBED', target.name, toolchain_name))
195195

196196
# Common Headers
197197
toolchain.copy_files(toolchain.scan_resources(MBED_API).headers, MBED_LIBRARIES)
@@ -293,7 +293,7 @@ def static_analysis_scan(target, toolchain_name, CPPCHECK_CMD, CPPCHECK_MSG_FORM
293293
mkdir(TMP_PATH)
294294

295295
# CMSIS
296-
toolchain.info(">>>> STATIC ANALYSIS FOR %s (%s, %s)" % ('CMSIS', target.name, toolchain_name))
296+
toolchain.info("Static analysis for %s (%s, %s)" % ('CMSIS', target.name, toolchain_name))
297297
cmsis_src = join(MBED_TARGETS_PATH, "cmsis")
298298
resources = toolchain.scan_resources(cmsis_src)
299299

@@ -331,7 +331,7 @@ def static_analysis_scan(target, toolchain_name, CPPCHECK_CMD, CPPCHECK_MSG_FORM
331331
# =========================================================================
332332

333333
# MBED
334-
toolchain.info(">>> STATIC ANALYSIS FOR %s (%s, %s)" % ('MBED', target.name, toolchain_name))
334+
toolchain.info("Static analysis for %s (%s, %s)" % ('MBED', target.name, toolchain_name))
335335

336336
# Common Headers
337337
toolchain.copy_files(toolchain.scan_resources(MBED_API).headers, MBED_LIBRARIES)
@@ -417,7 +417,7 @@ def static_analysis_scan_library(src_paths, build_path, target, toolchain_name,
417417

418418
# The first path will give the name to the library
419419
name = basename(src_paths[0])
420-
toolchain.info(">>> STATIC ANALYSIS FOR LIBRARY %s (%s, %s)" % (name.upper(), target.name, toolchain_name))
420+
toolchain.info("Static analysis for library %s (%s, %s)" % (name.upper(), target.name, toolchain_name))
421421

422422
# Scan Resources
423423
resources = []

0 commit comments

Comments
 (0)