Skip to content

Commit

Permalink
Makefile: reduce crash build log
Browse files Browse the repository at this point in the history
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 <k-hagio-ab@nec.com>
  • Loading branch information
k-hagio committed Feb 22, 2021
1 parent a52f630 commit 464edc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 464edc6

Please sign in to comment.