Commit 17a944b671e39efe6743da43a73aba020af6efce
1 parent
da22909073
Exists in
v2017.01-smarct4x
and in
25 other branches
binman: Add a build rule for binman
Add a standard command definition for binman so that it can be used in makefiles. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
Makefile
... | ... | @@ -903,6 +903,12 @@ |
903 | 903 | $(LDR) -T $(CONFIG_CPU) -c $@ $< $(LDR_FLAGS) |
904 | 904 | $(BOARD_SIZE_CHECK) |
905 | 905 | |
906 | +# binman | |
907 | +# --------------------------------------------------------------------------- | |
908 | +quiet_cmd_binman = BINMAN $@ | |
909 | +cmd_binman = $(srctree)/tools/binman/binman -d u-boot.dtb -O . \ | |
910 | + -I . -I $(srctree)/board/$(BOARDDIR) $< | |
911 | + | |
906 | 912 | OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex |
907 | 913 | |
908 | 914 | OBJCOPYFLAGS_u-boot.ldr.srec := -I binary -O srec |