projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
qos-scripts: replace sfq/red with fq_codel - massively improves latency under load
[openwrt.git]
/
include
/
verbose.mk
diff --git
a/include/verbose.mk
b/include/verbose.mk
index 9fe27ced52f1324adcfba16cdb84d50f65c3089b..2e8ace442ec74c365be87cc2a85aa240ee38443d 100644
(file)
--- a/
include/verbose.mk
+++ b/
include/verbose.mk
@@
-5,16
+5,23
@@
# See /LICENSE for more information.
#
# See /LICENSE for more information.
#
-ifeq ($(NO_TRACE_MAKE),)
-NO_TRACE_MAKE := $(MAKE) V=99
-export NO_TRACE_MAKE
+ifndef OPENWRT_VERBOSE
+ OPENWRT_VERBOSE:=
+endif
+ifeq ("$(origin V)", "command line")
+ OPENWRT_VERBOSE:=$(V)
endif
endif
-if
ndef KBUILD_VERBOSE
- KBUILD_VERBOSE:=0
+if
eq ($(OPENWRT_VERBOSE),1)
+ OPENWRT_VERBOSE:=w
endif
endif
-ifeq ("$(origin V)", "command line")
- KBUILD_VERBOSE:=$(V)
+ifeq ($(OPENWRT_VERBOSE),99)
+ OPENWRT_VERBOSE:=s
+endif
+
+ifeq ($(NO_TRACE_MAKE),)
+NO_TRACE_MAKE := $(MAKE) V=s$(OPENWRT_VERBOSE)
+export NO_TRACE_MAKE
endif
ifeq ($(IS_TTY),1)
endif
ifeq ($(IS_TTY),1)
@@
-24,7
+31,7
@@
ifeq ($(IS_TTY),1)
endif
endif
endif
endif
-if
neq ($(KBUILD_VERBOSE),99
)
+if
eq ($(findstring s,$(OPENWRT_VERBOSE)),
)
define MESSAGE
printf "$(_Y)%s$(_N)\n" "$(1)" >&8
endef
define MESSAGE
printf "$(_Y)%s$(_N)\n" "$(1)" >&8
endef
@@
-40,13
+47,9
@@
ifneq ($(KBUILD_VERBOSE),99)
))
SUBMAKE=$(MAKE)
else
))
SUBMAKE=$(MAKE)
else
- ifeq ($(KBUILD_VERBOSE),0)
- SILENT:=>/dev/null 2>&1
- else
- SILENT:=
- endif
+ SILENT:=>/dev/null $(if $(findstring w,$(OPENWRT_VERBOSE)),,2>&1)
export QUIET:=1
export QUIET:=1
- SUBMAKE=cmd() { $(SILENT) $(MAKE) -s $$* < /dev/null || { echo "make $$*: build failed. Please re-run make with V=
99
to see what's going on"; false; } } 8>&1 9>&2; cmd
+ SUBMAKE=cmd() { $(SILENT) $(MAKE) -s $$* < /dev/null || { echo "make $$*: build failed. Please re-run make with V=
s
to see what's going on"; false; } } 8>&1 9>&2; cmd
endif
.SILENT: $(MAKECMDGOALS)
endif
.SILENT: $(MAKECMDGOALS)