From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Markus Niebel Date: Fri, 14 Feb 2014 15:05:32 +0100 Message-Id: <1392386732-8558-1-git-send-email-list-09_ptxdist@tqsc.de> Subject: [ptxdist] [PATCH] u-boot: add install option for imx images Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Markus Niebel , m.olbrich@pengutronix.de From: Markus Niebel Freescale i.MX SOC need special formatted images containing data interpreted by the ROM loader in the SOC. This patch provides a way to transfer those images to the $IMAGE_DIR Signed-off-by: Markus Niebel --- platforms/u-boot.in | 7 +++++++ rules/u-boot.make | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/platforms/u-boot.in b/platforms/u-boot.in index d318923..b779c6f 100644 --- a/platforms/u-boot.in +++ b/platforms/u-boot.in @@ -68,5 +68,12 @@ config U_BOOT_INSTALL_U_BOOT_IMG endif +config U_BOOT_INSTALL_U_BOOT_IMX + prompt "install u-boot.imx" + bool + help + Installing the U-Boot image with imx header (u-boot.imx) into platform + image directory. Say yes if you are building for Freescale i.MX SOC + endif diff --git a/rules/u-boot.make b/rules/u-boot.make index af2b02d..44b59fa 100644 --- a/rules/u-boot.make +++ b/rules/u-boot.make @@ -68,6 +68,9 @@ endif ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_IMG @install -D -m644 $(U_BOOT_DIR)/u-boot.img $(IMAGEDIR)/u-boot.img endif +ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_IMX + @install -D -m644 $(U_BOOT_DIR)/u-boot.imx $(IMAGEDIR)/u-boot.imx +endif @$(call touch) # ---------------------------------------------------------------------------- @@ -78,5 +81,6 @@ $(STATEDIR)/u-boot.clean: @$(call targetinfo) @$(call clean_pkg, U_BOOT) @rm -f $(IMAGEDIR)/u-boot.bin $(IMAGEDIR)/u-boot.srec $(IMAGEDIR)/u-boot.elf + @rm -f $(IMAGEDIR)/u-boot.imx # vim: syntax=make -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de