Re: how to know what files build in one module?

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

 



> Makefile determine which file will be compiled.
Makefile also determines which objects are linked together to produce
your final relocatable kernel module.

> But how does the kernle finally know what is the name of module and
The module name comes IMO from the final object-name.ko.

> how many files are linked in this module?
The kernel doesn't need to know how many object were linked in.. why
would it? it just cares about the final ko object.

Try passing KBUILD_VERBOSE=1 to make if you're interested in seeing
what objects were linked in to produce your kernel module. But the
Makefile holds all the information you'd need. Also checkout
Documentation/kbuild/makefiles.txt in the kernel tree.

hope this helps,
-Joel

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


[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