From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbcDQAby (ORCPT ); Sat, 16 Apr 2016 20:31:54 -0400 Received: from yes.iam.tj ([109.74.197.121]:36474 "EHLO iam.tj" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751811AbcDQAbx (ORCPT ); Sat, 16 Apr 2016 20:31:53 -0400 To: Arnaldo Carvalho de Melo Subject: Re: Bug 116411: =?UTF-8?Q?tools/perf=5Fclean=3A=20output=20direct?= =?UTF-8?Q?ory=20does=20not=20exist=2E=20Stop=2E?= X-PHP-Originating-Script: 1013:rcmail.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 17 Apr 2016 01:31:51 +0100 From: TJ Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar In-Reply-To: <20160415160002.GP9056@kernel.org> References: <9e79969b0c42c9a9454a8838451945ce@iam.tj> <20160415160002.GP9056@kernel.org> Message-ID: <76615878fdc5c189e7d858b880ce8b85@iam.tj> User-Agent: Roundcube Webmail/RCMAIL_VERSION Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15-04-2016 17:00, Arnaldo Carvalho de Melo wrote: ----8-<---- snip > > Thanks for narrowing it down, do you have any patch fixing this? I'm having some success with the following change although I'm a long way from completing tests of all possible permutations. It's a bit 'raw' and could be caught out: diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include index 8abbef1..7c88242 100644 --- a/tools/scripts/Makefile.include +++ b/tools/scripts/Makefile.include @@ -2,7 +2,7 @@ ifneq ($(O),) ifeq ($(origin O), command line) dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) does not exist),) ABSOLUTE_O := $(shell cd $(O) ; pwd) - OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/) + OUTPUT := $(ABSOLUTE_O)/$(if $(filter %$(subdir),$(ABSOLUTE_O)),,$(subdir)/) COMMAND_O := O=$(ABSOLUTE_O) ifeq ($(objtree),) objtree := $(O)