Skip to contentSkip to conversation

Makefile: add u-boot-elf.srec target

PATCH New Marek Vasut 1 participant 2 messages Feb 26, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Makefile: add u-boot-elf.srec target

From: Masaru Nagai <[email protected]>

The u-boot-elf.srec is needed for some platforms, add target to generate this file.

---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)
Makefile +5 -0
index 57cb4b87d9..a7eb4196aa 100644
@@ -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)
 
Signature · 1 line
2.16.1
#1 lore raw

PATCH 2/2 ARM: rmobile: Build u-boot-elf.srec on Gen3

From: Masaru Nagai <[email protected]>

The u-boot-elf.srec is needed for the minimon update on Gen3 SoCs, conveniently generate this file.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 include/configs/rcar-gen3-common.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/rcar-gen3-common.h +1 -0
index 1ae6323369..bbaab80e23 100644
@@ -13,6 +13,7 @@
 #include <asm/arch/rmobile.h>
 
 #define CONFIG_REMAKE_ELF
+#define CONFIG_BUILD_TARGET	"u-boot-elf.srec"
 
 /* boot option */
 
Signature · 1 line
2.16.1