Re: [U-Boot] [PATCH 1/3] common: add spl/u-boot-spl.hex target

2018-09-11 Thread Marek Vasut
On 09/10/2018 07:28 PM, Dalon Westergreen wrote:
> Some devices, namely Intel's stratix10 SoC, require u-boot-spl in
> a hex format.  This patch adds spl/u-boot-spl.hex as a possible
> target.
> 
> Signed-off-by: Dalon Westergreen 
> ---
>  Makefile | 5 +
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index f30dd8e9b7..133d7ac773 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -985,6 +985,11 @@ spl/u-boot-spl.srec: spl/u-boot-spl FORCE
>  OBJCOPYFLAGS_u-boot-nodtb.bin := -O binary \
>   $(if $(CONFIG_X86_16BIT_INIT),-R .start16 -R .resetvec)
>  
> +OBJCOPYFLAGS_u-boot-spl.hex = $(OBJCOPYFLAGS_u-boot.hex)
> +
> +spl/u-boot-spl.hex: spl/u-boot-spl FORCE
> + $(call if_changed,objcopy)
> +
>  binary_size_check: u-boot-nodtb.bin FORCE
>   @file_size=$(shell wc -c u-boot-nodtb.bin | awk '{print $$1}') ; \
>   map_size=$(shell cat u-boot.map | \
> 
Applied to socfpga/master, thanks

-- 
Best regards,
Marek Vasut
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH 1/3] common: add spl/u-boot-spl.hex target

2018-09-10 Thread Dalon Westergreen
Some devices, namely Intel's stratix10 SoC, require u-boot-spl in
a hex format.  This patch adds spl/u-boot-spl.hex as a possible
target.

Signed-off-by: Dalon Westergreen 
---
 Makefile | 5 +
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index f30dd8e9b7..133d7ac773 100644
--- a/Makefile
+++ b/Makefile
@@ -985,6 +985,11 @@ spl/u-boot-spl.srec: spl/u-boot-spl FORCE
 OBJCOPYFLAGS_u-boot-nodtb.bin := -O binary \
$(if $(CONFIG_X86_16BIT_INIT),-R .start16 -R .resetvec)
 
+OBJCOPYFLAGS_u-boot-spl.hex = $(OBJCOPYFLAGS_u-boot.hex)
+
+spl/u-boot-spl.hex: spl/u-boot-spl FORCE
+   $(call if_changed,objcopy)
+
 binary_size_check: u-boot-nodtb.bin FORCE
@file_size=$(shell wc -c u-boot-nodtb.bin | awk '{print $$1}') ; \
map_size=$(shell cat u-boot.map | \
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot