Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4728250pxb; Tue, 31 Aug 2021 11:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAM3dr+teH3ZZh+V9bcVrW/3yE1AQy7g8bhTPgLA9x2eMHC4HFn2Bio50QE56KqidEqlEU X-Received: by 2002:a05:6e02:1bc8:: with SMTP id x8mr21108796ilv.138.1630435701013; Tue, 31 Aug 2021 11:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630435701; cv=none; d=google.com; s=arc-20160816; b=Hc4Kq/MP0fTmSlGFu1kQIW4CO5Y7qHFYHpvUd0pybW0DVKdd/pMUlSqGjCmY2EtlDj njQnjR73HHiMTufgzJNwFo1cSNoHfbJz0jQkJaewBEeGFKFGZjJMIjH+OmAa+oe8RlU3 pDubbbgygDc6FNwZfdVN7eCbQ28eh67d5MI8ML8bvbKab4X1eVhRkJ+JLPjBZb6TcdDR KMkTM4N0rhuxhSaw1r4OM3QPNDaZqTeLoHBKDTsKo0i39VV0TYYirQOHk4xRiSCEUp2T 8hixSJU6PcZb8marfSdx8exAFUohGYZ94GUqkANi6GCcVupVQa8/QcgBcuZi2Xsbi2Ed JSvg== 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=aKcTGiFsWzKoWPb2efbYmLLsKlRKKqNkhKpgg+hore4=; b=C++NIgI1Ipki/ETG+oKBnb2ustCh7IBmgd1enaaMGbpWDCtrDNECH2FeOAoz6Fwc7w jNhFjguf0ujK4p3ZKRbcsxEDCSrtr89TdcsvLbYjQc9PIIBkh4QWSA5rMtokiBvc2u2A ipDytDBl5Wyogoal91Xa6ytrCf+p1mSzeanVKPvxTe/BZxEz8bfYCuB11DmJUa4SxfYH fiItFwDjGnkJgpuvroLyZF0lqbrCfCrXKBjO/Bt/KbPbOkCGBfrGkqhZTbLUTFHYX9f+ 1/JPJr0V0NBDysZiYc9QawzMTGZQ9gVUotHZsJyBkMJk25h78ZtCKF8/LdOjqFVEWtvW 3+nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CSVTOLJ2; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si9510738ilc.6.2021.08.31.11.48.09; Tue, 31 Aug 2021 11:48:21 -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=@redhat.com header.s=mimecast20190719 header.b=CSVTOLJ2; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238869AbhHaSrO (ORCPT + 99 others); Tue, 31 Aug 2021 14:47:14 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:58908 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbhHaSrN (ORCPT ); Tue, 31 Aug 2021 14:47:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630435576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aKcTGiFsWzKoWPb2efbYmLLsKlRKKqNkhKpgg+hore4=; b=CSVTOLJ2tkhIybKC+2rImwmqorrZkgPJLTTu9f9n3Vrv9JxRM8xHlOdX4jIhb8p1OGY4Y7 wop1vyk4rrBvGUCEZmhLfl3IvsDlM81Puul0LTJXa5mWFtYNp1ZFuQnzSDgkHt57vs3KaH Gc+z0rdiKBGfGigLEuMNeguM/1Zpny8= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-196-OniQy_anNVixvZjUnUfDuQ-1; Tue, 31 Aug 2021 14:46:15 -0400 X-MC-Unique: OniQy_anNVixvZjUnUfDuQ-1 Received: by mail-ed1-f72.google.com with SMTP id d12-20020a50fe8c0000b02903a4b519b413so1166395edt.9 for ; Tue, 31 Aug 2021 11:46:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=aKcTGiFsWzKoWPb2efbYmLLsKlRKKqNkhKpgg+hore4=; b=co8Y19e9hSFXfNyp3wiRx0x5ALYwnedJe1wvyKASc/L2/suorc0+ucvdbgz7RHMJYC slbd7FVUsyamOgqZ9jlWtxrJh7RBfH74le93esk2Sjq8VdjIcBrb08f4GW6xZD0BgYW2 QefFeETB2+L2SqEDpdDRfWrY5J8F19+L/ZOzzel4cVX7EmeslCxDpZDUcJumSTudLNkN k2AEkKspmsDWUx97KmEm4CIj8krJHA3NPXWPvHtinKudnwC9ioAcTEdVUpC0iLiKkNa4 MTmXO3iE2SHoL3U15hTvk9vWXMKjAZWx9+yFCvzTiH/56I0oFXN48aQ245A9Waxh2Ler nVsw== X-Gm-Message-State: AOAM530gzYVJdLBprVq+u3er0oeQgnzziOBq3lL3VD0t3QiryP6709ca GMT4A1+c7dpx4axysRW8YLV5FgGIbfApcIbm83SjW/2turG2YuRS2P+1HwL4+LOqh1I73qirzq5 XfgOuCt8a49fgvslGgOmB+UZn X-Received: by 2002:a17:906:d94:: with SMTP id m20mr31718171eji.445.1630435573923; Tue, 31 Aug 2021 11:46:13 -0700 (PDT) X-Received: by 2002:a17:906:d94:: with SMTP id m20mr31718163eji.445.1630435573768; Tue, 31 Aug 2021 11:46:13 -0700 (PDT) Received: from krava ([2a00:102a:4005:bb4:e4bf:9f13:dbe6:2d14]) by smtp.gmail.com with ESMTPSA id y32sm9960176ede.22.2021.08.31.11.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Aug 2021 11:46:13 -0700 (PDT) Date: Tue, 31 Aug 2021 20:46:10 +0200 From: Jiri Olsa To: James Clark Cc: acme@kernel.org, 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: <20210816130705.1331868-1-james.clark@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, jirka > --- > 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.28.0 >