Re: Help compiling trunk modules on Fedora Core 3 / x86

From: Stefan Richter <stefanr_at_s5r6.in-berlin.de>
Date: Sat 26 Feb 2005 - 10:19:27 CET
Message-Id: <200502260918.j1Q9IWSn012887@einhorn.in-berlin.de>

Richard Michael wrote:
> I read the instructions on upgrading drivers at linux1394.org. I then
> read the FC3 release notes. They indicate I don't need a full kernel
> tree to build modules for the running kernel.

I do not know to which modules they refer to. To build drivers from the
sources from linux1394.org, you definitely need to insert them into the
kernel source tree and need to run "make" or "make modules" in the root
of the kernel source tree. (In case of Linux 2.4, "make dep" is
necessery before the first build.)

> How can I compile the modules against the running kernel

The source tree must match the kernel exactly, including the version
info in Makefile and all options concerning statically linked kernel
features in .config in the root of the kernel source tree.

> without rebuilding the entire modules subdirectory?

You would have to hack the build & install system. It is easier to just
build everything. I would even recommend to build & install & boot a new
kernel image with a different sub-release string and let the distro's
binary kernel + modules intact.

If you change the 1394 drivers or their options later, a rebuild will of
course only rebuild these changed portions.

Also note that the latest sources from linux1394.org require Linux
2.6.11. For Linux 2.4, you need to check out branches/linux-2.4 (but the
drivers of recent Linux 2.4 releases are OK anyway.) For Linux 2.6.10,
you need to check out trunk at revision 1254 or older. For Linux
2.6.8.1, you need to check out trunk at revision 1234 or older. It may
also be possible to build the latest revision with Linux 2.6.10 or older
by reverting some of the updates to linux1394.org's drivers that only
introduced new macros from Linux 2.6.11.

-- 
Stefan Richter
-=====-=-=-= --=- ==-=-
http://arcgraph.de/sr/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
mailing list Linux1394-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-user
Received on Sat Feb 26 10:22:48 2005

This archive was generated by hypermail 2.1.8 : Mon 02 May 2005 - 09:16:53 CEST