summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/image.mk2
-rw-r--r--include/verbose.mk20
2 files changed, 14 insertions, 8 deletions
diff --git a/include/image.mk b/include/image.mk
index bf80e2799..ca0d688f1 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -1,5 +1,3 @@
-include $(TOPDIR)/rules.mk
-
KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
ifneq ($(CONFIG_BIG_ENDIAN),y)
diff --git a/include/verbose.mk b/include/verbose.mk
index 77a877efe..31e0cea1b 100644
--- a/include/verbose.mk
+++ b/include/verbose.mk
@@ -1,14 +1,19 @@
# OpenWrt.org 2006
# $Id:$
-ifeq ($(DUMP),)
- ifndef KBUILD_VERBOSE
- KBUILD_VERBOSE=0
- ifeq ("$(origin V)", "command line")
- KBUILD_VERBOSE=$(V)
- endif
+ifndef KBUILD_VERBOSE
+ ifeq ($(DUMP),)
+ KBUILD_VERBOSE=1
+ else
+ KBUILD_VERBOSE=99
+ endif
+ ifeq ("$(origin V)", "command line")
+ KBUILD_VERBOSE=$(V)
endif
+endif
+
+ifneq ($(KBUILD_VERBOSE),99)
ifeq ($(QUIET),1)
$(MAKECMDGOALS): trace
trace: FORCE
@@ -18,6 +23,9 @@ ifeq ($(DUMP),)
}
else
export QUIET:=1
+ ifeq ($(KBUILD_VERBOSE),0)
+ MAKE:=&>/dev/null $(MAKE)
+ endif
MAKE:=3>&1 4>&2 $(MAKE)
endif