Signed-off-by: Stephan Linz <[email protected]>
---
platforms/u-boot.in | 16 ++++++++++++++++
rules/u-boot.make | 12 ++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/platforms/u-boot.in b/platforms/u-boot.in
index 64d4d03..38552a9 100644
--- a/platforms/u-boot.in
+++ b/platforms/u-boot.in
@@ -42,5 +42,21 @@ 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
+ default n
+ help
+ Installing the U-Boot srec hexfile into platform image directory.
+
+config U_BOOT_INSTALL_ELF
+ prompt "install u-boot.elf"
+ bool
+ default n
+ 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..cc3220c 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)
# ----------------------------------------------------------------------------
@@ -73,5 +79,11 @@ $(STATEDIR)/u-boot.clean:
@$(call targetinfo)
@$(call clean_pkg, U_BOOT)
@rm -rf $(IMAGEDIR)/u-boot.bin
+#ifdef PTXCONF_U_BOOT_INSTALL_SREC
+ @rm -rf $(IMAGEDIR)/u-boot.srec
+#endif
+#ifdef PTXCONF_U_BOOT_INSTALL_ELF
+ @rm -rf $(IMAGEDIR)/u-boot.elf
+#endif
# vim: syntax=make
--
1.6.0.4
--
ptxdist mailing list
[email protected]