From: Marek Vasut <marek.vasut+renesas@gmail.com>
Date: Mon, 26 Feb 2018 19:14:02 +0000 (+0100)
Subject: Makefile: add u-boot-spl.srec target
X-Git-Tag: v2025.01-rc5-pxa1908~4798^2~1
X-Git-Url: http://git.dujemihanovic.xyz/%22http:/kyber.dk/phpMyBuilder/static/%7B%7B?a=commitdiff_plain;h=3ee58ea425fc6c8ff8b38cab65fef31ec61d5db3;p=u-boot.git

Makefile: add u-boot-spl.srec target

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

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Tom Rini <trini@konsulko.com>
---

diff --git a/Makefile b/Makefile
index a7eb4196aa..50abc979ad 100644
--- a/Makefile
+++ b/Makefile
@@ -931,6 +931,11 @@ OBJCOPYFLAGS_u-boot-elf.srec := $(OBJCOPYFLAGS_u-boot.srec)
 u-boot-elf.srec: u-boot.elf FORCE
 	$(call if_changed,objcopy)
 
+OBJCOPYFLAGS_u-boot-spl.srec = $(OBJCOPYFLAGS_u-boot.srec)
+
+spl/u-boot-spl.srec: spl/u-boot-spl FORCE
+	$(call if_changed,objcopy)
+
 OBJCOPYFLAGS_u-boot-nodtb.bin := -O binary \
 		$(if $(CONFIG_X86_16BIT_INIT),-R .start16 -R .resetvec)