* Re: Help required for Compiling a staging driver
@ 2014-04-14 18:46 Greg KH
2014-04-14 18:50 ` Kumar Gaurav
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Greg KH @ 2014-04-14 18:46 UTC (permalink / raw)
To: kernel-janitors
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.
And again, not as root please.
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread* Help required for Compiling a staging driver
2014-04-14 18:46 Help required for Compiling a staging driver Greg KH
@ 2014-04-14 18:50 ` Kumar Gaurav
2014-04-14 18:55 ` Greg KH
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Kumar Gaurav @ 2014-04-14 18:50 UTC (permalink / raw)
To: kernel-janitors
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
So, No module is getting build and again i'm not getting any Error as
well. Please tell me where i'm doing wrong.
Regards,
Kumar Gaurav
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Help required for Compiling a staging driver
2014-04-14 18:46 Help required for Compiling a staging driver Greg KH
2014-04-14 18:50 ` Kumar Gaurav
@ 2014-04-14 18:55 ` Greg KH
2014-04-14 18:58 ` Andev
2014-04-14 18:59 ` Kumar Gaurav
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2014-04-14 18:55 UTC (permalink / raw)
To: kernel-janitors
On Tue, Apr 15, 2014 at 12:17:24AM +0530, Kumar Gaurav wrote:
> 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)?
There's whole books out there that describe how to configure and build a
kernel, I suggest you look into them first (Linux Kernel in a Nutshell
is free online...)
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help required for Compiling a staging driver
2014-04-14 18:46 Help required for Compiling a staging driver Greg KH
2014-04-14 18:50 ` Kumar Gaurav
2014-04-14 18:55 ` Greg KH
@ 2014-04-14 18:58 ` Andev
2014-04-14 18:59 ` Kumar Gaurav
3 siblings, 0 replies; 5+ messages in thread
From: Andev @ 2014-04-14 18:58 UTC (permalink / raw)
To: kernel-janitors
On Mon, Apr 14, 2014 at 2:47 PM, Kumar Gaurav
<kumargauravgupta3@gmail.com> wrote:
>
> 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)?
>
$ make defconfig
$ make localmodconfig
$ make -j4
Please read: http://www.kroah.com/lkn/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help required for Compiling a staging driver
2014-04-14 18:46 Help required for Compiling a staging driver Greg KH
` (2 preceding siblings ...)
2014-04-14 18:58 ` Andev
@ 2014-04-14 18:59 ` Kumar Gaurav
3 siblings, 0 replies; 5+ messages in thread
From: Kumar Gaurav @ 2014-04-14 18:59 UTC (permalink / raw)
To: kernel-janitors
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-04-14 18:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 18:46 Help required for Compiling a staging driver Greg KH
2014-04-14 18:50 ` Kumar Gaurav
2014-04-14 18:55 ` Greg KH
2014-04-14 18:58 ` Andev
2014-04-14 18:59 ` Kumar Gaurav
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox