Skip to content
Permalink
Browse files

scripts: fix up west build verbosity levels

Adjust them so "west build -v" prints ZEPHYR_BASE and any CMake
commands, but none of the other more esoteric bits of information.

Signed-off-by: Marti Bolivar <marti.bolivar@nordicsemi.no>
  • Loading branch information...
mbolivar authored and nashif committed May 1, 2019
1 parent bbe890a commit a1ef6962ae819d00de483b0f4b126200f7c9f306
Showing with 7 additions and 5 deletions.
  1. +7 −5 scripts/west_commands/build.py
@@ -144,8 +144,8 @@ def do_add_parser(self, parser_adder):

def do_run(self, args, remainder):
self.args = args # Avoid having to pass them around
log.dbg('args: {} remainder: {}'.format(args, remainder,
level=log.VERBOSE_EXTREME))
log.dbg('args: {} remainder: {}'.format(args, remainder),
level=log.VERBOSE_EXTREME)
# Store legacy -s option locally
source_dir = self.args.source_dir
self._parse_remainder(remainder)
@@ -155,7 +155,8 @@ def do_run(self, args, remainder):
source_dir, self.args.source_dir))
self.args.source_dir = source_dir
log.dbg('source_dir: {} cmake_opts: {}'.format(self.args.source_dir,
self.args.cmake_opts))
self.args.cmake_opts),
level=log.VERBOSE_EXTREME)
self._sanity_precheck()
self._setup_build_dir()

@@ -172,7 +173,8 @@ def do_run(self, args, remainder):
self.auto_pristine = (pristine == 'auto')

log.dbg('pristine: {} auto_pristine: {}'.format(pristine,
self.auto_pristine))
self.auto_pristine),
level=log.VERBOSE_VERY)
if is_zephyr_build(self.build_dir):
if pristine == 'always':
self._run_pristine()
@@ -385,7 +387,7 @@ def _run_cmake(self, board, origin, cmake_opts):
"'west config build.board_warn false'")

if not self.run_cmake:
log.dbg('not running cmake; build system is present')
log.dbg('Not generating a build system; one is present.')
return

if board is not None and origin != 'CMakeCache.txt':

0 comments on commit a1ef696

Please sign in to comment.
You can’t perform that action at this time.