Re: some question about building kernel

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

 





On Sat, May 22, 2010 at 1:42 PM, loody <miloody@xxxxxxxxx> wrote:
hi Mulyadi :

2010/5/22 Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx>:
> On Sat, May 22, 2010 at 10:39, loody <miloody@xxxxxxxxx> wrote:
>> Dear all:
>> I have some questions as below:
>> 1. can we build/clean a specific module instead of building/clean the
>> whole module?
>
> meaning, a specific .ko file? AFAIK, you do that by directly
> mentioning the c file as argument to make, eg:
> make kernel/blah.c
>
>> 2. could we builld the kernel with multi-thread?
>
> something like make -j2 ? where "2" is the number of parallel build
> you wanna do?
I find what I want
"make M=xxx modules' where xxx is the location of driver.
But I have the follow problem:
when I clean it and re-module it, it seems not work
the mesage I attach as below:
root@ubuntu-t60:/media/sdb1/linux.2.6.30.9# make M=drivers/usb clean
 CLEAN   drivers/usb/.tmp_versions
 CLEAN   drivers/usb/Module.symvers drivers/usb/modules.order
root@ubuntu-t60:/media/sdb1/checkin/linux.2.6.30.9# make M=drivers/usb modules
 Building modules, stage 2.
 MODPOST 3 modules
root@ubuntu-t60:/media/sdb1/checkin/linux.2.6.30.9#

do I type the wrong command?
appreciate your help,
miloody


hey i'm not sure what i feel it isn't clearing .ko file inside your build directory.

try using this, it might help if your Makefile is correct.

For Building the .ko file:

make SUBDIRS=drivers/usb modules


For cleaning:

make SUBDIRS=drivers/usb clean
 
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




--
Regards:
Vineet Agarwal
Development Engineer, Calsoft
http://in.linkedin.com/in/vineetagrwal

[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