LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

Rep: Reputation: 0
old 2.4 kernel module makefile reuse


Hi,
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.
make -C $(KERNEL_SRC) SUBDIRS="$(LIST_OF_SUB_DIRECTORIES)" modules

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,
Kannan
 
  


Reply

Tags
from, makefile, migrate



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:31 PM.

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