NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/57584: Running build.sh with -N 3 or -N 4 causes debug logging to be included in the MKVARS shell variable in distrib/sets/sets.subr



On Tue, 29 Aug 2023, Christos Zoulas wrote:


I think it is a lot simpler to not generate the echo's in the first place :-)

env MAKEVERBOSE=4 make -f mkvars.mk mkvars MAKEVERBOSE=0

christos


I'm not sure setting MAKEVERBOSE has any effect when 'make' is actually the nbmake-<arch> wrapper scripts, e.g. tooldir/bin/nbmake-sparc64.

The wrapper script explicitly sets the MAKEVERBOSE environment variable and exports it to the invocation of the mkvars.mk makefile.

This in turn includes bsd.own mk which sets MAKEFLAGS based on MAKEVERBOSE.

The '@echo' commands are instructed to be loud (-d l) e.g. when MAKEVERBOSE=3 thus causing the echo debug lines to appear in the output.

I need a way to remove the '-d l' (MAKEVERBOSE=3) or '-d x' (MAKEVERBOSE=4) from the MAKEFLAGS variable.

Looking at the documentation for make it looks like it is possible to put a dash in front of the flag, e.g '-d -l' or '-d -x', but I cannot make this work.
Something like:
MKVARS="$(${MAKE} -d -l -d -x -B -f ${rundir}/mkvars.mk mkvars | ${SED} -e 's,=.*,,' | ${XARGS} )"





Home | Main Index | Thread Index | Old Index