[lkml]   [2018]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC PATCH 0/7] Kconfig: add new special property shell= to test compiler options in Kconfig
On Fri, Feb 09, 2018 at 01:19:05AM +0900, Masahiro Yamada wrote:
> This was prompted by the email from Linus today's morning.
> I implmented this in a rush today, so there are still many TODOs,
> but I put it here to start discussion.
> I think it is working, but as you notice, it is tedious to repeat something
> like follows:
> bool
> option shell="$CC -Werror -fstack-protector -c -x c /dev/null"
> One possiblity is to put this ugly code into script like follows,
> bool
> option shell="$srctree/scripts/ $CC -fstack-protector"
> ... but this is longer.

But it's easier to remember and cut/paste from :)

> I was thinking of something like follows:
> bool
> option shell="$(CC_OPTION -fstack-protector)"

Sure, that would be even nicer, if possible. Is it?

Anyway, very nice work. I like moving the cache stuff to the .config
file, that makes a lot of sense and will be even nicer to see in the
/proc/config.gz output for when we are curious as to what the build
options really were.


greg k-h

 \ /
  Last update: 2018-02-08 17:43    [W:0.154 / U:9.160 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site