Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-18-2009, 07:54 PM   #1
LQ Newbie
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
old 2.4 kernel module makefile reuse

I have a kernel module that was developed long time back. This kernel module has got lot of sub-directories in it. Each subdirectory has got a "Makefile" that is specific to the sub-directory. At the system level, there is a "system makefile", which in-turn calls those sub-directory makefiles one by one using "make -f".
This works fine with 2.4 kernel.
Now, I want to migrate to 2.6 kernel.
And, I want to re-use those "makefiles" present in those sub-directories. Reason being that there are sub-directory specific -D options and -I options that cannot be shared at the system level.

I tried to use the following from a newly created system level makefile.

But, it is not working. It is trying to access the "Makefile" present in those sub-directories. But it is not doing any compilation.

Am I missing something?
Any pointers to reusing the makefiles?
Any solution for my requirement?

Thanks & Regards,


from, makefile, migrate

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
how to edit makefile for kernel module? bhuvanmital Programming 5 02-02-2006 05:06 AM
need help in writing Makefile for module in 2.6 kernel videsh Programming 1 01-19-2006 07:35 AM
need help in writing Makefile for module in 2.6 kernel videsh Linux - Software 3 01-19-2006 07:30 AM
reuse Makefile on different .c? chunlee Linux - Newbie 0 11-06-2004 07:48 PM
module makefile for c++ in kernel 2.6 yuhuahe Linux - Software 0 04-14-2004 06:03 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:50 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