Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ff35771 authored by Peter Foley's avatar Peter Foley Committed by Michal Marek
Browse files

kbuild: silence generated makefile message



This patch silences the "make -C /usr/src/git O=/usr/src/git/build/."
message shown when using the generated makefile in KBUILD_OUTDIR.

Signed-off-by: default avatarPeter Foley <pefoley2@verizon.net>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent e78e8f2d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -30,6 +30,13 @@ PATCHLEVEL = $4
lastword = \$(word \$(words \$(1)),\$(1))
makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))

ifeq ("\$(origin V)", "command line")
VERBOSE := \$(V)
endif
ifneq (\$(VERBOSE),1)
Q := @
endif

MAKEARGS := -C $1
MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir))

@@ -40,7 +47,7 @@ MAKEFLAGS += --no-print-directory
all	:= \$(filter-out all Makefile,\$(MAKECMDGOALS))

all:
	\$(MAKE) \$(MAKEARGS) \$(all)
	\$(Q)\$(MAKE) \$(MAKEARGS) \$(all)

Makefile:;