summaryrefslogtreecommitdiff
path: root/zephyr/firmware_builder.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-28 15:19:53 +1300
committerCommit Bot <commit-bot@chromium.org>2021-03-30 19:00:37 +0000
commit6f2ef7024b1dacacd4e117f781ac302c62e29cfc (patch)
tree461366e552df7147d42fdf23a4bda975752d1490 /zephyr/firmware_builder.py
parentb0a76d6b8720fbc2eaa2dee8d45a01adfd8805a4 (diff)
downloadchrome-ec-6f2ef7024b1dacacd4e117f781ac302c62e29cfc.tar.gz
zephyr: zmake: Avoid showing a backtrace on errors
The backtrace is typically only useful for people debugging zmake. Others just want to use it as a tool and the error message should be enough to explain what is going on. Add a debug flag (-D) to enable the backtrace; otherwise drop it. BUG=b:177096315 BRANCH=none TEST=manually test by running zmake with -D Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ib8425289fb057cc907d73fbddb7eee8351fb84d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788842 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/firmware_builder.py')
-rwxr-xr-xzephyr/firmware_builder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/firmware_builder.py b/zephyr/firmware_builder.py
index a3dc2f4028..7a32c45a81 100755
--- a/zephyr/firmware_builder.py
+++ b/zephyr/firmware_builder.py
@@ -41,7 +41,7 @@ def build(opts):
print('Building {}'.format(target))
rv = subprocess.run(
- ['zmake', 'configure', '-b', '-B', temp_build_dir, target],
+ ['zmake', '-D', 'configure', '-b', '-B', temp_build_dir, target],
cwd=os.path.dirname(__file__)).returncode
if rv != 0:
return rv
@@ -55,7 +55,7 @@ def test(opts):
with open(opts.metrics, 'w') as f:
f.write(json_format.MessageToJson(metrics))
- return subprocess.run(['zmake', 'testall', '--fail-fast']).returncode
+ return subprocess.run(['zmake', '-D', 'testall', '--fail-fast']).returncode
def main(args):