|
What about cross-compilation?What about cross-compilation?Posted Feb 7, 2003 15:50 UTC (Fri) by dwmw2 (subscriber, #2063)In reply to: What about cross-compilation? by sjmadsen Parent article: Driver porting: compiling external modules
It works perfectly for cross-compilation for me. If you override CROSS_COMPILE (or have it set in your kernel's top-level Makefile) that works just as it always did:@ Note also that the article is somewhat misleading -- the Makefile fragment > KERNELDIR = /usr/src/linux ... was _always_ broken and nonportable -- building using the kernel makefiles was the only way to get it working portably since about the 2.0 kernel. It doesn't kernel+arch-specific CFLAGS like -mregparm= -mno-gp-opt -mno-implicit-fp right.
(Log in to post comments)
What about cross-compilation? Posted Mar 3, 2005 10:48 UTC (Thu) by mhb (guest, #28187) [Link] 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]#
What about cross-compilation? Posted Oct 14, 2005 0:02 UTC (Fri) by msprauve (guest, #33084) [Link] Did anyone develop a resolution to this problem?
What about cross-compilation? Posted May 2, 2006 13:59 UTC (Tue) by DeferX (guest, #37486) [Link] Tray thismake CROSS_COMPILE=ppc_6xx- ARCH=ppc It's work
By
What about cross-compilation? Posted Nov 10, 2005 22:02 UTC (Thu) by urs (guest, #33777) [Link] You should call
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
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.