public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Axel Weiss <aweiss@informatik.hu-berlin.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernelversion distinction (was 2.6.5 - incomplete headers?)
Date: Sun, 11 Apr 2004 22:33:16 +0200	[thread overview]
Message-ID: <20040411203315.GA2170@mars.ravnborg.org> (raw)
In-Reply-To: <200404112033.20025.aweiss@informatik.hu-berlin.de>

> 
> Any improvements? Up to which kernel version should old style make be used?

You cannot use same Makefile for both 2.4 and 2.6?

Using the syntax:
make -C $KERNELSRC SUBDIRS=$PWD modules

should allow you to do that if there is no special requirements.
The Makefile should be an ordinary kbuild Makefile in this case:

obj-m := module.o
module-objs := mod1.o mod2.o
etc..

Another approach would be to keep two Makefiles, one for 2.4, another
for 2.6. Default could be Makefile (for 2.6) and Makefile.24 for older kernels.
This makes much less conditionals.

	Sam

  reply	other threads:[~2004-04-11 20:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-11 11:27 2.6.5 - incomplete headers? Axel Weiss
2004-04-11 11:52 ` Jan Dittmer
2004-04-11 18:33   ` kernelversion distinction (was 2.6.5 - incomplete headers?) Axel Weiss
2004-04-11 20:33     ` Sam Ravnborg [this message]
2004-04-12 10:21       ` kernelversion distinction Axel Weiss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040411203315.GA2170@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=aweiss@informatik.hu-berlin.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox