summaryrefslogtreecommitdiffstats
path: root/Makefile
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 /Makefile
parent801c667d8c5900171b063def9a73ba252120a493 (diff)
downloadbarebox-bd348f953af1766ee5e41be4d9059a3e0a32b17f.tar.gz
barebox-bd348f953af1766ee5e41be4d9059a3e0a32b17f.tar.xz
generate barebox.srec
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c100d24bdf..5843db5ceb 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) ;