summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-17 06:59:23 +0300
committerTom Rini <trini@konsulko.com>2021-12-23 18:24:39 +0300
commited96683e009c9349005821ce790bc080ef572c22 (patch)
tree543ae20e4bb7071be720563c7a3a5350d7c90b96 /tools
parent8e0768124ffe683acb82cd70afad798f974382d1 (diff)
downloadu-boot-ed96683e009c9349005821ce790bc080ef572c22.tar.xz
fdt: Make it easier to debug u-boot.dtsi files
At present one must hack the Makefile to see what is going on with these files. Also it doesn't quite work correctly. Fix this by using an environment variable for debugging. Update the docs also. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/binman/binman.rst14
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst
index 56f865800e..3e063d1f86 100644
--- a/tools/binman/binman.rst
+++ b/tools/binman/binman.rst
@@ -790,12 +790,14 @@ Binman will search for the following files in arch/<arch>/dts::
U-Boot will only use the first one that it finds. If you need to include a
more general file you can do that from the more specific file using #include.
-If you are having trouble figuring out what is going on, you can uncomment
-the 'warning' line in scripts/Makefile.lib to see what it has found::
-
- # Uncomment for debugging
- # This shows all the files that were considered and the one that we chose.
- # u_boot_dtsi_options_debug = $(u_boot_dtsi_options_raw)
+If you are having trouble figuring out what is going on, you can use
+`DEVICE_TREE_DEBUG=1` with your build::
+
+ make DEVICE_TREE_DEBUG=1
+ scripts/Makefile.lib:334: Automatic .dtsi inclusion: options:
+ arch/arm/dts/juno-r2-u-boot.dtsi arch/arm/dts/-u-boot.dtsi
+ arch/arm/dts/armv8-u-boot.dtsi arch/arm/dts/armltd-u-boot.dtsi
+ arch/arm/dts/u-boot.dtsi ... found: "arch/arm/dts/juno-r2-u-boot.dtsi"
Updating an ELF file