diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-28 15:55:40 +1300 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-30 20:53:21 +0000 |
commit | 425882e0474be997976d6c9bef03213d91213c15 (patch) | |
tree | 78c91a4931a23328297bac9db87c99457309194d /zephyr/zmake | |
parent | 85fee4123f8dcc7490d1f196238c4b8de3af344b (diff) | |
download | chrome-ec-425882e0474be997976d6c9bef03213d91213c15.tar.gz |
zephyr: zmake: Move devicetree output to DEBUG
This output appears when a Kconfig or devicetree change is detected.
It the same every time and is not an error. Move it to INFO.
BUG=b:177096315
BRANCH=none
TEST=manually test by running zmake build / configure
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I585dbff4439650f031318ebd0c6c5a35c8f1ff2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2789793
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/zmake')
-rw-r--r-- | zephyr/zmake/zmake/zmake.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/zmake/zmake/zmake.py b/zephyr/zmake/zmake/zmake.py index e9ffc15006..99849f5796 100644 --- a/zephyr/zmake/zmake/zmake.py +++ b/zephyr/zmake/zmake/zmake.py @@ -30,6 +30,17 @@ def ninja_log_level_override(line, default_log_level): default_log_level: The default logging level that will be used for the line. """ + # Output lines from Zephyr that are not normally useful + # Send any lines that start with these strings to INFO + cmake_suppress = [ + '-- ', # device tree messages + 'Loaded configuration', + 'Including boilerplate', + 'Parsing ', + 'No change to configuration', + 'No change to Kconfig header', + ] + if line.startswith("FAILED: "): return logging.CRITICAL @@ -48,6 +59,9 @@ def ninja_log_level_override(line, default_log_level): # dopey ninja puts errors on stdout, so fix that. It does not look # likely that it will be fixed upstream: # https://github.com/ninja-build/ninja/issues/1537 + # Try to drop output about the device tree + elif any(line.startswith(x) for x in cmake_suppress): + return logging.INFO elif line.split()[0] in ["Memory", "FLASH:", "SRAM:", "IDT_LIST:"]: pass else: |