Simple module, but won't build

Sam Ravnborg sam at ravnborg.org
Wed May 5 07:15:08 EST 2004


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/





More information about the Linuxppc-embedded mailing list