summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMasaru Nagai <masaru.nagai.vx@renesas.com>2015-08-28 12:12:45 +0900
committerMarek Vasut <marex@denx.de>2018-02-27 21:05:35 +0100
commit341ca9056049d5836121d044a87de69109d5a921 (patch)
tree6becc21eb6e0aa200e4675ebd67b0b6cfb12a265 /Makefile
parent2155a7981dccf9c8dbe6ee61d4d6133bab462038 (diff)
Makefile: add u-boot-elf.srec target
The u-boot-elf.srec is needed for some platforms, add target to generate this file. Signed-off-by: Masaru Nagai <masaru.nagai.vx@renesas.com> Signed-off-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 57cb4b87d9..a7eb4196aa 100644
--- a/Makefile
+++ b/Makefile
@@ -926,6 +926,11 @@ OBJCOPYFLAGS_u-boot.srec := -O srec
u-boot.hex u-boot.srec: u-boot FORCE
$(call if_changed,objcopy)
+OBJCOPYFLAGS_u-boot-elf.srec := $(OBJCOPYFLAGS_u-boot.srec)
+
+u-boot-elf.srec: u-boot.elf FORCE
+ $(call if_changed,objcopy)
+
OBJCOPYFLAGS_u-boot-nodtb.bin := -O binary \
$(if $(CONFIG_X86_16BIT_INIT),-R .start16 -R .resetvec)