]> git.dujemihanovic.xyz Git - u-boot.git/commit
global: Restrict use of '#include <linux/kconfig.h>'
authorTom Rini <trini@konsulko.com>
Thu, 14 Dec 2023 12:16:54 +0000 (07:16 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 13:54:05 +0000 (08:54 -0500)
commitb106961c2e4e7f339485a401ebb06c936fc432ee
tree693c4c75846facad25f28403431ac089c0540e31
parent36d3db6c2c060ee85176156dc9a607e8cd5465f4
global: Restrict use of '#include <linux/kconfig.h>'

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.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
17 files changed:
arch/arm/include/asm/arch-fsl-layerscape/config.h
arch/arm/mach-rockchip/tpl.c
arch/arm/mach-sunxi/dram_sun50i_h6.c
arch/arm/mach-sunxi/dram_sun50i_h616.c
arch/arm/mach-sunxi/dram_sunxi_dw.c
boot/image-fit.c
boot/image.c
drivers/timer/dw-apb-timer.c
env/embedded.c
include/bootstage.h
include/configs/at91-sama5_common.h
include/configs/tqma6.h
include/env_internal.h
include/u-boot/ecdsa.h
lib/rsa/rsa-verify.c
test/dm/scmi.c
tools/mkeficapsule.c