Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Applied: build system changes: msg#00054

Subject: Re: Applied: build system changes
On Thu, May 27, 2004 at 02:15:28PM -0400, Pavel Roskin wrote:
> Hello!
> 
> I have fixed a check for the kernel version in the Makefile that would 
> assume that any kernel without Rules.make is a 2.6 kernel.  Now Makefile 
> checks the kernel version instead.  This allows building the driver 
> against heavily stripped 2.4 kernel trees.  In particular, the driver can 
> be compiled on KNOPPIX 3.4.

Nice.

> There are some changes on the 2.6 side.  It has been some time since the 
> build system supports building external modules by setting the "M" 
> variable.  Using SUBDIRS instead is was a hack and it may break in any 
> later version of the kernel.  Using "M" is documented and is likely to be 
> preserved.

Oh, very nice, I wasn't aware of the M flag.  I never like the SUBDIRS
things very much.

> I was able to verify that the kernel shipped with Fedora Core 2 (that's 
> patched 2.6.5) allows using the new build system.  If you have a kernel 
> from 2.5.x to 2.6.4, you won't be able to compile the driver outside the 
> tree.  In this case it's recommended to upgrade the kernel.  The second 
> best option is replacing the driver in the kernel source.
> 
> I'm sorry for inconvenience, but those kernels didn't provide a way to 
> build modules outside the kernel tree.  We were doing it through a 
> "backdoor".  It's more important to ensure that the next standalone 
> release won't break with future, more stable 2.6 kernels.

Agreed.

-- 
David Gibson                    | For every complex problem there is a
david AT gibson.dropbear.id.au  | solution which is simple, neat and
                                | wrong.
http://www.ozlabs.org/people/dgibson


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click


<Prev in Thread] Current Thread [Next in Thread>