Re: Trouble making module

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

 



On Mon, 11 Oct 2010, Dave Hylands wrote:

> HI Shivanth,
>
> On Mon, Oct 11, 2010 at 8:20 AM, shivanth m p <fordearlinux@xxxxxxxxx> wrote:
> > I created a kernel module for the 2.6.33 kernel outside the kernel source
> > directory . When i give the make command it says
> > Nothing to be done for /root/mydrivers
> >
> > Here's my makefile
> >
> >  obj-m +=mydiver.o
> > modules :
> >              make -C ..kerndev/linux-2.6/  M=$(PWD) modules
> > clean :
> >              make -C ../kerndev/linux-2.6/  M=$(PWD) clean
> >
> > my module source is in /root/mydrivers and the kernel source in
> > /root/kerndev/linux-2.6
>
> When you invoke make by default with no arguments, it assume you typed
> make all. Since your makefile has no all target, it thinks that there
> is nothing to be done.

  no, it will simply use the first target it finds.

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux