All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: Don't pass -rR to selftest makefiles
@ 2015-03-04 10:19 ` Michael Ellerman
  0 siblings, 0 replies; 15+ messages in thread
From: Michael Ellerman @ 2015-03-04 10:19 UTC (permalink / raw)
  To: shuahkh; +Cc: linux-kernel, davej, mmarek, linux-api

The makefiles under tools/testing/selftests are not real kbuild
makefiles, they are regular stand alone makefiles. As such they *do*
want all the standard implicit rules and variables defined.

So before calling those makefiles, filter -rR out of MAKEFLAGS.

Without this not all the selftests are built correctly when called via
the top-level Makefile.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e6a9b1b94656..da72798644fd 100644
--- a/Makefile
+++ b/Makefile
@@ -1085,7 +1085,7 @@ headers_check: headers_install
 
 PHONY += kselftest
 kselftest:
-	$(Q)$(MAKE) -C tools/testing/selftests run_tests
+	$(Q)$(MAKE) -C tools/testing/selftests MAKEFLAGS="$(filter-out rR,$(MAKEFLAGS))" run_tests
 
 # ---------------------------------------------------------------------------
 # Modules
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-03-11  0:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 10:19 [PATCH] kbuild: Don't pass -rR to selftest makefiles Michael Ellerman
2015-03-04 10:19 ` Michael Ellerman
     [not found] ` <1425464362-28876-1-git-send-email-mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
2015-03-09 14:28   ` Shuah Khan
2015-03-09 14:28     ` Shuah Khan
     [not found]     ` <54FDAE28.6050801-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-03-09 22:49       ` Shuah Khan
2015-03-09 22:49         ` Shuah Khan
     [not found]         ` <54FE2377.9040709-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-03-10 23:36           ` Michael Ellerman
2015-03-10 23:36             ` Michael Ellerman
2015-03-10 23:39             ` Shuah Khan
     [not found]               ` <54FF809F.7020205-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-03-10 23:49                 ` Michael Ellerman
2015-03-10 23:49                   ` Michael Ellerman
     [not found]                   ` <1426031386.20917.4.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
2015-03-11  0:35                     ` Shuah Khan
2015-03-11  0:35                       ` Shuah Khan
     [not found]                       ` <54FF8DC4.6000900-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-03-11  0:46                         ` Michael Ellerman
2015-03-11  0:46                           ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.