Hello Sam,
Thanks for your help. As per your suggestion I modified
the Makefile. However I get main.ko in the maind
directory and foobard.ko in foobard directory. These are
two independent kernel modules. I tried several other things
in the Makefile and I did not make any progress to build
one
Hello,
I have a Kernel module source tree similar as below:
|
|--Makefile
|
|--maind
||
||
||-- main.c
|
|
|--foobard
||
|
|-- foobar1.c
|
|-- foobar2.c
The below make file works fine.
Hi Suzzane
However I would like to know if it is possible to have a Makefile
inside the foobard directory that will link foobar1.o and foobar2.o
into one say foobar.o and have the below line as:
The lowest granularity the kbuild system works with is a module.
So what you can do is to