Received: with ECARTIS (v1.0.0; list linux-xfs); Mon, 09 Jan 2006 13:49:56 -0800 (PST) Received: from pasmtp.tele.dk (pasmtp.tele.dk [193.162.159.95]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k09Lnqm2008285 for ; Mon, 9 Jan 2006 13:49:52 -0800 Received: from mars.ravnborg.org (0x50a0757d.hrnxx9.adsl-dhcp.tele.dk [80.160.117.125]) by pasmtp.tele.dk (Postfix) with ESMTP id D75CC1EC318; Mon, 9 Jan 2006 22:46:00 +0100 (CET) Received: by mars.ravnborg.org (Postfix, from userid 1000) id F37BC43CD24; Mon, 9 Jan 2006 22:45:44 +0100 (CET) Date: Mon, 9 Jan 2006 22:45:44 +0100 From: Sam Ravnborg To: Eric Sandeen Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, linux-xfs@oss.sgi.com Subject: Re: xfs: Makefile-linux-2.6 => Makefile? Message-ID: <20060109214544.GA17315@mars.ravnborg.org> References: <20060109164214.GA10367@mars.ravnborg.org> <20060109164611.GA1382@infradead.org> <43C2CFBD.8040901@sgi.com> <20060109212005.GC14477@mars.ravnborg.org> <43C2D45B.2050704@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43C2D45B.2050704@sgi.com> User-Agent: Mutt/1.5.11 X-archive-position: 7150 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: sam@ravnborg.org Precedence: bulk X-list: linux-xfs Content-Length: 924 Lines: 29 On Mon, Jan 09, 2006 at 03:23:39PM -0600, Eric Sandeen wrote: > codebases. > > But it seems useful for projects outside the kernel which would like to > know which kernel they are building against, as far as the build system > goes. I've seen a few drivers out there that try to keep building for both > 2.4 & 2.6. > > I guess for 2.4 & 2.6, the same can be accomplished by using Makefile and > Kbuild for 2.4 and 2.6.... Good point. External modules slipped my mind when I did this change. We have today: VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 15 EXTRAVERSION = EXTRAVERSION will soon become -rc1 No sane driver will check for more than VERISON, PATCHLEVEL, SUBLEVEL. xfs for once only used VERSION, PATCHLEVEL. googling a little gave lot's of very ugly examples how it can be done using grep, perl etc. So there is a legitim need for the variable anyway. So I will re-export VERISON, PATCHLEVEL, SUBLEVEL. Sam