All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Targets in the Makefile, SPL and .img
@ 2012-03-21 14:32 jonsmirl at gmail.com
  2012-03-21 21:38 ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: jonsmirl at gmail.com @ 2012-03-21 14:32 UTC (permalink / raw)
  To: u-boot

If you make u-boot.img it doesn't also make in the SPL directory. Can
this get fixed before the next release?

-- 
Jon Smirl
jonsmirl at gmail.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Targets in the Makefile, SPL and .img
  2012-03-21 14:32 [U-Boot] Targets in the Makefile, SPL and .img jonsmirl at gmail.com
@ 2012-03-21 21:38 ` Tom Rini
  2012-03-21 21:46   ` jonsmirl at gmail.com
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Rini @ 2012-03-21 21:38 UTC (permalink / raw)
  To: u-boot

On Wed, Mar 21, 2012 at 10:32:39AM -0400, jonsmirl at gmail.com wrote:

> If you make u-boot.img it doesn't also make in the SPL directory. Can
> this get fixed before the next release?

Can you elaborate?  This is working fine for folks as far as we can
tell.  If doing a brand new (sub)arch you may need things similar to
arch/arm/cpu/armv7/omap3/config.mk

-- 
Tom

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Targets in the Makefile, SPL and .img
  2012-03-21 21:38 ` Tom Rini
@ 2012-03-21 21:46   ` jonsmirl at gmail.com
  2012-03-21 21:54     ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: jonsmirl at gmail.com @ 2012-03-21 21:46 UTC (permalink / raw)
  To: u-boot

On Wed, Mar 21, 2012 at 5:38 PM, Tom Rini <trini@ti.com> wrote:
> On Wed, Mar 21, 2012 at 10:32:39AM -0400, jonsmirl at gmail.com wrote:
>
>> If you make u-boot.img it doesn't also make in the SPL directory. Can
>> this get fixed before the next release?
>
> Can you elaborate? ?This is working fine for folks as far as we can
> tell. ?If doing a brand new (sub)arch you may need things similar to
> arch/arm/cpu/armv7/omap3/config.mk

Nothing is broken, it is just inconvenient.

Do 'make'
it builds u-boot.bin and spl/u-boot-spl.bin

Do 'make u-boot.img'
it builds u-boot.bin and u-boot.img, but not spl/u-boot-spl.bin

In our case we are concatenating spl/u-boot-spl.bin and u-boot.img and
we need the img header to know the length of the attached u-boot.

Maybe just add u-boot.img to the default make targets? Otherwise I
need to teach people to do 'make u-boot.img spl/u-boot-spl.bin'.

-- 
Jon Smirl
jonsmirl at gmail.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Targets in the Makefile, SPL and .img
  2012-03-21 21:46   ` jonsmirl at gmail.com
@ 2012-03-21 21:54     ` Tom Rini
  2012-03-21 22:12       ` jonsmirl at gmail.com
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Rini @ 2012-03-21 21:54 UTC (permalink / raw)
  To: u-boot

On Wed, Mar 21, 2012 at 05:46:38PM -0400, jonsmirl at gmail.com wrote:
> On Wed, Mar 21, 2012 at 5:38 PM, Tom Rini <trini@ti.com> wrote:
> > On Wed, Mar 21, 2012 at 10:32:39AM -0400, jonsmirl at gmail.com wrote:
> >
> >> If you make u-boot.img it doesn't also make in the SPL directory. Can
> >> this get fixed before the next release?
> >
> > Can you elaborate? ?This is working fine for folks as far as we can
> > tell. ?If doing a brand new (sub)arch you may need things similar to
> > arch/arm/cpu/armv7/omap3/config.mk
> 
> Nothing is broken, it is just inconvenient.
> 
> Do 'make'
> it builds u-boot.bin and spl/u-boot-spl.bin
> 
> Do 'make u-boot.img'
> it builds u-boot.bin and u-boot.img, but not spl/u-boot-spl.bin
> 
> In our case we are concatenating spl/u-boot-spl.bin and u-boot.img and
> we need the img header to know the length of the attached u-boot.
> 
> Maybe just add u-boot.img to the default make targets? Otherwise I
> need to teach people to do 'make u-boot.img spl/u-boot-spl.bin'.

That is not the behavior I see right now with omap3_beagle, for example.
It gives me u-boot.img and MLO (along with u-boot.bin and
spl/u-boot-spl.bin), both with and without O=.  That's why I suggested
looking at the file I said because that's what controls making
u-boot.img be an always built target, for omap3 boards with SPL.

-- 
Tom

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Targets in the Makefile, SPL and .img
  2012-03-21 21:54     ` Tom Rini
@ 2012-03-21 22:12       ` jonsmirl at gmail.com
  0 siblings, 0 replies; 5+ messages in thread
From: jonsmirl at gmail.com @ 2012-03-21 22:12 UTC (permalink / raw)
  To: u-boot

On Wed, Mar 21, 2012 at 5:54 PM, Tom Rini <trini@ti.com> wrote:
> On Wed, Mar 21, 2012 at 05:46:38PM -0400, jonsmirl at gmail.com wrote:
>> On Wed, Mar 21, 2012 at 5:38 PM, Tom Rini <trini@ti.com> wrote:
>> > On Wed, Mar 21, 2012 at 10:32:39AM -0400, jonsmirl at gmail.com wrote:
>> >
>> >> If you make u-boot.img it doesn't also make in the SPL directory. Can
>> >> this get fixed before the next release?
>> >
>> > Can you elaborate? ?This is working fine for folks as far as we can
>> > tell. ?If doing a brand new (sub)arch you may need things similar to
>> > arch/arm/cpu/armv7/omap3/config.mk
>>
>> Nothing is broken, it is just inconvenient.
>>
>> Do 'make'
>> it builds u-boot.bin and spl/u-boot-spl.bin
>>
>> Do 'make u-boot.img'
>> it builds u-boot.bin and u-boot.img, but not spl/u-boot-spl.bin
>>
>> In our case we are concatenating spl/u-boot-spl.bin and u-boot.img and
>> we need the img header to know the length of the attached u-boot.
>>
>> Maybe just add u-boot.img to the default make targets? Otherwise I
>> need to teach people to do 'make u-boot.img spl/u-boot-spl.bin'.
>
> That is not the behavior I see right now with omap3_beagle, for example.
> It gives me u-boot.img and MLO (along with u-boot.bin and
> spl/u-boot-spl.bin), both with and without O=. ?That's why I suggested
> looking at the file I said because that's what controls making
> u-boot.img be an always built target, for omap3 boards with SPL.

I get it now. I added this to my config.mk. Thanks for the tip.

ifndef CONFIG_SPL_BUILD
ALL-y	+= $(obj)u-boot.img
endif


-- 
Jon Smirl
jonsmirl at gmail.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-21 22:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21 14:32 [U-Boot] Targets in the Makefile, SPL and .img jonsmirl at gmail.com
2012-03-21 21:38 ` Tom Rini
2012-03-21 21:46   ` jonsmirl at gmail.com
2012-03-21 21:54     ` Tom Rini
2012-03-21 22:12       ` jonsmirl at gmail.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.