[U-Boot-Users] Boot the kernel from a JFFS2 filesystem
Joakim Tjernlund
joakim.tjernlund at lumentis.se
Thu Mar 6 11:19:50 CET 2003
> In message <IGEFJKJNHJDCBKALBJLLMEOCFKAA.joakim.tjernlund at lumentis.se> you wrote:
> > > This could be solved with some (ugly):
> > > #ifdef __powerpc__
> > > #include <asm-ppc/byteorder.h>
> > > #elif ....
> >
> > Or create a asm link in tools: ln -s ../asm-$HOSTARCH asm
>
> You are aware that these are two _different_ solutions?
Of course I am! That's why I wrote "Or create ..."
^^
> On a x86 host, the former would pull in the PPC version of
> byteorder.h, while the latter would use the i386 version?
ehh?
Let me clarify. Either do like this:
#ifndef USE_HOSTCC
# include <common.h>
# include <asm/types.h>
# include <asm/byteorder.h>
#else
# ifdef __powerpc__
# include <asm-ppc/types.h>
# include <asm-ppc/byteorder.h>
# elif __i386__
# include <asm-i386/types.h>
# include <asm-i386/byteorder.h>
# elif ....
# endif
OR use the ln -s procedure
>
> BTW: there is no tools/../asm-* ;-)
Opps, meant ln -s ../include/asm-$HOSTARCH asm
Jocke
More information about the U-Boot
mailing list