On Tue, May 04, 2004 at 08:46:55PM +0100, Richard Danter wrote: > > Command line options are: > > -D__KERNEL__ -DMODULE -Wall -fno-builtins -O -c > >
A better approach is to create a small Makefile:
obj-m := rich.o
obj-y :=
Then use:
make -C $KERNELSRCDIR SUBDIRS=$PWD modules
This should give you the correct gcc options.
[Speaking of vanilla kernel, not knowing ELDK in this respect].
Sam
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
