[PATCH] global: Restrict use of '#include <linux/kconfig.h>'

Tom Rini trini at konsulko.com
Thu Dec 21 17:51:41 CET 2023


On Thu, 14 Dec 2023 07:16:54 -0500, Tom Rini wrote:

> In general terms, we -include include/linux/kconfig.h and so normal
> U-Boot code does not need to also #include it. However, for code which
> is shared with userspace we may need to add it so that either our full
> config is available or so that macros such as CONFIG_IS_ENABLED() can be
> evaluated. In this case make sure that we guard these includes with a
> test for USE_HOSTCC so that it clear as to why we're doing this.
> 
> [...]

Applied to u-boot/next, thanks!

-- 
Tom




More information about the U-Boot mailing list