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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux