Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6016608ybc; Wed, 27 Nov 2019 13:27:53 -0800 (PST) X-Google-Smtp-Source: APXvYqyrPtsmO8iPH4e7gkyZyuDfEDhj6bv5l562dfXymdHwcT/yvlJc6LOg8bBZ4Fkfc0ARajiH X-Received: by 2002:a05:6402:148f:: with SMTP id e15mr5135724edv.254.1574890073574; Wed, 27 Nov 2019 13:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890073; cv=none; d=google.com; s=arc-20160816; b=0Ky2aTkCX4+d2q0C/gHFZQJ57MrNjDHrgOJkO8gQzHzmaibFxOCuAlutXcIypMT8kJ Bd9V72CPjqc3xSMCv/5J80KHGeVXGvyQAljP12LO4L61F6ChZm0HMerre/DNj5IIGJze ThaFIaNuC2v0LP0vex1eDlAgIE3Xc5p/fB2GZgcQWWZoSTiFJ+SBF8V61+UnuSqAXsky 5hvYffPiEjX8adRfGbyqw7bSjB96VQf3fe4Kt3iEuJwKNmFg784ZdQ+ZMQHGZKSz3jZX 8eVbLWHeggD0Mbdgsh9VhXPdB3DRbm9Wi9b+eMYTHYVO8oFyTKyy7c3mpYqhppl2vuK6 czvg== 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=yWlAXe5ulxAHNAxP1x/pE/fTYlhIZSa89RaoYbty0Uc=; b=RE+fcCnL2qDSNPrn9u+F/LXF4YGJpAk5FUDU7snpCvarPWSs83+X++fqAGesVjjj2D rVwAcZC4OWAFCMCrIGabGvqCKxjBKy2tcjhrIqOOAfessGWAD3ea+1dKi1kWmsMSWxb4 PK/KbMQe75cqDz0jJHs26+m0h/0nvhP08z4fy/5azw+FxQX6qpEUf3v+qSW6vLqZpd4e i5zFI93zBzosZtSLtYNk+Y9Bf8J85enVI4Hcu5FfMWvJPljER3pMiLlkFJolkJ0X/E3P CNps2hxr3vZRKkvmuystcMwFVcXiFawXItwbc0+tmMokYekCo+MPweNdFgJJSwYNwIUN 9OHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YKzdSvct; 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 u25si12529642edt.225.2019.11.27.13.27.30; Wed, 27 Nov 2019 13:27:53 -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=YKzdSvct; 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 S1731808AbfK0VB5 (ORCPT + 99 others); Wed, 27 Nov 2019 16:01:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:54430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729757AbfK0VBz (ORCPT ); Wed, 27 Nov 2019 16:01:55 -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 7DF8921741; Wed, 27 Nov 2019 21:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888515; bh=VPtjYK0w0uuloqDArLaAMixd8sNqxlmnTNrSoitDDRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YKzdSvct2Kt3JVpO1lSp67ytYywdt52Ivq9RhpJJNa6kkjeXJDdY+AFvm02l0OFDC ojZpsVMxESLNis9SYCVOzspxGjfubBrKbPL5qMjuJFPzmu6SrdtXXQzam9fXRwPL86 a9is3hgH3xRSH/dOUMUfZo63L3qbXiT+RqtvCaTw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Sasha Levin Subject: [PATCH 4.19 164/306] selftests/powerpc/cache_shape: Fix out-of-tree build Date: Wed, 27 Nov 2019 21:30:14 +0100 Message-Id: <20191127203127.433244913@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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