diff options
author | Tom Rini <trini@konsulko.com> | 2023-12-14 07:16:54 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-12-21 08:54:05 -0500 |
commit | b106961c2e4e7f339485a401ebb06c936fc432ee (patch) | |
tree | 693c4c75846facad25f28403431ac089c0540e31 /tools | |
parent | 36d3db6c2c060ee85176156dc9a607e8cd5465f4 (diff) | |
download | u-boot-b106961c2e4e7f339485a401ebb06c936fc432ee.zip u-boot-b106961c2e4e7f339485a401ebb06c936fc432ee.tar.gz u-boot-b106961c2e4e7f339485a401ebb06c936fc432ee.tar.bz2 |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mkeficapsule.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/mkeficapsule.c b/tools/mkeficapsule.c index b8fc606..6a261ff 100644 --- a/tools/mkeficapsule.c +++ b/tools/mkeficapsule.c @@ -16,7 +16,6 @@ #include <sys/stat.h> #include <sys/types.h> #include <uuid/uuid.h> -#include <linux/kconfig.h> #include <gnutls/gnutls.h> #include <gnutls/pkcs7.h> |