Thread (3 messages) flat view 3 messages, 3 authors, 2004-05-04

Re: Simple module, but won't build

From: Sam Ravnborg <hidden>
Date: 2004-05-04 21:15:08

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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help