diff mbox

[U-Boot] arm, Makefile: set SPL_PAYLOAD according to the SoC architecture

Message ID 1474053398-3577-1-git-send-email-raghav.dogra@nxp.com
State Deferred
Delegated to: York Sun
Headers show

Commit Message

Raghav Dogra Sept. 16, 2016, 7:16 p.m. UTC
SPL_PAYLOAD should be .img in case of ARM architecture and .bin in
case of other architectures. This patch takes care of the same by choosing
the SPL_PAYLOAD as u-boot.img for ARM architecture and u-boot.bin for others.

Signed-off-by: Raghav Dogra <raghav.dogra@nxp.com>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

Comments

York Sun Nov. 30, 2016, 6:29 p.m. UTC | #1
On 09/16/2016 12:16 PM, Raghav Dogra wrote:
> SPL_PAYLOAD should be .img in case of ARM architecture and .bin in
> case of other architectures. This patch takes care of the same by choosing
> the SPL_PAYLOAD as u-boot.img for ARM architecture and u-boot.bin for others.
>
> Signed-off-by: Raghav Dogra <raghav.dogra@nxp.com>
> ---
>  Makefile | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index 1cf15ce..83e7cea 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -941,8 +941,12 @@ u-boot.cfg:	include/config.h FORCE
>  ifdef CONFIG_TPL
>  SPL_PAYLOAD := tpl/u-boot-with-tpl.bin
>  else
> +ifeq ($(ARCH),arm)
> +SPL_PAYLOAD := u-boot.img
> +else
>  SPL_PAYLOAD := u-boot.bin
>  endif
> +endif
>
>  OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
>  				   --pad-to=$(CONFIG_SPL_PAD_TO)
>

Raghav,

Do you have an update after internal discussion for this patch?

York
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 1cf15ce..83e7cea 100644
--- a/Makefile
+++ b/Makefile
@@ -941,8 +941,12 @@  u-boot.cfg:	include/config.h FORCE
 ifdef CONFIG_TPL
 SPL_PAYLOAD := tpl/u-boot-with-tpl.bin
 else
+ifeq ($(ARCH),arm)
+SPL_PAYLOAD := u-boot.img
+else
 SPL_PAYLOAD := u-boot.bin
 endif
+endif
 
 OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
 				   --pad-to=$(CONFIG_SPL_PAD_TO)