mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Markus Niebel <list-09_ptxdist@tqsc.de>
To: ptxdist@pengutronix.de
Cc: m.olbrich@pengutronix.de, Markus Niebel <Markus.Niebel@tq-group.com>
Subject: [ptxdist] [PATCH] u-boot: add config option for imx images
Date: Thu, 26 Jun 2014 18:22:46 +0200	[thread overview]
Message-ID: <1403799766-1711-1-git-send-email-list-09_ptxdist@tqsc.de> (raw)

From: Markus Niebel <Markus.Niebel@tq-group.com>

For i.MX SOC the U-Boot build system generates imx-images
containing the DCD structure used by the ROM loader.

This patch provides a config option and install rules for
this type of images.

Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
---
 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..38684a0 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

             reply	other threads:[~2014-06-26 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 16:22 Markus Niebel [this message]
2014-06-27 11:06 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403799766-1711-1-git-send-email-list-09_ptxdist@tqsc.de \
    --to=list-09_ptxdist@tqsc.de \
    --cc=Markus.Niebel@tq-group.com \
    --cc=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox