mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] u-boot: Allow copying of u-boot SPL to images
@ 2012-02-12 18:36 Bernhard Walle
  2012-02-14 21:34 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Walle @ 2012-02-12 18:36 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-14 21:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-12 18:36 [ptxdist] [PATCH] u-boot: Allow copying of u-boot SPL to images Bernhard Walle
2012-02-14 21:34 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox