patch for mktree.c on cross compiles

Tom Rini trini at kernel.crashing.org
Thu Sep 6 14:20:50 EST 2001


On Wed, Sep 05, 2001 at 04:43:33PM -0400, Dan Malek wrote:
> andrew may wrote:
> > I would think everything in arch/ppc/boot/utils should be checked
> > for endian problems on cross compiles.
>
> Are the network-host macros the right things to use?  That's what
> always comes to mind for me, but I suspect there is a more standard
> set of macros from 'endian.h' or something........If it's OK with
> everyone I'll check it in, but it does look kind of weird.

Well, after some quick digging, here's what I found.  If we include
<asm/byteoder.h>, and deal with some __'s, which are exported outside
of the kernel, we can use these.  But, it's getting late and my brain
is giving up after being fried for a while today, so I could be wrong,
but I _think_ we can use asm/byteorder.h, possibly make some changes
to mkbugboot/mkprep/mktree and it'll just work (The first two only work
on big endian or x86.  Not other LE machines, I think :))

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list