LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to compile only the modules? (https://www.linuxquestions.org/questions/linux-kernel-70/how-to-compile-only-the-modules-649871/)

ludist 06-17-2008 07:58 AM

How to compile only the modules?
 
Hello, after searching I din't find any info, sorry if I double post.

I want to read some sram cards so I changed my options in my custom kernel (latest 2.6.25.7) to support mtd.

Either the support for my device is absent, either I compile with wrong options.

Enough the irrelevant background. I want to compile ONLY the mtd modules, not the entire modules and kernel (bzImage).

I do:

cp myconfig .config
make oldconfig
make prepare
make drivers/mtd
(ALL ok, I have several .o files)

make modules_install fails: "modules.order is missing"

How can I install the mtd drivers; Manually cp and after that depmod -a ?

Also, my modules are .o files. The standard procedure (make bzImage; make modules) produces .ko files.

.o = .ko ?

erik258 06-17-2008 09:36 AM

I usually do a make modules and then make modules_install. The former will only build absent or outdated modules. I am not sure how to get just ATM modules, although I think I've built and copied specific ones over manually through trial and error I wouldn't recommend that approach.


All times are GMT -5. The time now is 08:27 PM.