Building a single .ko file from multiple source files
I am writing a kernel level module. And my module source files are in two different directories. But i want to generate a single .ko file from these source files. I have a make file which will generate a single .ko file from multiple source files provided all the source files are in a single directory. But i dont how to change this to generate a single .ko file if source files are in two directories.
Dir1 is having file1.c,file2.c files
Dir2 is having file3.c file.
And Dir2 is inside the Dir1.
I want to compile all these files in to a single .ko file. Can any body know how to do this ? Thanks in advacne.