mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
binman: Add a way to enable debugging from the build
When the build fails due to something wrong in binman it is sometimes useful to get a full backtrace showing the location of the failure. Add a BINMAN_DEBUG environment variable to support this along with some documentation. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
048c6e8956
commit
a3c005506a
6
Makefile
6
Makefile
@ -1048,9 +1048,11 @@ u-boot.ldr: u-boot
|
|||||||
|
|
||||||
# binman
|
# binman
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
# Use 'make BINMAN_DEBUG=1' to enable debugging
|
||||||
quiet_cmd_binman = BINMAN $@
|
quiet_cmd_binman = BINMAN $@
|
||||||
cmd_binman = $(srctree)/tools/binman/binman -d u-boot.dtb -O . \
|
cmd_binman = $(srctree)/tools/binman/binman -u -d u-boot.dtb -O . -m \
|
||||||
-I . -I $(srctree)/board/$(BOARDDIR) $<
|
-I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \
|
||||||
|
$(if $(BINMAN_DEBUG),-D) $(BINMAN_$(@F)) $<
|
||||||
|
|
||||||
OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex
|
OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex
|
||||||
|
|
||||||
|
@ -723,6 +723,12 @@ If you need to specify a particular device-tree compiler to use, you can define
|
|||||||
the DTC environment variable. This can be useful when the system dtc is too
|
the DTC environment variable. This can be useful when the system dtc is too
|
||||||
old.
|
old.
|
||||||
|
|
||||||
|
To enable a full backtrace and other debugging features in binman, pass
|
||||||
|
BINMAN_DEBUG=1 to your build:
|
||||||
|
|
||||||
|
make sandbox_defconfig
|
||||||
|
make BINMAN_DEBUG=1
|
||||||
|
|
||||||
|
|
||||||
History / Credits
|
History / Credits
|
||||||
-----------------
|
-----------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user