Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp734950ybc; Sat, 16 Nov 2019 07:47:19 -0800 (PST) X-Google-Smtp-Source: APXvYqx+pj+l0LniIwcQYp5bdEJ8zdFMXRvpc7Pdj7ypHjk31ZqCciOnv866HFUii372WAsCoSml X-Received: by 2002:a17:906:b80f:: with SMTP id dv15mr11015580ejb.188.1573919239004; Sat, 16 Nov 2019 07:47:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919238; cv=none; d=google.com; s=arc-20160816; b=k33VH1EEoFazn9w7DUQ8gtesU2rkhMNZoyO33kJIBkyhzx/0BUh2whIHlDkuRpRoKS AN8OG7RN0Y2A7IdTLZT0ZA/4KAEThPtzzRQTw/CRXzpR7xb0cTvJba1mEBWw1Sk56rii PJn11k4/76rQNO7YXgPIDmxjKhKPhSxOqHDo0iIMbnAligijXXvvIZf/wOUnUey7lOed l6r2leypUvsIP52yiYRNNSoBacfTisk1lRjw+lY8hIbiMmEJee0eJc9c5ht01G3ZIxjo 7Aajx2siT+v+7ORmdRUAls7cuUoxFpUzf/PVpLoPqI/1wxj7j8kS8EG4kAdm5MNnO/KF 30NQ== 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=yWlAXe5ulxAHNAxP1x/pE/fTYlhIZSa89RaoYbty0Uc=; b=DQpRbDQBGbKNbS652mDUA6xXiGMwSPorz8XIcNY+hu94lZIGHQtaCTr7FStZdtjTRT fufuQ5nQxnYwicnLtwFAh83Z5YFIl4zTjiqnbdP7tokjEPuHLpd9ATdgm/0DlBkUncWc Issy7YfRmRgn/+UAhaFJuSNs9UtVRNaRTqUwyUd6lH923lydqYz8BJZmB9Yn7D6AWoEA 6+Q/HpnAhPmKCJpVgiGBpv2TIhaa/Dk2ecNVbnMn5KhhJFU0Zn6X15u1XuL+fVQsH6e6 6Bgh4Gnildv7j2i3ufLOqXS2Stlo71Q/08RvobifKsT5xBQqJXy6LSMHYlcDxXwp/OZj v4kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y3HiT4r4; 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 j15si8424216ejv.335.2019.11.16.07.46.54; Sat, 16 Nov 2019 07:47: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=y3HiT4r4; 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 S1729071AbfKPPos (ORCPT + 99 others); Sat, 16 Nov 2019 10:44:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:49848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729059AbfKPPop (ORCPT ); Sat, 16 Nov 2019 10:44:45 -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 912A12073B; Sat, 16 Nov 2019 15:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919085; bh=VPtjYK0w0uuloqDArLaAMixd8sNqxlmnTNrSoitDDRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y3HiT4r4jfdNC9nCFT+soqsTcb8hytpY3lfXCn0aOIvRb8+67AkmEvzfJmoRiFmf/ ofEZ4QCpdGWKjiif5iQII9OO6dY6Juizj432KMr5Pqk8S6ZHw28IDPJZ8LU9+9cEhA eotwILpYpNfSDeOPNh15QUgWOv1VFs1ZecGWBDxw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Michael Ellerman , Sasha Levin , linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 147/237] selftests/powerpc/cache_shape: Fix out-of-tree build Date: Sat, 16 Nov 2019 10:39:42 -0500 Message-Id: <20191116154113.7417-147-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: Michael Ellerman [ Upstream commit 69f8117f17b332a68cd8f4bf8c2d0d3d5b84efc5 ] Use TEST_GEN_PROGS and don't redefine all, this makes the out-of-tree build work. We need to move the extra dependencies below the include of lib.mk, because it adds the $(OUTPUT) prefix if it's defined. We can also drop the clean rule, lib.mk does it for us. Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- tools/testing/selftests/powerpc/cache_shape/Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/powerpc/cache_shape/Makefile b/tools/testing/selftests/powerpc/cache_shape/Makefile index ede4d3dae7505..689f6c8ebcd8d 100644 --- a/tools/testing/selftests/powerpc/cache_shape/Makefile +++ b/tools/testing/selftests/powerpc/cache_shape/Makefile @@ -1,12 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 -TEST_PROGS := cache_shape - -all: $(TEST_PROGS) - -$(TEST_PROGS): ../harness.c ../utils.c +TEST_GEN_PROGS := cache_shape top_srcdir = ../../../../.. include ../../lib.mk -clean: - rm -f $(TEST_PROGS) *.o +$(TEST_GEN_PROGS): ../harness.c ../utils.c -- 2.20.1