I am new to kernel build system. I have an folder 'x' having source code and makefile to generate x.ko
I am trying to introduce a new folder 'y' which should be compiled as a library 'y.a' and must be linked to x.ko.
Can anyone please point me to an example how to do that?