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

From: li nux
Date: Sat May 07 2005 - 09:21:47 EST


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

--- Espen Fjellvær Olsen <espenfjo@xxxxxxxxx> wrote:
> On 5/7/05, li nux <lnxluv@xxxxxxxxx> wrote:
> >
> > default:
> > $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
>
> Try changing this to:
> " $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules"
>
>
> --
> Mvh / Best regards
> Espen Fjellvær Olsen
> espenfjo@xxxxxxxxx
> Norway
> -
> 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/
>



Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html

-
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/