[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNARWr0aLYdm56F0dCcXrssoprwPfmEm+VSJeRwGC0QiLGw@mail.gmail.com>
Date: Wed, 14 Jun 2017 16:44:51 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: Matthias Kaehlcke <mka@...omium.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H . Peter Anvin" <hpa@...or.com>,
"H . J . Lu" <hjl.tools@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
Michal Marek <mmarek@...e.com>, X86 ML <x86@...nel.org>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Michael Davidson <md@...gle.com>,
Greg Hackmann <ghackmann@...gle.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Stephen Hines <srhines@...gle.com>,
Kees Cook <keescook@...omium.org>,
Bernhard Rosenkränzer
<Bernhard.Rosenkranzer@...aro.org>,
Peter Foley <pefoley2@...oley.com>,
Behan Webster <behanw@...verseincode.com>,
Douglas Anderson <dianders@...omium.org>
Subject: Re: [PATCH v2 1/4] kbuild: Add cc-option-raw macro
Hi Arnd,
2017-06-14 16:31 GMT+09:00 Arnd Bergmann <arnd@...db.de>:
> On Wed, Jun 14, 2017 at 3:27 AM, Masahiro Yamada
> <yamada.masahiro@...ionext.com> wrote:
>> 2017-06-14 8:08 GMT+09:00 Matthias Kaehlcke <mka@...omium.org>:
>>> cc-option uses KBUILD_CFLAGS and KBUILD_CPPFLAGS when it determines
>>> whether an option is supported or not. This is fine for options used to
>>> build the kernel itself, however some components like the x86 boot code
>>> use a different set of flags.
>>>
>>> Add the new macro cc-option-raw which serves the same purpose as
>>> cc-option but has additional parameters. One parameter is the compiler
>>> with which the check should be performed, the other the compiler options
>>> to be used instead KBUILD_C*FLAGS. The compiler parameter allows other
>>> macros like hostcc-option to be implemented on top of cc-option-raw.
>>>
>>> Also rework cc-option to make use of cc-option-raw.
>>>
>>> Suggested-by: Arnd Bergmann <arnd@...db.de>
>>> Suggested-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
>>> Signed-off-by: Matthias Kaehlcke <mka@...omium.org>
>>> ---
>>> Changes in v2:
>>> - Changed macro name from Add cc-option-no-kbuild to cc-option-raw
>>> - Added compiler as parameter to the macro
>>> - Reworked cc-option to make use of cc-option-raw
>>> - Updated commit message
>>>
>>> scripts/Kbuild.include | 9 +++++++--
>>> 1 file changed, 7 insertions(+), 2 deletions(-)
>>>
>>
>> Acked-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
>> (if nothing better pops up)
>
> Acked-by: Arnd Bergmann <arnd@...db.de>
>
> Regarding the naming, __cc-option might be better than cc-option-raw,
> but the current version is fine too.
Thank you for your suggestion.
Yes, double-underscore prefix is often used in the kernel coding,
so I like your idea.
I will leave it up to Matthias, though.
Either will be fine for me.
Thanks!
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists