Received: by 10.192.165.148 with SMTP id m20csp4295435imm; Mon, 30 Apr 2018 15:48:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrFOpDdjPNsMAVd3TbqGQhCcdAYq4HmG6ZkjMnee3yx5xSw52zrBTEnd7NlTFt3sqC8kawv X-Received: by 2002:a17:902:d808:: with SMTP id a8-v6mr14107287plz.177.1525128508785; Mon, 30 Apr 2018 15:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525128508; cv=none; d=google.com; s=arc-20160816; b=kcrzyleu1pKwnkGevqD1xH659Gr1/Adr3BSFjDoVcSaafuvCwNnZ9wl1VrfAbH/dvS fWcuz2Cl6ABADVZe8rq8RX8J4mfskT0rxMDdgG4EA13AK677nykgwvGfwAkCMpfIPMBm Ncd1MUo0sV4yQdaiEIx6AxLQRxlYvoUzZ6X8BMvU9xOiN5BaY7cBM88izR3Sen7M8Nyv /TDfr43Ie/q1zCQv1yYzD81ROH+jzvfMlCsJSkm6wSXvUi93Engc/LfzxQcn3dMhgD6K vHZfgqxozEoHkAS6eCp9YfNiPIe9wafVWZj2ZZJdMTJXhh8n61ONhbDRhiSigCZhb0+9 G+iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=+dBLMG1hOr2S2n6Slp6Vai+9vS8DyoNe+gkWKNSR8lI=; b=LO0TG84vI/rdXY6+MNZpEqQdkFMPlJP+hm/7cpfCZ6t1aVBF7cXF67zBmwA1thMJ72 2igd6QGlV/AMR7IFFF6Jeyxt8BqVfikWBrWI95B1XWDZBa8DI4PRfICENDcV59Q873i0 ct0K4AQn7PXV6cvTsAZbhlY3vBOk0OpvpWdjC7hS9e2mjTF41ODYleLFpqzkTzob35n8 /nxyLWPzQ2dBgC6VOiPFroPT2ni24Dgj9gZfYAC5AXxJ9wRGESpdVebvNXEqIj9qTDms 7DidRbvSfA/1hT7yC83xkmj5udMKXZivjITvvK2Sw3hKjJ/5eFmiAA3wmYZJbwzbfEDI Etgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8-v6si6939524pgs.456.2018.04.30.15.48.14; Mon, 30 Apr 2018 15:48:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755838AbeD3Wq0 (ORCPT + 99 others); Mon, 30 Apr 2018 18:46:26 -0400 Received: from mail.efficios.com ([167.114.142.138]:53174 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755451AbeD3Wor (ORCPT ); Mon, 30 Apr 2018 18:44:47 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id D5B211A6338; Mon, 30 Apr 2018 18:44:46 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id kogVuIlWUMW5; Mon, 30 Apr 2018 18:44:46 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id EA33D1A630A; Mon, 30 Apr 2018 18:44:45 -0400 (EDT) X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3cxv0ebOJtvT; Mon, 30 Apr 2018 18:44:45 -0400 (EDT) Received: from thinkos.internal.efficios.com (192-222-157-41.qc.cable.ebox.net [192.222.157.41]) by mail.efficios.com (Postfix) with ESMTPSA id 89A301A62EE; Mon, 30 Apr 2018 18:44:45 -0400 (EDT) From: Mathieu Desnoyers To: Peter Zijlstra , "Paul E . McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.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 , Joel Fernandes , Mathieu Desnoyers , linux-kselftest@vger.kernel.org Subject: [PATCH 09/14] selftests: lib.mk: Introduce OVERRIDE_TARGETS Date: Mon, 30 Apr 2018 18:44:28 -0400 Message-Id: <20180430224433.17407-10-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> References: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Shuah Khan 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: linux-kselftest@vger.kernel.org CC: linux-api@vger.kernel.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 195e9d4739a9..9fd57efae439 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -106,6 +106,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 $@ @@ -114,5 +117,6 @@ $(OUTPUT)/%.o:%.S $(OUTPUT)/%:%.S $(LINK.S) $^ $(LDLIBS) -o $@ +endif .PHONY: run_tests all clean install emit_tests -- 2.11.0