Re: compiling "hello world" kernel module on 2.6 kernel

From: Sam Ravnborg
Date: Sun May 08 2005 - 13:32:59 EST


On Sat, May 07, 2005 at 07:20:26AM -0700, li nux wrote:
> Thanks Espen, but it didnt worked.
> Please tell me where i am wrong:
> hello.c is at /local/usr/linux-2.6.5-7.162
> i did a cd to /local/usr/linux-2.6.5-7.162
> created makefile called Makefile.1 as u suggested.
> and did a make -f Makefile.1

Wrong.
Put hello.c somewhere in you home directory.
The Makefile shall be placed in same directory.

Restore any files you have overwritten in the kernel dir (like the
Makefile)
Then it will work out.

If not post full details including the output of the make command with
V=1 included: $(MAKE) -C $(KERNELDIR) V=1 M=$(PWD)

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/