Re: [PATCH v4 00/31] kconfig: move compiler capability tests to Kconfig
From: Nicholas Piggin
Date: Thu May 17 2018 - 02:55:13 EST
On Thu, 17 May 2018 15:16:39 +0900
Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx> wrote:
> [Introduction]
>
> The motivation of this work is to move the compiler option tests to
> Kconfig from Makefile. A number of kernel features require the
> compiler support. Enabling such features blindly in Kconfig ends up
> with a lot of nasty build-time testing in Makefiles. If a chosen
> feature turns out unsupported by the compiler, what the build system
> can do is either to disable it (silently!) or to forcibly break the
> build, despite Kconfig has let the user to enable it. By moving the
> compiler capability tests to Kconfig, Kconfig entries will be visible
> only when they are available.
>
> [Major Changes in V4]
Do you have a git tree for v4? I can test it with the powerpc patches.
The new scripting capability in kconfig has allowed us to already
improve the config process on powerpc:
https://marc.info/?l=linuxppc-embedded&m=152648110727868&w=2
I'm sure there's more clever things we can do with it but I haven't
had time to think about it yet. One thing that comes to mind is that
It might be nice to show the option as disabled, then the user could
upgrade their compiler to get the options they want.
Anyway v3 worked fine for me, the documentation is really nice, I
could implement the above patch without any problem despite being a
kbuild dummy. Thanks for the series, ack from me.
Thanks,
Nick