From patchwork Wed Nov 27 20:30:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180322 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp6636972ilf; Wed, 27 Nov 2019 12:50:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxdP2EDyKfDztCNtsiVc0vwUjdax4Ju0SWl3S28pr6sWkqR1vI8hE+vlM3sYQL8ZET6X766 X-Received: by 2002:a17:906:5c0d:: with SMTP id e13mr49435790ejq.82.1574887818357; Wed, 27 Nov 2019 12:50:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574887818; cv=none; d=google.com; s=arc-20160816; b=Pb84Ph3249L8bJceH3Sem/L3sjacLucqVqSp8Ka8BV4k29EfBW0OxP5rq/TV4E1BMo T1hdzCSg0L156Hb5pCP+UGpXlxsD4i4xyH/iBWkKTNXxdR0mzKzW0nXQw2dvnN0z8taf /t1AVYPcCbpA9C2lvflwowf+/cdoDp2shPkP2ptl1mKTs5h34/N5JssjxCsMzMXr9AEu NIh//6sWJjJlB8vgDHRP97BzPw56pRwE6VUXFDaUzhad3pZiWULZ4QJHKKKPveSkjjO9 UDpAuzQNrznN7gFk9E0fNgRIFZt3t4HrKf0tqEVMUEEa19tXLtmmNIcCf992JZLA3BO0 sO8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7bia1O60XMjofHErHS4nkts/a4chNXtZulNMK/tyIdk=; b=ZFNwE7lrtqNPJidZkIwXpp/opyOyP2f5IlD4m3reOmqgV9iV1Xe228vGiSsgljJ/yS o+5QEWemWIkVFQuJjztSwG/GpYfHgqvrA2pQcltRJEbH26b4kXGMwXFf8wWkqPN5eDEx O9NfRQJzeBdfkRI+EnQiE/yXzOG2LVYS5DEPtPgGXtiY1/+UmPa/G5CuFNj6eu2vs/3l 1zePBcoCD7Id2Oxlb9hM3UdOwjL1aV1gGbYbYKSoTj6hZyBR1jgGBavorQWttvfdrDko S0xOlRobW2eKY5b/xEEfcRfLQH7K+v7YqOhw0irw3VbhWhxSL8yYcUI/gf5OO8YMtPhC ZnrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SFH2UYN7; 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 o21si11046986edt.135.2019.11.27.12.50.18; Wed, 27 Nov 2019 12:50:18 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=SFH2UYN7; 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 S1729850AbfK0UuP (ORCPT + 26 others); Wed, 27 Nov 2019 15:50:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:35984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729907AbfK0UuK (ORCPT ); Wed, 27 Nov 2019 15:50:10 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A265721843; Wed, 27 Nov 2019 20:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887810; bh=+jRBefN1uwEbzARKvRxsl294CfyeOzMo4klRHllFCY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SFH2UYN7fkXj1Jo8Zy0vWgFIRnF9knI1hMsY5raImIynlnC5Hg+IduICbHJLtb2LU me9r3TdYrNo3F5z7rncunaqGIUAQ6YLXkoElJ/SYmuciJKzlytCYkBwMH6oBVDVhoT zF9p7jlpBuRFunpU7cx5Yg1mZ0h7HLGl5Xkzji2M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joel Stanley , Michael Ellerman , Sasha Levin Subject: [PATCH 4.14 104/211] selftests/powerpc/signal: Fix out-of-tree build Date: Wed, 27 Nov 2019 21:30:37 +0100 Message-Id: <20191127203103.526628802@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203049.431810767@linuxfoundation.org> References: <20191127203049.431810767@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joel Stanley [ Upstream commit 27825349d7b238533a47e3d98b8bb0efd886b752 ] We should use TEST_GEN_PROGS, not TEST_PROGS. That tells the selftests makefile (lib.mk) that those tests are generated (built), and so it adds the $(OUTPUT) prefix for us, making the out-of-tree build work correctly. It also means we don't need our own clean rule, lib.mk does it. We also have to update the signal_tm rule to use $(OUTPUT). Signed-off-by: Joel Stanley Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- tools/testing/selftests/powerpc/signal/Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) -- 2.20.1 diff --git a/tools/testing/selftests/powerpc/signal/Makefile b/tools/testing/selftests/powerpc/signal/Makefile index a7cbd5082e271..4213978f3ee2c 100644 --- a/tools/testing/selftests/powerpc/signal/Makefile +++ b/tools/testing/selftests/powerpc/signal/Makefile @@ -1,14 +1,9 @@ # SPDX-License-Identifier: GPL-2.0 -TEST_PROGS := signal signal_tm - -all: $(TEST_PROGS) - -$(TEST_PROGS): ../harness.c ../utils.c signal.S +TEST_GEN_PROGS := signal signal_tm CFLAGS += -maltivec -signal_tm: CFLAGS += -mhtm +$(OUTPUT)/signal_tm: CFLAGS += -mhtm include ../../lib.mk -clean: - rm -f $(TEST_PROGS) *.o +$(TEST_GEN_PROGS): ../harness.c ../utils.c signal.S