fix KBUILD_VERBOSE if V is unset
[openwrt.org/openwrt.git] / include / verbose.mk
blob:a/include/verbose.mk -> blob:b/include/verbose.mk
--- a/include/verbose.mk
+++ b/include/verbose.mk
@@ -9,7 +9,10 @@
 NO_TRACE_MAKE:=$(MAKE) V=99
 
 ifndef KBUILD_VERBOSE
-  KBUILD_VERBOSE=$(V)
+  KBUILD_VERBOSE=0
+  ifdef V
+    KBUILD_VERBOSE=$(V)
+  endif
 endif
 
 ifneq ($(KBUILD_VERBOSE),99)

comments