[U-Boot] [PATCH 1/2] Makefile: add u-boot-elf.srec target

From: Masaru Nagai masaru.nagai.vx@renesas.com
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 | 5 +++++ 1 file changed, 5 insertions(+)
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)

From: Masaru Nagai masaru.nagai.vx@renesas.com
The u-boot-elf.srec is needed for the minimon update on Gen3 SoCs, conveniently generate this file.
Signed-off-by: Marek Vasut marek.vasut+renesas@gmail.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- include/configs/rcar-gen3-common.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/rcar-gen3-common.h b/include/configs/rcar-gen3-common.h index 1ae6323369..bbaab80e23 100644 --- a/include/configs/rcar-gen3-common.h +++ b/include/configs/rcar-gen3-common.h @@ -13,6 +13,7 @@ #include <asm/arch/rmobile.h>
#define CONFIG_REMAKE_ELF +#define CONFIG_BUILD_TARGET "u-boot-elf.srec"
/* boot option */
participants (1)
-
Marek Vasut