From 4950bb272ab743b7877733e6a1cf916551a137ed Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Thu, 23 Jun 2022 10:04:06 -0700 Subject: 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 Signed-off-by: Kevin Hilman Acked-by: Roger Quadros --- tools/fdtgrep.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c index 09258229403..61e869d0818 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); -- cgit v1.2.3