Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 06-17-2008, 07:58 AM   #1
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 132

Rep: Reputation: 16
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 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 ?
Old 06-17-2008, 09:36 AM   #2
LQ Newbie
Registered: Jan 2006
Location: Twin Cities, Minnesota, USA
Distribution: Gentoo
Posts: 5

Rep: Reputation: 0
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.


compile, kernel, module

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
can't compile modules willyweedle Linux - General 2 06-16-2007 03:35 PM
didnt compile as modules, a way to get modules? android6011 Linux - General 6 09-06-2006 08:38 PM
compile or modules? redjokerx Linux - General 3 01-27-2005 12:08 AM
Compile Error- /lib/modules/extra/modules.dep UpChuck Debian 2 01-11-2004 10:20 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration