tools/Makefile.host: Initialize Q by inspecting V

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-04-19 19:52:24 +08:00 committed by patacongo
parent 95e5506637
commit 816f624819
3 changed files with 15 additions and 2 deletions

View File

@ -38,6 +38,19 @@ TOPDIR ?= $(CURDIR)/..
-include $(TOPDIR)/Make.defs
include ${TOPDIR}/tools/Config.mk
# Control build verbosity
#
# V=1,2: Enable echo of commands
# V=2: Enable bug/verbose options in tools and scripts
ifeq ($(V),1)
export Q :=
else ifeq ($(V),2)
export Q :=
else
export Q := @
endif
# Check the endian-ness of the target
# Define HOSTCC on the make command line if it differs from these defaults

View File

@ -115,7 +115,7 @@ else
if [ -x ${KCONFIG2HTML2} ]; then
KCONFIG2HTML=${KCONFIG2HTML2}
else
make -C ${KCONFIG2MAKEDIR} -f ${KCONFIG2MAKEFILE} ${KCONFIG2HTML_TARGET} || \
make -C ${KCONFIG2MAKEDIR} -f ${KCONFIG2MAKEFILE} ${KCONFIG2HTML_TARGET} 1>/dev/null || \
{ echo "ERROR: make ${KCONFIG2HTML1} failed" ; exit 1 ; }
fi
fi

View File

@ -125,7 +125,7 @@ else
if [ -x ${CMPCONFIG2} ]; then
CMPCONFIG=${CMPCONFIG2}
else
make -C ${CMPCONFIGMAKEDIR} -f ${CMPCONFIGMAKEFILE} ${CMPCONFIG_TARGET} || \
make -C ${CMPCONFIGMAKEDIR} -f ${CMPCONFIGMAKEFILE} ${CMPCONFIG_TARGET} 1>/dev/null || \
{ echo "ERROR: make ${CMPCONFIG1} failed" ; exit 1 ; }
fi
fi