diff options
author | Markus Niebel <Markus.Niebel@tq-group.com> | 2014-06-26 18:22:46 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-06-26 18:53:21 +0200 |
commit | 15d225d3ed05a5a1e4aad80dde99dfb4e03d319e (patch) | |
tree | 65f35b22ab1c5b9b0874a87c157f6940be9e5a94 | |
parent | 5986fadff7e4410fd470d4452bb1aeab232b831e (diff) | |
download | ptxdist-15d225d3ed05a5a1e4aad80dde99dfb4e03d319e.tar.gz ptxdist-15d225d3ed05a5a1e4aad80dde99dfb4e03d319e.tar.xz |
u-boot: add config option for imx images
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>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | platforms/u-boot.in | 7 | ||||
-rw-r--r-- | rules/u-boot.make | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/platforms/u-boot.in b/platforms/u-boot.in index d31892368..38684a03a 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 af2b02d88..44b59fa14 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 |