Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp770012ybc; Sat, 16 Nov 2019 08:22:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxblyV9UPqYoNxnDrpIrlMsXFjEPyJu9+qfIcVDruWyqtv0fvQdPAhJUte29vTBAw52Hz8c X-Received: by 2002:adf:fb0b:: with SMTP id c11mr22354487wrr.50.1573921374127; Sat, 16 Nov 2019 08:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921374; cv=none; d=google.com; s=arc-20160816; b=FJF4oeqs1c6rRQlUZhA2Y2B5/LC6AcsOYC032Vm2k0K+7nF81WrlN9/gAZI5KiMaOQ vSSVSY1nhlDKCUNSSdFLbAe7S0WJuR+wluEEf0YG7dbpufGAKiY5i70X5TohZ8Bd2pxL +7edDfJc9/Gv+Tx1IFfMvyyRQKCJ/5QaooSMW3tq+x8ScX9yeRjy8tBmUxqqb2M1/U0B ZXJSt0gk4zIGFsLLVNKSdGbyOvUPoNFKF1jM77uBQtMUrp2j5tmVdITy1xq9Z+M2KMFZ nI8NzMAQHaddaOj0dQ/f7TulZDv+r4HVnCqi0oBZAx9PEkXW5BohZ0gWZiOMNUboBNrH kl9w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vDDnXObKDUq1/ulsx9a7TBALNaYAZltxaJ1rrQ5pFaQ=; b=SoVi2tSrj2g5E1DC4MJiSJGJ2BJ7W6xQhF3NaZuhWAERjXPadP6V4z+EmgN8vzd3Y1 7F5NQXNjLB+TxPI6GqOxs6Ir+ZOjU6Wqf4JpopE7Cq/sWb2SGH95AL0C5YGEZ9jQRnxi LUF2FHvO4B81spH/aDSD1NoNeuxyuqPTX0VwPbJEPKQ/cvKMBt4I3dCS7dT1V9imT4Nq jWQe6Q0bIJMrNiWJFajeYBHWLER5yMMYg3e4QzaGwpEDJo9Ok8evzBMt/hQgFYqbX5rJ ovTttWE9Eh42dg3n3aARUqesyxvH+OfwEOToBP/8DMcLp5/YWxCycwWHHYWM4iY7Ggly 5oqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rE991r6Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si7967999edj.310.2019.11.16.08.22.29; Sat, 16 Nov 2019 08:22:54 -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=rE991r6Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728452AbfKPQUM (ORCPT + 99 others); Sat, 16 Nov 2019 11:20:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:49634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728957AbfKPPoi (ORCPT ); Sat, 16 Nov 2019 10:44:38 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E7FA520729; Sat, 16 Nov 2019 15:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919078; bh=nJ49gYhEL/vKBChnulon0sgeTedMmKmQ57sKJFu4eRw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rE991r6ZteMSV1ziuzuek/rKGlmCvpbAOGMJVOfdoAOJpU2FzMhQurjUKCBB0YCaD cc+CfconVlqqYlw+7T9ynFl3vjy3vFVkhWLLYUt+HOutZ7x2N0ekmPPb6Cwgn1fC6N 7j6KwxH8cdG5knaBjrMqEzFQbr2SEv7uRLS4bwy0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Joel Stanley , Michael Ellerman , Sasha Levin , linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 145/237] selftests/powerpc/signal: Fix out-of-tree build Date: Sat, 16 Nov 2019 10:39:40 -0500 Message-Id: <20191116154113.7417-145-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit 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(-) diff --git a/tools/testing/selftests/powerpc/signal/Makefile b/tools/testing/selftests/powerpc/signal/Makefile index 1fca25c6ace06..209a958dca127 100644 --- a/tools/testing/selftests/powerpc/signal/Makefile +++ b/tools/testing/selftests/powerpc/signal/Makefile @@ -1,15 +1,10 @@ # 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 top_srcdir = ../../../../.. include ../../lib.mk -clean: - rm -f $(TEST_PROGS) *.o +$(TEST_GEN_PROGS): ../harness.c ../utils.c signal.S -- 2.20.1