From: "Guillermo Rodríguez" <guille.rodriguez@gmail.com>
To: ptxdist@pengutronix.de
Cc: "Guillermo Rodríguez" <guille.rodriguez@gmail.com>
Subject: [ptxdist] [PATCH] u-boot: Add support for SPL for non-OMAP CPUs
Date: Tue, 23 Oct 2018 16:32:41 +0200 [thread overview]
Message-ID: <1540305161-10992-1-git-send-email-guille.rodriguez@gmail.com> (raw)
Add support for installing the SPL binary for non-OMAP CPUs.
Also properly remove any files installed in the platform image
directory in the clean stage.
Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com>
---
platforms/u-boot.in | 14 +++++++++++---
rules/u-boot.make | 4 ++++
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/platforms/u-boot.in b/platforms/u-boot.in
index 38684a0..602de46 100644
--- a/platforms/u-boot.in
+++ b/platforms/u-boot.in
@@ -49,6 +49,13 @@ config U_BOOT_INSTALL_ELF
help
Installing the U-Boot ELF binary into platform image directory.
+config U_BOOT_INSTALL_SPL
+ prompt "install SPL"
+ bool
+ help
+ Installing the U-Boot SPL (Secondary Program Loader) binary into
+ platform image directory.
+
config U_BOOT_INSTALL_MLO
prompt "install MLO"
bool
@@ -57,14 +64,14 @@ config U_BOOT_INSTALL_MLO
Installing the U-Boot SPL ("MLO") binary needed for OMAP CPUs into platform
image directory.
-if U_BOOT_INSTALL_MLO
+if U_BOOT_INSTALL_MLO || U_BOOT_INSTALL_SPL
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.
+ by u-boot SPL into platform image directory.
endif
@@ -73,7 +80,8 @@ config U_BOOT_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
+ image directory. Say yes if you are building for freescale i.MX SOCs
+ and are not using SPL.
endif
diff --git a/rules/u-boot.make b/rules/u-boot.make
index 94aa774..9f69f9d 100644
--- a/rules/u-boot.make
+++ b/rules/u-boot.make
@@ -69,6 +69,9 @@ 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_SPL
+ @install -D -m644 $(U_BOOT_DIR)/SPL $(IMAGEDIR)/SPL
+endif
ifdef PTXCONF_U_BOOT_INSTALL_MLO
@install -D -m644 $(U_BOOT_DIR)/MLO $(IMAGEDIR)/MLO
endif
@@ -88,6 +91,7 @@ $(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.img $(IMAGEDIR)/SPL $(IMAGEDIR)/MLO
@rm -f $(IMAGEDIR)/u-boot.imx
# vim: syntax=make
--
1.9.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2018-10-23 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-23 14:32 Guillermo Rodríguez [this message]
2018-11-08 16:26 ` Guillermo Rodriguez Garcia
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=1540305161-10992-1-git-send-email-guille.rodriguez@gmail.com \
--to=guille.rodriguez@gmail.com \
--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