summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@kernel.org>2022-09-15 16:44:39 +0300
committerAnand Gadiyar <gadiyar@ti.com>2022-09-15 09:02:05 -0500
commitbae522d534768449e811eca14edae29db618aa06 (patch)
treeebc5888afd7ac83a7b94d08a87d63b6da4b140d6 /tools
parente289692a47360fac45fbb85e32e62b0ecb971153 (diff)
tools/fdtgrep: Fix symbol table inclusion logic
Without including the <linux/kconfig.h> file, the symbol CONFIG_SPL_LOAD_FIT_APPLY_OVERLAY will not be visible and we will never include the symbol table. So include <linux/kconfig.h> Due to some reason it needs to be included after [#include "fdt_host.h"] otherwise it causes a build error. This fixes boot on AM64 board with NAND expansion card. Fixes: 4950bb272ab7 ("tools/fdtgrep: fix symbol table, depends on SPL overlay support" Signed-off-by: Roger Quadros <rogerq@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/fdtgrep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c
index 61e869d081..751103c6ac 100644
--- a/tools/fdtgrep.c
+++ b/tools/fdtgrep.c
@@ -22,6 +22,8 @@
#include "fdt_host.h"
#include "libfdt_internal.h"
+#include <linux/kconfig.h>
+
/* Define DEBUG to get some debugging output on stderr */
#ifdef DEBUG
#define debug(a, b...) fprintf(stderr, a, ## b)