[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALCETrU+6sj=reBgPBy7Mq6KYY7BKkVLGwm4XrVzOzb8aU+meg@mail.gmail.com>
Date: Sun, 13 Mar 2016 21:44:59 -0700
From: Andy Lutomirski <luto@...capital.net>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Fenghua Yu <fenghua.yu@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Russell King <linux@....linux.org.uk>,
Michal Marek <mmarek@...e.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-kbuild@...r.kernel.org" <linux-kbuild@...r.kernel.org>,
Nathan Lynch <nathan_lynch@...tor.com>,
Tony Luck <tony.luck@...el.com>,
"linux-ia64@...r.kernel.org" <linux-ia64@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"H. Peter Anvin" <hpa@...or.com>, X86 ML <x86@...nel.org>
Subject: Re: [PATCH] kbuild: drop FORCE from PHONY targets
On Sun, Mar 13, 2016 at 9:36 PM, Masahiro Yamada
<yamada.masahiro@...ionext.com> wrote:
> 2016-03-14 13:28 GMT+09:00 Andy Lutomirski <luto@...capital.net>:
>> On Sun, Mar 13, 2016 at 9:08 PM, Masahiro Yamada
>> <yamada.masahiro@...ionext.com> wrote:
>>>
>>> Hi Andy
>>>
>>> 2016-03-14 9:39 GMT+09:00 Andy Lutomirski <luto@...capital.net>:
>>> > On Mar 12, 2016 4:14 PM, "Masahiro Yamada"
>>> > <yamada.masahiro@...ionext.com> wrote:
>>> >>
>>> >> These targets are marked as PHONY. No need to add FORCE to their
>>> >> dependency.
>>> >
>>> > If this is, in fact, correct, can you update
>>> > Documentation/kbuild/makefiles.txt as well?
>>>
>>> Which line do you want me to update?
>>>
>>
>> All the references to FORCE should probably mention .PHONY as an alternative.
>
> I do not get your point.
>
> All the examples in the makefile.txt correctly reference to FORCE.
> They are not PHONY targets.
> No need to update.
But they could be. For example:
$(obj)/image: vmlinux FORCE
$(call if_changed,objcopy)
could be:
.PHONY: $(obj)/image
$(obj)/image: vmlinux
$(call if_changed,objcopy)
I would at least change:
Note: It is a typical mistake to forget the FORCE prerequisite.
to:
Note: if-changed is only useful if make executes it, which won't
happen if it determines that the inputs have not changed since the
output was built. This can be avoided by specifying FORCE as a
prerequisite or by making declaring the output as .PHONY.
--Andy
>
>
>
>
> --
> Best Regards
> Masahiro Yamada
--
Andy Lutomirski
AMA Capital Management, LLC
Powered by blists - more mailing lists