summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2011-09-12 14:25:23 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2011-09-13 09:29:23 +0200
commitbd348f953af1766ee5e41be4d9059a3e0a32b17f (patch)
treeead48fdf0e7003c2161fb5eec09487265d4cd32f
parent801c667d8c5900171b063def9a73ba252120a493 (diff)
downloadbarebox-bd348f953af1766ee5e41be4d9059a3e0a32b17f.tar.gz
generate barebox.srec
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--.gitignore1
-rw-r--r--Makefile3
2 files changed, 4 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 84d9f73..cc1f2e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,6 +31,7 @@ cross_compile
barebox
barebox.S
barebox.bin
+barebox.srec
barebox.netx
barebox.map
System.map
diff --git a/Makefile b/Makefile
index c100d24..5843db5 100644
--- a/Makefile
+++ b/Makefile
@@ -689,6 +689,9 @@ barebox: $(barebox-lds) $(barebox-head) $(barebox-common) $(kallsyms.o) FORCE
$(call if_changed_rule,barebox__)
$(Q)rm -f .old_version
+barebox.srec: barebox
+ $(OBJCOPY) -O srec $< $@
+
# The actual objects are generated when descending,
# make sure no implicit rule kicks in
$(sort $(barebox-head) $(barebox-common) ) $(barebox-lds): $(barebox-dirs) ;