* [ptxdist] [PATCH] u-boot: add config option for imx images
@ 2014-06-26 16:22 Markus Niebel
2014-06-27 11:06 ` Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Markus Niebel @ 2014-06-26 16:22 UTC (permalink / raw)
To: ptxdist; +Cc: m.olbrich, Markus Niebel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [PATCH] u-boot: add config option for imx images
2014-06-26 16:22 [ptxdist] [PATCH] u-boot: add config option for imx images Markus Niebel
@ 2014-06-27 11:06 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2014-06-27 11:06 UTC (permalink / raw)
To: ptxdist
On Thu, Jun 26, 2014 at 06:22:46PM +0200, Markus Niebel wrote:
> 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.
Thanks, applied.
Michael
>
> 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
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-27 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-26 16:22 [ptxdist] [PATCH] u-boot: add config option for imx images Markus Niebel
2014-06-27 11:06 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox