]> git.sur5r.net Git - u-boot/commitdiff
Makefile: add u-boot-elf.srec target
authorMasaru Nagai <masaru.nagai.vx@renesas.com>
Fri, 28 Aug 2015 03:12:45 +0000 (12:12 +0900)
committerMarek Vasut <marex@denx.de>
Tue, 27 Feb 2018 20:05:35 +0000 (21:05 +0100)
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>
Makefile

index 57cb4b87d930137ca13226afb35bc41baf259f24..a7eb4196aaefca0ada81de75aae0770923a4cb7b 100644 (file)
--- 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)