What about cross-compilation?
What about cross-compilation?
Posted Mar 3, 2005 10:48 UTC (Thu) by mhb (guest, #28187)In reply to: What about cross-compilation? by dwmw2
Parent article: Driver porting: compiling external modules
I have tried this on the simple hello.c module.
I use the ELDK cross compiler to generate code for
a ppc 440 from an X86 based machine. It fails
with some emulation mode problems, any ideas ?
[root@basher ebonymnt]# export CROSS_COMPILE=ppc_4xx-
[root@basher ebonymnt]# make -C /home/simon/ebonymnt/linux-2.6.10 M=`pwd`
make: Entering directory `/home/simon/ebonymnt/linux-2.6.10'
LD /home/simon/ebonymnt/built-in.o
CC [M] /home/simon/ebonymnt/hello.o
Building modules, stage 2.
MODPOST
CC /home/simon/ebonymnt/hello.mod.o
LD [M] /home/simon/ebonymnt/hello.ko
ppc_4xx-ld: unrecognised emulation mode: elf_i386
Supported emulations: elf32ppclinux elf32ppc elf32ppcsim
make[1]: *** [/home/simon/ebonymnt/hello.ko] Error 1
make: *** [modules] Error 2
make: Leaving directory `/home/simon/ebonymnt/linux-2.6.10'
[root@basher ebonymnt]#
Posted Oct 14, 2005 0:02 UTC (Fri)
by msprauve (guest, #33084)
[Link] (1 responses)
Posted May 2, 2006 13:59 UTC (Tue)
by DeferX (guest, #37486)
[Link]
By
Posted Nov 10, 2005 22:02 UTC (Thu)
by urs (guest, #33777)
[Link]
make CROSS_COMPILE=ppc_4xx- -C ...
instead of your command
CROSS_COMPILE=ppc_4xx- make -C ...
which handles make variables differently. See the make manual for details.
urs
Did anyone develop a resolution to this problem?What about cross-compilation?
Tray thisWhat about cross-compilation?
make CROSS_COMPILE=ppc_6xx- ARCH=ppc
It's work
defer
You should callWhat about cross-compilation?