Re: module makefile examples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Jared Greenwald a écrit :

> I'm trying to find a decent example of a module makefile that allows
> the module to build against trees other than the running kernel.  Does
> anyone know of a good example of this.

I'm not an expert of the kernel build system, but as nobody answered to
your message, I'll try to do so.

In http://lwn.net/Articles/21823/, you will see you to compile external
modules with kernel 2.6. It is explained that:

«
    make -C /path/to/source SUBDIRS=$PWD modules

Where /path/to/source is the path to the source directory for the
(configured and built) target kernel. This command causes make to head
over to the kernel source to find the top-level makefile; it then moves
back to the original directory to build the module of interest.
»

If it doesn't work for you, please post a detailled question, with
associated error messages.

Sincerly,

Thomas
-- 
Thomas Petazzoni
thomas.petazzoni@xxxxxxxx

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux