On Thu, Jul 27, 2017 at 04:30:53AM +0000, Ashish Kumar wrote: > Hello Tom, > > Thanks for the comments, please see inline for respone. > > Regards > Ashish > > -----Original Message----- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Thursday, July 27, 2017 3:36 AM > To: Ashish Kumar <ashish.ku...@nxp.com> > Cc: u-boot@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.ku...@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
No, PowerPC should just use the .img like everyone else, and parse the "legacy" style header rather than jump to a raw location. Unless there's very very good reason, and then we need to make the logic that's doing this both clear and commented on, about why. Thanks! -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot