mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] u-boot: Allow copying of u-boot SPL to images
Date: Sun, 12 Feb 2012 19:36:17 +0100	[thread overview]
Message-ID: <1329071777-24239-1-git-send-email-bernhard@bwalle.de> (raw)

This patch adds two options:

 1) U_BOOT_INSTALL_MLO copies the "MLO" (u-boot SPL which replaces
    x-loader for OMAP CPUs) to the images directory.
 2) U_BOOT_INSTALL_U_BOOT_IMG copies "u-boot.img" in addition to the
    u-boot binary because u-boot SPL expects the u-boot.img (which
    contains an additional u-boot header) on a SD card.

Because of the file name conflict, U_BOOT_INSTALL_MLO is only selectable
when x-loader is not built.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 platforms/u-boot.in |   19 +++++++++++++++++++
 rules/u-boot.make   |    6 ++++++
 2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/platforms/u-boot.in b/platforms/u-boot.in
index 86f0703..1cac07b 100644
--- a/platforms/u-boot.in
+++ b/platforms/u-boot.in
@@ -60,5 +60,24 @@ config U_BOOT_INSTALL_ELF
 	help
 	  Installing the U-Boot ELF binary into platform image directory.
 
+config U_BOOT_INSTALL_MLO
+	prompt "install MLO"
+        bool
+	depends on !X_LOAD
+	help
+	  Installing the U-Boot SPL ("MLO") binary needed for OMAP CPUs into platform
+	  image directory.
+
+if U_BOOT_INSTALL_MLO
+
+config U_BOOT_INSTALL_U_BOOT_IMG
+	prompt "install u-boot.img"
+        bool
+	help
+	  Installing the u-boot image with header ("u-boot.img") which is executed
+	  by u-boot SPL ("MLO") into platform image directory.
+
+endif
+
 endif
 
diff --git a/rules/u-boot.make b/rules/u-boot.make
index bee7faf..36760ee 100644
--- a/rules/u-boot.make
+++ b/rules/u-boot.make
@@ -70,6 +70,12 @@ endif
 ifdef PTXCONF_U_BOOT_INSTALL_ELF
 	@install -D -m644 $(U_BOOT_DIR)/u-boot $(IMAGEDIR)/u-boot.elf
 endif
+ifdef PTXCONF_U_BOOT_INSTALL_MLO
+	@install -D -m644 $(U_BOOT_DIR)/MLO $(IMAGEDIR)/MLO
+endif
+ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_IMG
+	@install -D -m644 $(U_BOOT_DIR)/u-boot.img $(IMAGEDIR)/u-boot.img
+endif
 	@$(call touch)
 
 # ----------------------------------------------------------------------------
-- 
1.7.9


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2012-02-12 18:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-12 18:36 Bernhard Walle [this message]
2012-02-14 21:34 ` 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=1329071777-24239-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.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