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:@
make KDIR=/local/arm-kernel CROSS_COMPILE=arm-linux-gnu-
Note also that the article is somewhat misleading -- the Makefile fragment
> KERNELDIR = /usr/src/linux
> CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include -O
>
> all: module.o
... 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.
