From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758846AbbCDKTk (ORCPT ); Wed, 4 Mar 2015 05:19:40 -0500 Received: from ozlabs.org ([103.22.144.67]:51740 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755057AbbCDKTg (ORCPT ); Wed, 4 Mar 2015 05:19:36 -0500 From: Michael Ellerman To: shuahkh@osg.samsung.com Cc: , davej@codemonkey.org.uk, mmarek@suse.cz, linux-api@vger.kernel.org Subject: [PATCH] kbuild: Don't pass -rR to selftest makefiles Date: Wed, 4 Mar 2015 21:19:22 +1100 Message-Id: <1425464362-28876-1-git-send-email-mpe@ellerman.id.au> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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