[U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

Simon Glass sjg at chromium.org
Tue Jan 3 16:55:56 CET 2012


Hi Wolfgang,

On Tue, Jan 3, 2012 at 12:12 AM, Wolfgang Denk <wd at denx.de> wrote:
> Dear Simon Glass,
>
> In message <CAPnjgZ2jS8kzCt06LbYnXSyEKm6ck8apm=P1YqqDtnZ0+q9dhw at mail.gmail.com> you wrote:
>>
>> Well let's see how we go with the incremental approach - hopefully we
>> can get the same result with less pain and risk, and not too much
>> work.
>
> Did you miss my proposal not to change the existing coe for all
> boards, but to provide anew implementation and convert boards one by
> one?  What do you think about such an approach?
>

Sorry I must have misread this as 'architecture' instead of 'board'. I
suppose this would work since there is a simple CONFIG switch to move
over.

The concern with doing this for a whole architecture was the board
breakages, and this idea would avoid that. I wonder what would be the
incentive for boards to move over? Perhaps eventually it could be the
default, or we could discourage patches to the old code.

I have brought in PPC to board_f.c and board_r.c but not dealt with
relocation. Once I have done that, gone through the new x86 series
again and MAKEALL doesn't scream too loudly I'll do another RFC along
these lines.

If Graham can move his initcall stuff along too then we can also get
rid of the #ifdefs, which it IMO the main ugliness with my RFC.

Regards,
Simon

> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> "The X11 source code style is ATROCIOUS and should not be used  as  a
> model."                                                   - Doug Gwyn


More information about the U-Boot mailing list