diff --git a/tools/Config.mk b/tools/Config.mk index 77f33579e1..369647ab14 100644 --- a/tools/Config.mk +++ b/tools/Config.mk @@ -47,6 +47,19 @@ ifeq ($(CONFIG_WINDOWS_NATIVE),y) export SHELL=cmd endif +# 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 + # These are configuration variables that are quoted by configuration tool # but which must be unquoted when used in the build system. diff --git a/tools/Makefile.host b/tools/Makefile.host index 73a35fea54..09af21700f 100644 --- a/tools/Makefile.host +++ b/tools/Makefile.host @@ -22,19 +22,6 @@ 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 diff --git a/tools/Makefile.unix b/tools/Makefile.unix index eab40d2d75..57a6caa939 100644 --- a/tools/Makefile.unix +++ b/tools/Makefile.unix @@ -61,19 +61,6 @@ else .PHONY: $(TOPDIR)/.version endif -# 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 - # Process architecture and board-specific directories ARCH_DIR = arch/$(CONFIG_ARCH) diff --git a/tools/Makefile.win b/tools/Makefile.win index 74bab777ea..92c157083c 100644 --- a/tools/Makefile.win +++ b/tools/Makefile.win @@ -50,19 +50,6 @@ CONFIG_VERSION_MINOR ?= 0 CONFIG_VERSION_PATCH ?= 0 CONFIG_VERSION_BUILD ?= "0" -# 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 - # Process architecture and board-specific directories ARCH_DIR = arch\$(CONFIG_ARCH)