Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2354410pxb; Mon, 20 Sep 2021 19:53:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnR0iy7J6zS491lOY8RAvKrsCKCIAk+7y11ii9RC/TxAk9FdODOEo2357imzOX68/Bl2R9 X-Received: by 2002:a5e:8e4c:: with SMTP id r12mr9207319ioo.217.1632192831446; Mon, 20 Sep 2021 19:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192831; cv=none; d=google.com; s=arc-20160816; b=0ZtFwOsyhZJg198NyFuhmzZtps3WBbp+J3sS33/zZKYBLZGzciPFMOOYaxnH9rYRUT FC5wg/UENQx1N+4Ga9KshuJnQyL3hibCgwYS9K8kUgRiU11oNfuN/ntOduGmbqlpenag vpJYrGhxM/PLROD5fnHt/pXX5uoKX9fdAGOhh8lGRwyIj0NURA6JDwfZUhEBym4ji1By MFYYcPafdNlTW+jh1s4AMXp0qfD9CbeaFICqo68wpHkButfdKmvYK7zU7lQQLGvR63Wo APgI5VcFUr9s4vNen2Pn9u2OAxQcW3ZP00sRzEcUJSDzJ/Cnk4jCVeW8T7qj/OgyrdLK Rzng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TnjDdLofVNV/oZy++oteV4SAvYDCPeM3topZsOnqQPA=; b=TCP6Jc3AynazDCcYkTRgC6MrkdYaFbQO/uJpkCuxMDuC0vu6PoGwwE4hm79/QVBkT7 dE7pfbOrlh3xocMFjACM47zGFtNGKbeGZMsL/q8UxUoWhi2i4si3lybxopv9m1SFazZ1 qe5suGw+fIUEHAO932P62M8buzv3DUf2uvBohF9hi4HXq6zxP0YU55M6EzRlFFij2mm9 WSXhxZxB4Ljh1xHkDRGr4/ecH2FHVNFTIdMvtVi9YVa5DD93HCW00G68TgLBDZxNIKk/ xIwNT550NosaemL7uI+A8fFJ57rSscFdKaCHHkxmqYwyHxMwEs5nf8KJ5+InxX95eBA3 bsSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=teejxA5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si10783569jak.17.2021.09.20.19.53.40; Mon, 20 Sep 2021 19:53:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=teejxA5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387677AbhITS6a (ORCPT + 99 others); Mon, 20 Sep 2021 14:58:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:59878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384654AbhITSsd (ORCPT ); Mon, 20 Sep 2021 14:48:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D26B6337F; Mon, 20 Sep 2021 17:34:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159255; bh=ocT6c1jhHQBjdp3TAMdERgGoc6Sxjjr/tVGyR5mrRgc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=teejxA5dgCI+EEJ6xoDMGGIq2/r6Y21R+GiX01KMuYrdd5xtD2nrNwmyQyrldzHiC 2w5wwQrMOjkLO+Ws2R7/hYg0QZx3WbeIDGsw+djQ2UZFYvGk6zgTOniAUtAUbYY5NF QYVw7wyObZPfiu2vCrKQiYOPhdyJE0tgb3kXFXv0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, James Clark , Jiri Olsa , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 5.14 148/168] tools build: Fix feature detect clean for out of source builds Date: Mon, 20 Sep 2021 18:44:46 +0200 Message-Id: <20210920163926.522631543@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: James Clark [ Upstream commit 8af52e69772d053bc7caab12ad1c59f18ef2e3e2 ] Currently the clean target when using O= isn't cleaning the feature detect output. This is because O= and OUTPUT= are set to canonical paths. For example in tools/perf/Makefile: FULL_O := $(shell cd $(PWD); readlink -f $(O) || echo $(O)) This means that OUTPUT ends in a / and most usages prepend it to a file without adding an extra /. This line that was changed adds an extra / before the 'feature' folder but not to the end, resulting in a clean command like this: rm -f /tmp/build//featuretest-all.bin ... After the change the clean command looks like this: rm -f /tmp/build/feature/test-all.bin ... Fixes: 762323eb39a257c3 ("perf build: Move feature cleanup under tools/build") Signed-off-by: James Clark Acked-by: Jiri Olsa Link: http://lore.kernel.org/lkml/20210816130705.1331868-1-james.clark@arm.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/build/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/Makefile b/tools/build/Makefile index 5ed41b96fcde..6f11e6fc9ffe 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -32,7 +32,7 @@ all: $(OUTPUT)fixdep # Make sure there's anything to clean, # feature contains check for existing OUTPUT -TMP_O := $(if $(OUTPUT),$(OUTPUT)/feature,./) +TMP_O := $(if $(OUTPUT),$(OUTPUT)feature/,./) clean: $(call QUIET_CLEAN, fixdep) -- 2.30.2