From: Simon Glass Date: Sun, 25 Sep 2016 15:52:25 -0600 Subject: [U-Boot] [PATCH v2 09/12] binman: Add a build rule for binman In-Reply-To: <1474840348-22780-1-git-send-email-sjg@chromium.org> References: <1474840348-22780-1-git-send-email-sjg@chromium.org> Message-ID: <1474840348-22780-10-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add a standard command definition for binman so that it can be used in makefiles. Signed-off-by: Simon Glass --- Changes in v2: None Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index b5c9421..a5428a2 100644 --- a/Makefile +++ b/Makefile @@ -889,6 +889,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 -- 2.8.0.rc3.226.g39d4020