Hey,
I wanted to do some linux kernel modifications to learn it for myself.
I edited file /usr/src/linux/drivers/block/ide.c and added there function call, I also added header myLib.h to ide.c file. It looks like that:
ide.c
Code:
...
#include "myLib.c"
...
doTest1();
...
myLib.h
Code:
void doTest1(void);
myLib.c
Code:
void doTest1()
{
printk(KERN_INFO "DONE ITS WORKING");
}
myLib.h and myLib.c are both blaced in /usr/src/linux/drivers/block/
While compiling kernel i get some kind of info of missing reference for doTest1() function.
So far I have found that i should modify /usr/src/linux/drivers/block/Makefile Is it right way or something else is wrong ? Is modifying Makefile is right then how to modify it ?
Thanks!