We need to include <linux/kconfig.h> in order to include files that use CONFIG_IS_ENABLED.
Signed-off-by: Troy Kisky <troykiskybound...@gmail.com> --- boot/fdt_region.c | 1 + lib/fdtdec_common.c | 1 + lib/hash-checksum.c | 1 + tools/env/fw_env.c | 1 + tools/fdt_host.h | 1 + tools/mkimage.h | 1 + 6 files changed, 6 insertions(+) diff --git a/boot/fdt_region.c b/boot/fdt_region.c index 295ea08ac91..5331fbbfb50 100644 --- a/boot/fdt_region.c +++ b/boot/fdt_region.c @@ -5,6 +5,7 @@ * Written by Simon Glass <s...@chromium.org> */ +#include <linux/kconfig.h> #include <fdt_support.h> #include <linux/libfdt_env.h> #include <fdt_region.h> diff --git a/lib/fdtdec_common.c b/lib/fdtdec_common.c index ddaca0087e1..76719fb59b2 100644 --- a/lib/fdtdec_common.c +++ b/lib/fdtdec_common.c @@ -13,6 +13,7 @@ #include <linux/libfdt.h> #include <fdtdec.h> #else +#include <linux/kconfig.h> #include "libfdt.h" #include "fdt_support.h" diff --git a/lib/hash-checksum.c b/lib/hash-checksum.c index 8f2a42f9a08..062c3a54db4 100644 --- a/lib/hash-checksum.c +++ b/lib/hash-checksum.c @@ -11,6 +11,7 @@ #include <asm/unaligned.h> #include <hash.h> #else +#include <linux/kconfig.h> #include "fdt_host.h" #endif #include <hash.h> diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index c9a8774acef..abe9977fad3 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -12,6 +12,7 @@ #include <compiler.h> #include <env.h> #include <errno.h> +#include <linux/kconfig.h> #include <env_flags.h> #include <fcntl.h> #include <libgen.h> diff --git a/tools/fdt_host.h b/tools/fdt_host.h index bc42306c9e5..6c7788db3c6 100644 --- a/tools/fdt_host.h +++ b/tools/fdt_host.h @@ -7,6 +7,7 @@ #define __FDT_HOST_H__ /* Make sure to include u-boot version of libfdt include files */ +#include "../include/linux/kconfig.h" #include "../include/linux/libfdt.h" #include "../include/fdt_support.h" diff --git a/tools/mkimage.h b/tools/mkimage.h index f5ca65e2edf..5cbb372d7b1 100644 --- a/tools/mkimage.h +++ b/tools/mkimage.h @@ -8,6 +8,7 @@ #ifndef _MKIIMAGE_H_ #define _MKIIMAGE_H_ +#include <linux/kconfig.h> #include "os_support.h" #include <errno.h> #include <fcntl.h> -- 2.34.1