[PATCH 19/19] bootwrapper: compatibility layer for old U-Boots (a.k.a. cuImage, cuboot)
david at gibson.dropbear.id.au
Sat Feb 10 12:02:37 EST 2007
On Fri, Feb 09, 2007 at 11:11:29AM -0600, Scott Wood wrote:
> David Gibson wrote:
> > On Wed, Feb 07, 2007 at 05:01:49PM -0600, Scott Wood wrote:
> >>Add a bootwrapper platform (cuboot) that takes a bd_t from a legacy
> >>U-Boot, and inserts data from it into a device tree which has been
> >>compiled into the kernel. This should help ease the transition to
> >>arch/powerpc in cases where U-Boot has not yet been updated to pass a
> >>device tree, or where upgrading firmware isn't practical.
> >>The device trees currently in the kernel tree must have
> >>/chosen/linux,stdout-path added to work with cuboot.
> >>The kernel command line, mac addresses, and various clocks will be filled
> >>in based on the bd_t.
> > You're still using config dependent stuff in here...
> They come from platform files such as cuboot-83xx.c, not (directly) from
> the kernel config.
/me looks again...
.c files containing only #defines? My brain hurts.
Better to pass these in as -D flags from the gcc invocation within the
wrapper script, depending on the given platform (for the platform .o
*only*). Oh, and please don't call them CONFIG_* or everyone will
assume, like me, that they come from the kernel's overall config.h.
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
More information about the Linuxppc-dev