I want to add systemcall to Linux kernel 3.6.x. I have two files myheader.h and mycode.c.
As I have seen on some articles, I did the following:
Create a folder from root directory
/linux/myfolder.Create Makefile in
myfolderwith the rule:obj-y := mycode.oand I put
mycode.cfile in this folder.I modify the main Makefile form the root directory.
core-y := usr/ myfolder/
Where should I put myheader.h and what rules should I have to add to the makefiles ?
I tried putting it inside /linux/include but it fails to compile.
You can have header file locally(within same directory as source file), and include it with simple
#include "myheader.h".