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: 7471fdf830 ("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>
This commit is contained in:
parent
4d9858c675
commit
4950bb272a
|
|
@ -1231,9 +1231,11 @@ int main(int argc, char *argv[])
|
||||||
disp.fout = stdout;
|
disp.fout = stdout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_SPL_LOAD_FIT_APPLY_OVERLAY
|
||||||
/* include symbol table */
|
/* include symbol table */
|
||||||
if (value_add(&disp, &disp.value_head, FDT_IS_NODE, 1, "/__symbols__"))
|
if (value_add(&disp, &disp.value_head, FDT_IS_NODE, 1, "/__symbols__"))
|
||||||
usage("Cannot add __symbols__ value");
|
usage("Cannot add __symbols__ value");
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Run the grep and output the results */
|
/* Run the grep and output the results */
|
||||||
ret = do_fdtgrep(&disp, filename);
|
ret = do_fdtgrep(&disp, filename);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue