From: Simon Glass Date: Sat, 26 Nov 2016 03:15:57 +0000 (-0700) Subject: binman: Add a build rule for binman X-Git-Tag: v2017.01-rc3~46^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17a944b671e39efe6743da43a73aba020af6efce;p=u-boot 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 Reviewed-by: Bin Meng Tested-by: Bin Meng --- diff --git a/Makefile b/Makefile index dfed58bec6..7688e87533 100644 --- a/Makefile +++ b/Makefile @@ -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