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. |
All times are GMT -5. The time now is 12:53 PM. |