From 464edc6e6636c01521b46ec64134b90c7e7ced11 Mon Sep 17 00:00:00 2001 From: Kazuhito Hagio Date: Fri, 19 Feb 2021 14:43:55 +0900 Subject: [PATCH 2/6] Makefile: reduce crash build log Currently the verbose output of tar command when extracting the GDB source files occupies more than the half of crash build log. It is not so helpful and makes the build log longer needlessly especially on CI build test. Let's stop it. Also reduce about 600 lines of crash build log with wget's "--progress=dot:mega" option when stderr is not a tty. Signed-off-by: Kazuhito Hagio --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f66eba7418d1..b3c0d3a7f75b 100644 --- a/Makefile +++ b/Makefile @@ -258,8 +258,9 @@ gdb_unzip: @if [ ! -f ${GDB}.tar.gz ] && [ ! -f /usr/bin/wget ]; then \ echo /usr/bin/wget is required to download ${GDB}.tar.gz; echo; exit 1; fi @if [ ! -f ${GDB}.tar.gz ] && [ -f /usr/bin/wget ]; then \ - wget http://ftp.gnu.org/gnu/gdb/${GDB}.tar.gz; fi - @tar --exclude-from gdb.files -xvzmf ${GDB}.tar.gz + [ ! -t 2 ] && WGET_OPTS="--progress=dot:mega"; \ + wget $$WGET_OPTS http://ftp.gnu.org/gnu/gdb/${GDB}.tar.gz; fi + @tar --exclude-from gdb.files -xzmf ${GDB}.tar.gz @make --no-print-directory gdb_patch gdb_patch: -- 2.29.2