Signed-off-by: Stephan Linz <[email protected]>
---
 platforms/u-boot.in |   14 ++++++++++++++
 rules/u-boot.make   |    8 +++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/platforms/u-boot.in b/platforms/u-boot.in
index 64d4d03..383a228 100644
--- a/platforms/u-boot.in
+++ b/platforms/u-boot.in
@@ -42,5 +42,19 @@ config U_BOOT_CONFIG
          "yourbox_config". See Uboot's main Makefile for possible
          configuration targets.
 
+comment "target install"
+
+config U_BOOT_INSTALL_SREC
+       prompt "install u-boot.srec"
+       bool
+       help
+         Installing the U-Boot srec hexfile into platform image directory.
+
+config U_BOOT_INSTALL_ELF
+       prompt "install u-boot.elf"
+       bool
+       help
+         Installing the U-Boot ELF binary into platform image directory.
+
 endif
 
diff --git a/rules/u-boot.make b/rules/u-boot.make
index 8931946..16df8a7 100644
--- a/rules/u-boot.make
+++ b/rules/u-boot.make
@@ -63,6 +63,12 @@ $(STATEDIR)/u-boot.install:
 $(STATEDIR)/u-boot.targetinstall:
        @$(call targetinfo)
        @install -D -m644 $(U_BOOT_DIR)/u-boot.bin $(IMAGEDIR)/u-boot.bin
+#ifdef PTXCONF_U_BOOT_INSTALL_SREC
+       @install -D -m644 $(U_BOOT_DIR)/u-boot.srec $(IMAGEDIR)/u-boot.srec
+#endif
+#ifdef PTXCONF_U_BOOT_INSTALL_ELF
+       @install -D -m644 $(U_BOOT_DIR)/u-boot $(IMAGEDIR)/u-boot.elf
+#endif
        @$(call touch)
 
 # ----------------------------------------------------------------------------
@@ -72,6 +78,6 @@ $(STATEDIR)/u-boot.targetinstall:
 $(STATEDIR)/u-boot.clean:
        @$(call targetinfo)
        @$(call clean_pkg, U_BOOT)
-       @rm -rf $(IMAGEDIR)/u-boot.bin
+       @rm -f $(IMAGEDIR)/u-boot.bin $(IMAGEDIR)/u-boot.srec 
$(IMAGEDIR)/u-boot.elf
 
 # vim: syntax=make
-- 
1.6.0.4


-- 
ptxdist mailing list
[email protected]

Reply via email to