LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 05-14-2009, 09:54 PM   #1
ao.yuan.young
LQ Newbie
 
Registered: May 2009
Posts: 12

Rep: Reputation: 0
Question Some Question about kbuild makefile


Hello, I'm a student from China, and I'm modifying the linux kernel to add some security functions to the Linux kernel. Now I have faced some some problems about Makefile in linux kernel, so I send this mail to ask for your help.

I have added some files into the folder linux-2.6.27/security. The following picture is the file architecture of the files I have added.
----------------------------------------------------------
linux-2.6.27/
####|--security/
########|--*Makefile
########|--&seclinux/
############|--Makefile
############|--audit/
################|--***.c
################|--Makefile
----------------------------------------------------------
The symbol '*' before linux-2.6.27/security/Makefile means that I have modified the original linux-2.6.27/security/Makefile. The symbol '&' before linux-2.6.27/security/seclinux/ means that the seclinux folder is newly added into the linux-2.6.27/security/ folder by me.

First: I have modified the original linux-2.6.27/security/Makefile. I added the following two lines into the file:
subdir-y +=seclinux
obj-y +=seclinux/built-in.o

Second: I creat the linux-2.6.27/security/seclinux/Makefile, and its content is:
subdir-y +=audit
obj-y += audit/built-in.o

Third: I create the linux-2.6.27/security/seclinux/audit/Makefile, and its content is:
obj-y += sec_audit.o
sec_audit-y := ***.o ***.o ****.o ...


I am uncertain whether I am correct to do like this. May you check and tell me whether I am correct?
And I have read the kbuild document in linux-2.6.27/Document/kbuild, and I think its content is so little, can you send me some more detailed document about kbuild? And you can get my e-mail addr from my profile.

Last edited by ao.yuan.young; 05-14-2009 at 09:56 PM.
 
  


Reply


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
Makefile question orgcandman Programming 3 02-27-2008 12:04 PM
g++ makefile question zahadumy Programming 4 03-25-2007 04:18 PM
Can kbuild execute non-kbuild makefiles? xuanadoo Linux - Newbie 0 10-15-2006 02:41 AM
Makefile.in question lucky6969b Programming 4 12-08-2005 03:32 AM
Any tools to help trace kbuild makefile?? knightk Linux - Software 0 10-19-2005 07:20 AM


All times are GMT -5. The time now is 04:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration