Re: Help required for Compiling a staging driver

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

 



On Tuesday 15 April 2014 12:16 AM, Greg KH wrote:
On Tue, Apr 15, 2014 at 12:08:18AM +0530, Kumar Gaurav wrote:
Hi All,

I'm trying to upgrade a driver using semaphore to use mutex. I have
applied the required changes. Now i want to compile it to ensure that i
didn't broke the kernel.

Driver Path:drivers/staging/dgap/
I Marked this driver to load as loadable module

      kumar@anandlinux:/usr/linux-git$ grep CONFIG_DGAP .config
      CONFIG_DGAP=m

Now I'm trying to compile it using below command and getting result as given
      kumar@anandlinux:/usr/linux-git$ sudo make M=drivers/staging/dgap/
        Building modules, stage 2.
        MODPOST 0 modules
Never build kernel code as root.  We used to have a bug in the build
system that if you did this, it would delete your whole filesystem.
Some of us argued that we should leave it there just to keep people from
ever doing this again :)

So, No module is getting build and again i'm not getting any Error as
well. Please tell me where i'm doing wrong.
Have you built this kernel source tree before?  Do a full build first,
before trying to just build one directory.  That should resolve the
issue.
What does it mean by full build? You mean compiling All modules? If yes then is there anyway to mark all module at once or i need to mark everything one by one (i use menuconfig)?
And again, not as root please.

greg k-h

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux