Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6017308ybc; Wed, 27 Nov 2019 13:28:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxCqkDiS3awNR4vDv38r9hFaQPn7Yb2nvUJyE1zBbKc6+L73Scw/8EKWPVdMIWpw/n4wYZJ X-Received: by 2002:a17:906:b7c6:: with SMTP id fy6mr52037849ejb.90.1574890129489; Wed, 27 Nov 2019 13:28:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890129; cv=none; d=google.com; s=arc-20160816; b=WWNPf9dVVnyCWNrzaUsGoJ72ubkd8B5pN0Psww8lRqbCmwvbeSRZCFleOOw++hyvFg CvJ7oPrLChBVJDrZ1mOyvgjWxoQOauM2rUrye1PcbQTM80wpEL4wAZV/WYp3yO4zlGp2 gvP+iNeCV93G7stjlO09bHBioYSd+aLoDqUK0tiDf9L1RqCUfHpdTKkheSKTVTCCpH3u +MimyOZJ0Ls1fEWuhbs3ET4KxaeGnN3W0HMZRE1HlerWVSd7bnOui+zzXEWfb7TOJZdy KJK2x8U75A3twAEl7Nzn/xMMkgeqfo4JQBhjrugcWIkm421qOG+IoQsaaI/wUG8xUTL9 7fUQ== 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=Mxdtb8HSF0ZRCZUpniABSnvtbJK6m8s8oBP+mfHbUfU=; b=JwZkJO38OdgF5tR4p+ggoxvFrniacUH2lGnxJYGFszvMG6KbDvZNmlCbScr/owBBYL W5Gs3eUoCv3e/ROgyqBqp2NwOk4B6bKSTsgM1lRu3rkVbLWnz0OJx3hBWLdH9VLDkVI8 ynxK42ioe1Ub5IiheD4nUPbaZbfvnMiL1lxE/kAVL6k59e8gMIFSPJJtFxyemU4cl8Py +Vv1fysZvzDMVC3bMtWT5MKY56y2XT5C/HpIS1c4BAznH1af096MzZXggHdUtdf4JP0T IoJGtBryS/hlJe0mUxwEdtUXUwlw1amb6c4JQJolY2uSG3y4zgpuUr44mryPNZp9u1T+ t64A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CQ8rZ9Z4; 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 s46si13089052edd.336.2019.11.27.13.28.26; Wed, 27 Nov 2019 13:28:49 -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=CQ8rZ9Z4; 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 S1731779AbfK0VZZ (ORCPT + 99 others); Wed, 27 Nov 2019 16:25:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:54196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731205AbfK0VBp (ORCPT ); Wed, 27 Nov 2019 16:01:45 -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 61532215A5; Wed, 27 Nov 2019 21:01:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888504; bh=8NzhWQdmgAYi75Syl7w/F0X2VA0psKoEI0KYAzgnHuw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CQ8rZ9Z4zFWHNHbmyEe8S4g8m+1Jwfhrl4GDhMgqhpNVjJ6Xw0R41dxSp25Gobpqz CMIIEq6lhoEgLyjmLLl39PBf+w5zH1TaKYoSptWfI8fs299ZKls5oOT8tXBdjXEOre zJSjAHKeogJlUDWcDA69dcA4xVweLIYJqHcC58b0= 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.19 161/306] selftests/powerpc/ptrace: Fix out-of-tree build Date: Wed, 27 Nov 2019 21:30:11 +0100 Message-Id: <20191127203127.258270925@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: Joel Stanley [ Upstream commit c39b79082a38a4f8c801790edecbbb4d62ed2992 ] 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 ptrace-pkey and core-pkey rules to use $(OUTPUT). Signed-off-by: Joel Stanley Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- tools/testing/selftests/powerpc/ptrace/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tools/testing/selftests/powerpc/ptrace/Makefile b/tools/testing/selftests/powerpc/ptrace/Makefile index 923d531265f8c..9f9423430059e 100644 --- a/tools/testing/selftests/powerpc/ptrace/Makefile +++ b/tools/testing/selftests/powerpc/ptrace/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -TEST_PROGS := ptrace-gpr ptrace-tm-gpr ptrace-tm-spd-gpr \ +TEST_GEN_PROGS := ptrace-gpr ptrace-tm-gpr ptrace-tm-spd-gpr \ ptrace-tar ptrace-tm-tar ptrace-tm-spd-tar ptrace-vsx ptrace-tm-vsx \ ptrace-tm-spd-vsx ptrace-tm-spr ptrace-hwbreak ptrace-pkey core-pkey \ perf-hwbreak @@ -7,14 +7,9 @@ TEST_PROGS := ptrace-gpr ptrace-tm-gpr ptrace-tm-spd-gpr \ top_srcdir = ../../../../.. include ../../lib.mk -all: $(TEST_PROGS) - CFLAGS += -m64 -I../../../../../usr/include -I../tm -mhtm -fno-pie -ptrace-pkey core-pkey: child.h -ptrace-pkey core-pkey: LDLIBS += -pthread - -$(TEST_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h +$(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: child.h +$(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: LDLIBS += -pthread -clean: - rm -f $(TEST_PROGS) *.o +$(TEST_GEN_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h -- 2.20.1