[U-Boot] [Patch v2] Makefile: Concatenation of u-boot-spl.bin and u-boot.img
Ashish Kumar
ashish.kumar at nxp.com
Thu Jul 27 04:30:53 UTC 2017
Hello Tom,
Thanks for the comments, please see inline for respone.
Regards
Ashish
-----Original Message-----
From: Tom Rini [mailto:trini at konsulko.com]
Sent: Thursday, July 27, 2017 3:36 AM
To: Ashish Kumar <ashish.kumar at nxp.com>
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] [Patch v2] Makefile: Concatenation of u-boot-spl.bin and u-boot.img
On Wed, Jul 26, 2017 at 01:27:17PM +0530, Ashish Kumar wrote:
> Concatenation of u-boot-spl.bin and u-boot.img for NXP layerscape
> platform SoC: LS1088A/LS2080A and their variants
>
> This patch also depricates UBOOT_BINLOAD in favour of SPL_PAYLOAD
>
> Signed-off-by: Ashish Kumar <Ashish.Kumar at nxp.com>
> ---
>
> v2:
> This is v2 version of https://patchwork.ozlabs.org/patch/755904/
>
> Also considers recommendation made in following mail chain
> http://linux.freescale.net/pipermail/u-boot/2016-September/041592.html
> to depricate UBOOT_BINLOAD
>
> Makefile | 21 ++++++++++++++-------
> 1 file changed, 14 insertions(+), 7 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 4c4c8d8..ff22bda 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1030,8 +1030,20 @@ u-boot.dis: u-boot
> ifdef CONFIG_TPL
> SPL_PAYLOAD := tpl/u-boot-with-tpl.bin else
> +ifeq ($(ARCH),arm)
> +ifdef CONFIG_OF_CONTROL
> +SPL_PAYLOAD := u-boot-dtb.img
> +else
> +SPL_PAYLOAD := u-boot.img
> +endif #ifdef CONFIG_OF_CONTROL
> +else
> +ifdef CONFIG_OF_CONTROL
> +SPL_PAYLOAD := u-boot-dtb.bin
> +else
> SPL_PAYLOAD := u-boot.bin
... so you're trying to make the logic such that on ARM we use .img and otherwise we use .bin ? Why are we not using .img everywhere? And I assume your else case is PowerPC, but I'm pretty sure other architectures are currently using .img as well. Thanks!
[Ashish Kumar] I am not sure what will break if I use .img for PowerPC.
If other architectures are using .img as well, how about reversing the logic to check for powerpc and use .bin else use .img
--
Tom
More information about the U-Boot
mailing list