From: Tom Rini Date: Thu, 27 Jul 2017 07:56:56 -0400 Subject: [U-Boot] [Patch v2] Makefile: Concatenation of u-boot-spl.bin and u-boot.img In-Reply-To: References: <1501055837-15947-1-git-send-email-Ashish.Kumar@nxp.com> <20170726220612.GQ26163@bill-the-cat> Message-ID: <20170727115656.GA26163@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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:trini at konsulko.com] > Sent: Thursday, July 27, 2017 3:36 AM > To: Ashish Kumar > 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 > > --- > > > > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: