You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/05/19 18:23:30 UTC
[incubator-nuttx] 04/06: build: Move V definition to common place
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 5e7342bcf4d005e22146c3697178243cc0ea5d78
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Tue May 19 16:26:15 2020 +0800
build: Move V definition to common place
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
tools/Config.mk | 13 +++++++++++++
tools/Makefile.host | 13 -------------
tools/Makefile.unix | 13 -------------
tools/Makefile.win | 13 -------------
4 files changed, 13 insertions(+), 39 deletions(-)
diff --git a/tools/Config.mk b/tools/Config.mk
index 77f3357..369647a 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 73a35fe..09af217 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 eab40d2..57a6caa 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 74bab77..92c1570 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)