Help required for Compiling a staging driver
Quoted 9 lines · Kumar Gaurav
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
Quoted 7 lines
kumar@anandlinux:/usr/linux-git$ grep CONFIG_DGAP .config CONFIG_DGAP=mNow 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 :)
Quoted 2 lines
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
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=mNow 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 modulesSo, 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
Quoted 23 lines · Kumar Gaurav
Quoted 22 lines · Greg KH
Quoted 9 lines · Kumar Gaurav
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 moduleQuoted 7 lines
kumar@anandlinux:/usr/linux-git$ grep CONFIG_DGAP .config CONFIG_DGAP=mNow 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 modulesNever 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 :)
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
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
Quoted 5 lines · Kumar Gaurav
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/
Quoted 22 lines · Greg KH
Quoted 9 lines · Kumar Gaurav
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 moduleQuoted 7 lines
kumar@anandlinux:/usr/linux-git$ grep CONFIG_DGAP .config CONFIG_DGAP=mNow 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 modulesNever 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 :)
Quoted 5 lines
Quoted 2 lines
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)?
Quoted 3 lines
And again, not as root please.
greg k-h