diff options
author | Simon Glass <sjg@chromium.org> | 2016-11-25 20:15:57 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-12-20 08:09:55 +1300 |
commit | 17a944b671e39efe6743da43a73aba020af6efce (patch) | |
tree | d56227c49272fdca02d7c895600e5dd3ddcc49e4 /Makefile | |
parent | da229090733cf9161e9e26a70f6f9ff9238a41cf (diff) | |
download | u-boot-17a944b671e39efe6743da43a73aba020af6efce.tar.gz u-boot-17a944b671e39efe6743da43a73aba020af6efce.tar.bz2 u-boot-17a944b671e39efe6743da43a73aba020af6efce.zip |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -903,6 +903,12 @@ u-boot.ldr: u-boot $(LDR) -T $(CONFIG_CPU) -c $@ $< $(LDR_FLAGS) $(BOARD_SIZE_CHECK) +# binman +# --------------------------------------------------------------------------- +quiet_cmd_binman = BINMAN $@ +cmd_binman = $(srctree)/tools/binman/binman -d u-boot.dtb -O . \ + -I . -I $(srctree)/board/$(BOARDDIR) $< + OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex OBJCOPYFLAGS_u-boot.ldr.srec := -I binary -O srec |