Hi All,

I have been trying to generate a single .ko from multiple files which
are scattered across
multiple folders, any idea how to write such a makefile?

My module will be compiled externally i.e. not as part of Linux kernel
build infrastructure.

Apologies for dumb question, but I am not very familiar to Linux make yet.

My module looks like this:

Here is the directory structure.

  test-module
     |
     +-- test1
     |      |
     |      +--test1.c
     |      +--Makefile
     |
     +-- test2
     |    |
     |    +---test2.c
     |    +---Makefile
     |
     +-- Makefile

-Leo.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to