Thread (1 message) 1 message, 1 author, 2001-09-06

Re: patch for mktree.c on cross compiles

From: Tom Rini <hidden>
Date: 2001-09-06 04:20:50

On Wed, Sep 05, 2001 at 04:43:33PM -0400, Dan Malek wrote:
andrew may wrote:
quoted
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help