From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shuah Khan Subject: Re: [PATCH update for 4.15 1/3] selftests: lib.mk: Introduce OVERRIDE_TARGETS Date: Wed, 22 Nov 2017 08:16:06 -0700 Message-ID: <48e64ffd-4936-74cf-aaee-c383fc75a97f@kernel.org> References: <20171121141900.18471-1-mathieu.desnoyers@efficios.com> <20171121221933.25959-1-mathieu.desnoyers@efficios.com> Reply-To: shuah-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20171121221933.25959-1-mathieu.desnoyers-vg+e7yoeK/dWk0Htik3J/w@public.gmane.org> Content-Language: en-US Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Mathieu Desnoyers , Peter Zijlstra , "Paul E . McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , linux-kselftest-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Shuah Khan , Shuah Khan List-Id: linux-api@vger.kernel.org On 11/21/2017 03:19 PM, Mathieu Desnoyers wrote: > Introduce OVERRIDE_TARGETS to allow tests to express dependencies on > header files and .so, which require to override the selftests lib.mk > targets. > > Signed-off-by: Mathieu Desnoyers > CC: Russell King > CC: Catalin Marinas > CC: Will Deacon > CC: Thomas Gleixner > CC: Paul Turner > CC: Andrew Hunter > CC: Peter Zijlstra > CC: Andy Lutomirski > CC: Andi Kleen > CC: Dave Watson > CC: Chris Lameter > CC: Ingo Molnar > CC: "H. Peter Anvin" > CC: Ben Maurer > CC: Steven Rostedt > CC: "Paul E. McKenney" > CC: Josh Triplett > CC: Linus Torvalds > CC: Andrew Morton > CC: Boqun Feng > CC: Shuah Khan > CC: linux-kselftest-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > CC: linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > --- > tools/testing/selftests/lib.mk | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk > index 5bef05d6ba39..441d7bc63bb7 100644 > --- a/tools/testing/selftests/lib.mk > +++ b/tools/testing/selftests/lib.mk > @@ -105,6 +105,9 @@ COMPILE.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c > LINK.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) > endif > > +# Selftest makefiles can override those targets by setting > +# OVERRIDE_TARGETS = 1. > +ifeq ($(OVERRIDE_TARGETS),) > $(OUTPUT)/%:%.c > $(LINK.c) $^ $(LDLIBS) -o $@ > > @@ -113,5 +116,6 @@ $(OUTPUT)/%.o:%.S > > $(OUTPUT)/%:%.S > $(LINK.S) $^ $(LDLIBS) -o $@ > +endif > > .PHONY: run_tests all clean install emit_tests > Thanks for splitting this patch. It will make it easier since it is kselftest framework change. Acked-by: Shuah Khan thanks, -- Shuah