summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2022-06-23 10:04:06 -0700
committerAnand Gadiyar <gadiyar@ti.com>2022-06-24 12:35:48 -0500
commit4950bb272ab743b7877733e6a1cf916551a137ed (patch)
tree875932d0394796eef6315dcec1bb05752f2aa017 /tools
parent4d9858c675c149937696d45c4b1cc8e4f40472c5 (diff)
tools/fdtgrep: fix symbol table, depends on SPL overlay support
Loading of symbol table depends on DT Overlay support in SPL so make it compile-time dependent. Without this fix, SPL fails to boot some platforms where this feature is not enabled (e.g. dra71-evm.) Fixes: LCPD-27102 Fixes: 7471fdf830f4 ("tools/fdtgrep: Include __symbols__ table") Suggested-by: Roger Quadros <rogerq@kernel.org> Signed-off-by: Kevin Hilman <khilman@baylibre.com> Acked-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 0925822940..61e869d081 100644
--- a/tools/fdtgrep.c
+++ b/tools/fdtgrep.c
@@ -1231,9 +1231,11 @@ int main(int argc, char *argv[])
disp.fout = stdout;
}
+#ifdef CONFIG_SPL_LOAD_FIT_APPLY_OVERLAY
/* include symbol table */
if (value_add(&disp, &disp.value_head, FDT_IS_NODE, 1, "/__symbols__"))
usage("Cannot add __symbols__ value");
+#endif
/* Run the grep and output the results */
ret = do_fdtgrep(&disp, filename);