[U-Boot] [RFC PATCH 2/2] Makefile: Give a build error if ad-hoc CONFIG options are added

Simon Glass sjg at chromium.org
Mon Sep 12 06:19:55 CEST 2016


Hi Stephen,

On 24 August 2016 at 10:24, Stephen Warren <swarren at wwwdotorg.org> wrote:
> On 08/24/2016 08:44 AM, Simon Glass wrote:
>>
>> New CONFIG options should be added via Kconfig. To help prevent new ad-hoc
>> CONFIGs from being added, give a build error when these are detected.
>
>
> Acked-by: Stephen Warren <swarren at nvidia.com>
> Tested-by: Stephen Warren <swarren at nvidia.com>
>
> I worried about the increased build time due to find/grep on all Kconfig
> files, but at least with a hot disk cache it seems to make no noticeable
> difference:-)

Yes it was pretty slow at first, but I fiddled with it to sort that.

The current approach is based on files that are already generated by
the build. There is a very small overhead but it is small enough that
I cannot reliably measure it.

[...]

Regards,
Simon


More information about the U-Boot mailing list