[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <afd5c7ed-53a1-22a3-2664-72797df8c577@infradead.org>
Date: Fri, 6 Mar 2020 10:26:15 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: Masami Hiramatsu <mhiramat@...nel.org>
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>,
Steven Rostedt <rostedt@...dmis.org>,
Borislav Petkov <bp@...en8.de>,
LKML <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Peter Zijlstra <peterz@...radead.org>,
Sasha Levin <sashal@...nel.org>
Subject: Re: [BUGFIX PATCH] tools: Let O= makes handle a relative path with -C
option
On 3/6/20 10:10 AM, Masami Hiramatsu wrote:
> On Fri, 6 Mar 2020 08:26:43 -0800
> Randy Dunlap <rdunlap@...radead.org> wrote:
>
>> On 3/6/20 7:07 AM, Masami Hiramatsu wrote:
>>> Thanks Geert,
>>>
>>> So Randy, what you will get if you add "echo $(PWD)" instead of "cd $(PWD)" ?
>>> Is that still empty or shows the tools/bootconfig directory?
>>>
>>> Thanks,
>>
>> OK, in these lines:
>> + dummy := $(if $(shell cd $(PWD); test -d $(O) || echo $(O)),$(error O=$(O) does not exist),)
>> + ABSOLUTE_O := $(shell cd $(PWD); cd $(O) ; pwd)
>>
>> I changed both "cd $(PWD)" to "echo $(PWD)" and did
>> $ make O=BUILD -C tools/bootconfig/
>>
>> and this is the build log:
>>
>> make: Entering directory '/home/rdunlap/lnx/next/linux-next-20200306/tools/bootconfig'
>> cc ../../lib/bootconfig.c main.c -Wall -g -I./include -o bootconfig
>> make: Leaving directory '/home/rdunlap/lnx/next/linux-next-20200306/tools/bootconfig'
>>
>>
>> Does that help?
>
> Hmm, did you apply "[PATCH 1/2] bootconfig: Support O=<builddir> option" too?
oh crud. nope. Sorry about that.
Building bootconfig with O=BUILD is now working.
Thanks for your time and patience.
> Also, I found this is not enough for perf. perf does more tricky thing in its Makefile.
Ack.
--
~Randy
Powered by blists - more mailing lists