Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5982900ybc; Wed, 27 Nov 2019 12:52:42 -0800 (PST) X-Google-Smtp-Source: APXvYqxzFHmpinHmGuoqRLevlmyft9hdSvaieA5rYRkWatHq5Ek0PhH38QsiJW65hY5xH81CfWqm X-Received: by 2002:a17:906:a28d:: with SMTP id i13mr34625928ejz.154.1574887962547; Wed, 27 Nov 2019 12:52:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574887962; cv=none; d=google.com; s=arc-20160816; b=cMHAxZBGrIfQ6tQ6kur1inYx2Df3WuA3KnHnAUDj++bXAOuSbYK9hUghUDRtM3BUcv 1KIgObaCtRgIbZF7L+nx5v95VkgPvEKZF3/FR3+2t4KFU2O4dpn4wt1yyn0EA6cH88Q3 7jTtwDoskLHwgcGdLRo7khAnE4xh/zOjv2oEWgfmL1FwAWNB13v0PIvHB5HF5I/0xBaX fnbDGvl/7/ra3OC4MptgzEasFeVOUBY2Ia92YfwA3nElqdMAiMD9r8yvAVAv84nBkC8R 5qIAArTzzoIj55umeXHzBLqjEDEW5kqGtty05S8XwSlPfON/tUECC/yGTPsKblAlHxSp c4cw== 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=QJ0hb2mQITr7bodcXK4uD4xskZziEcKRVK6FfeBGl6k=; b=uh8PT7sjZFWJdzWnhMSwLCPzmu8iHDGa9jpoSaMmAON+r8KvXxIh2tYvnRfVVG86gH U7j9sIxiWPs+1vA2cOAsRJMGkrUefrH3DrlBGqdR6MJECQtXinpb1YS+JK4m109yvVlE 5ii2yp47qVQN2FCPNHCmRiX5i53AfnTT66hlEMzqEtCno3+Ov9vyRIoZ7haLpRop2eSv 9Tm/jn99fsNSoY+AzVyW/+TlL/30tQIH3DoBA0smB3IIzB5+NkSPXwXKAhiyS8ceaz5z FWfGYk8Y35N6snrn7yDsE2w96pTNsYXPEb1+LuMfo+x7pNM9kX7nZTO1wQ0wj9TWZ4Ta PMDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=omi2j4pA; 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 a15si12201217edu.427.2019.11.27.12.52.18; Wed, 27 Nov 2019 12:52:42 -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=omi2j4pA; 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 S1730337AbfK0UuS (ORCPT + 99 others); Wed, 27 Nov 2019 15:50:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:36118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729927AbfK0UuQ (ORCPT ); Wed, 27 Nov 2019 15:50:16 -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 5905121847; Wed, 27 Nov 2019 20:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887815; bh=9B51i506uoit8PvzKsp8Hnm676PvlawhR2kOkoqXzLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=omi2j4pAGFp0JR173ACENYnk56QFyoiERU3N04TQOTGLk7b1ZNX3zrjiqmp2wAWnS M42A+HmDSoG2Sx1VPca4N5ojWlpk47vGQqIHCu+nzZKu4pARQSM8ODTaeyPLcDs8yi ejtmO1E2uRFkhtbDLb1aWGi60lVBSHbFAWkCm+Eo= 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.14 106/211] selftests/powerpc/cache_shape: Fix out-of-tree build Date: Wed, 27 Nov 2019 21:30:39 +0100 Message-Id: <20191127203104.016375778@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 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 1be547434a49c..7e0c175b82978 100644 --- a/tools/testing/selftests/powerpc/cache_shape/Makefile +++ b/tools/testing/selftests/powerpc/cache_shape/Makefile @@ -1,11 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -TEST_PROGS := cache_shape - -all: $(TEST_PROGS) - -$(TEST_PROGS): ../harness.c ../utils.c +TEST_GEN_PROGS := cache_shape include ../../lib.mk -clean: - rm -f $(TEST_PROGS) *.o +$(TEST_GEN_PROGS): ../harness.c ../utils.c -- 2.20.1