diff options
author | Stephen Warren <swarren@nvidia.com> | 2019-07-19 11:21:17 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-29 09:38:06 -0600 |
commit | 4f4fb85ec0bfe45da11aa23ada565387ee676e80 (patch) | |
tree | 1de4ce1af993f7b9ccf7e083f43f0e6177d3285b /Makefile | |
parent | a6cb995096c40ecd6597e20d792851ac7f80004e (diff) | |
download | u-boot-4f4fb85ec0bfe45da11aa23ada565387ee676e80.zip u-boot-4f4fb85ec0bfe45da11aa23ada565387ee676e80.tar.gz u-boot-4f4fb85ec0bfe45da11aa23ada565387ee676e80.tar.bz2 |
Makefile: fix implementation of BINMAN_DEBUG
binman only accepts the -D argument early on the command-line, yet the
Makefile currently passes it near the end. This causes the build to fail
if this feature is used. Re-order the command-line to fix this.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1196,9 +1196,10 @@ u-boot.ldr: u-boot # --------------------------------------------------------------------------- # Use 'make BINMAN_DEBUG=1' to enable debugging quiet_cmd_binman = BINMAN $@ -cmd_binman = $(srctree)/tools/binman/binman build -u -d u-boot.dtb -O . -m \ +cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \ + build -u -d u-boot.dtb -O . -m \ -I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \ - $(if $(BINMAN_DEBUG),-D) $(BINMAN_$(@F)) + $(BINMAN_$(@F)) OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex |