[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=whTTWUyL5j5_-UeRT6k9VcJM_VOfjiKuU2NBJkxhbnXpw@mail.gmail.com>
Date: Sat, 4 Dec 2021 08:52:45 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Salvatore Bonaccorso <carnil@...ian.org>,
Masahiro Yamada <masahiroy@...nel.org>
Cc: "Gustavo A. R. Silva" <gustavoars@...nel.org>,
Kees Cook <keescook@...omium.org>,
Nathan Chancellor <nathan@...nel.org>,
Michal Marek <michal.lkml@...kovi.net>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Makefile: CC_IMPLICIT_FALLTHROUGH passed quoted as argument to gcc
On Sat, Dec 4, 2021 at 5:13 AM Salvatore Bonaccorso <carnil@...ian.org> wrote:
>
> Andreas suggested to replace the
>
> KBUILD_CFLAGS += $(KBUILD_CFLAGS-y) $(CONFIG_CC_IMPLICIT_FALLTHROUGH)
>
> with
>
> KBUILD_CFLAGS += $(KBUILD_CFLAGS-y) $(patsubst "%",%,$(CONFIG_CC_IMPLICIT_FALLTHROUGH))
Ugh. I think the external build environment is a bit broken, but
whatever. The above is ugly but I guess it works.
Another alternative would be to make the Kconfig strings simply not
have '"' as part of them.
When you do
a = "hello"
print $a
in any normal language, you generally wouldn't expect it to print the
quotes, it should just print the bare word.
But that's what the Kconfig string language basically does in this
case. And I guess several users expect and take advantage of that ;(
Masahiro? Comments?
Linus
Powered by blists - more mailing lists