Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp668091pxb; Wed, 1 Sep 2021 07:32:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGEGXonIDFD7gCamB4TlC+tPW3HYUySYRpGau/embPSXcjQcb5a14zVzfAT9RhLose1Fb5 X-Received: by 2002:a05:651c:b08:: with SMTP id b8mr30239984ljr.308.1630506721003; Wed, 01 Sep 2021 07:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630506720; cv=none; d=google.com; s=arc-20160816; b=X9bfVmthCOwF+Nv1bulB7BAYfIF0eZQO2AB4kDqOyZE1629gdsq57s+9F+1qNueaAZ 57X6JQaoacxW4y11q5KWkLuZnKxVeD+4EHkvnHcXIxmMEsg3/MtRdOFV7fSd2Dbv5gJA Bvf+vlSU3vYyrZ+YyB/vrzys111svZe1c2O9SkkuKL0UygiLAhUMRDSRTBZSP92mqXgL TrEuyU1IJ7+LvKYO6st576iIzwH+3EI13cnKbyXgWawshuKvmiEVwctbCDyQkboYNnH9 g1b+mtaJ0ziMpj2vvAI9ZOioJ3swbsz8R9Bby19v1sk3SigABVS/YeARPDqEH5cQaeno xMdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kAtAaLJ9DiAN6IlQrUwT1AXv/qyqAMfzTAKooMlK0ls=; b=gBI7fC8K0cWGKEKxL5opsQCaNm01ZwtvkO+0T0x+vezU/7S91Nwf4DHYDuyPnQTqcD J0fsj1Nxn/BTwewo+bhoTmLH5nC+iPbZ/BVFKQhA3X9q1YI3F7HPEycZiwbp4lkizKOW 2f1QyUBtvuv6UiwhEG1lbPj6gPK80XPxaA+S3iW8XjUWJbdkbQPYr/a8xZkRvt+98GSq +5IwnQFlOAMK+pYAj5cvph3qowYdji5bSTTarHYik62rPvaISpgLz9GanXs0rznhAJvS M9SZXeLD3I1mAVIA/TeOOvPuQ3HEDkhVGvYxDNhqQTuoCK5NQISoYHv/GoIiCuaKAuEq /RyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FtosxcBA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi23si128ejb.186.2021.09.01.07.31.15; Wed, 01 Sep 2021 07:32:00 -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=@kernel.org header.s=k20201202 header.b=FtosxcBA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245127AbhIAO12 (ORCPT + 99 others); Wed, 1 Sep 2021 10:27:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:60754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236539AbhIAO11 (ORCPT ); Wed, 1 Sep 2021 10:27:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DA93761056; Wed, 1 Sep 2021 14:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630506391; bh=Lr7NDxwN7fcf2Qff92CnluLy5KXUdI7ZL0G5scwyLMo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FtosxcBAOgGYvCDka6h0Kj0FQRvTy0uhfmVjC4W42cLSNKU1/qEMzhZERQN+FVLk+ yQ2mLaAmiN+HbDqCDZudfWakdIZmuky8nG8JSeVjTDFefx7en9YJN2J68NejJb2DeZ +h53GB3iA4X85GzqNoAvjSAuMXDtNNlGyixq82wWJeK0XC71yEl0WIrGlxjVyZyxx3 DtPZEqaj3023pNfv3IkIpUYCxE0KZQYZJLYl2L4DlOP29ku8FkjdKgdLUkFIPEYXhI wRQOKj60AqGzrJCpcx5FwlzoSOPrHRF7CEcFLsmU0jqS31U2DY37d7MIJuX0jytDL2 Z0d9jgz1mZt0g== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 612134007E; Wed, 1 Sep 2021 11:26:28 -0300 (-03) Date: Wed, 1 Sep 2021 11:26:28 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: James Clark , jolsa@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tools build: Fix feature detect clean for out of source builds Message-ID: References: <20210816130705.1331868-1-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Aug 31, 2021 at 08:46:10PM +0200, Jiri Olsa escreveu: > On Mon, Aug 16, 2021 at 02:07:05PM +0100, James Clark wrote: > > 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 ... > > > > Signed-off-by: James Clark > > nice catch! > > Acked-by: Jiri Olsa Thanks, applied and added: Fixes: 762323eb39a257c3 ("perf build: Move feature cleanup under tools/build") - Arnaldo