public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Krufky <mkrufky@m1k.net>
To: Andrew Morton <akpm@osdl.org>
Cc: astralstorm@gorzow.mm.pl, linux-kernel@vger.kernel.org
Subject: Re: MM kernels - how to keep on the bleeding edge?
Date: Tue, 26 Jul 2005 20:40:09 -0400	[thread overview]
Message-ID: <42E6D7E9.2080408@m1k.net> (raw)
In-Reply-To: <20050726144149.0dc7b008.akpm@osdl.org>

Andrew Morton wrote:

>Michael Krufky <mkrufky@m1k.net> wrote:
>  
>
>>[ tracking mm stuff ]
>>    
>>
While we're on the topic of how -mm works, I have a question for you.  
How can I test a kernel source tree (during compilation) to determine 
whether it is a -mm tree or a -linus tree?

I will give you an example of what I am trying to do:

video4linux cvs is backwards compatible with older 2.6 kernels.  We keep 
backwards compatibility so that users can install newer device drivers 
without having to compile an entire kernel.  There are things like:

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)

...all over the code that allows it to compile cleanly with many 
different versions.  Our patching scripts eliminate these "compatibility 
tests" from the source when building patches, and only presents the code 
compatible with the correct kernel version, so this doesn't interfere 
with development or the patching process.

However, sometimes there are patches in -mm that are incompatable with 
-linus.  An example of this is "Pavel's pm_message_t mangling" ... 
Testing for the numbered 2.6.x version isn't enough of a test in a case 
like this, but it would be nice to be able to develop against the most 
recent version of both the -mm tree and the -linus tree without having 
to revert patches.  Of course, v4l has chosen to maintain compatibility 
with -mm, for the sake of patch generation, and I have a handy 
-linus-compat.patch on the side for now if I want to build cvs against 
-linus, until Pavel's patches get merged later on.  But I'm sure things 
like this must happen all the time.  How do others deal with issues like 
these automatically?

It doesn't matter which -mm version or which -linus version it is... I 
can already test for 2.6.x ... All that matters is if it is -mm or 
-linus.  If there isn't already an answer to this question, maybe you 
can create a /linux/.mm file, or something like that.  A Makefile can 
test for the presence of that file... or is there already a file present 
that is unique to the -mm tree?

-- 
Michael Krufky


  parent reply	other threads:[~2005-07-27  0:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-26 16:58 MM kernels - how to keep on the bleeding edge? Radoslaw AstralStorm Szkodzinski
2005-07-26 19:45 ` Michael Krufky
2005-07-26 20:15   ` Radoslaw AstralStorm Szkodzinski
2005-07-26 20:26     ` Michael Krufky
2005-07-26 21:41       ` Andrew Morton
2005-07-26 22:32         ` Andrew Morton
2005-07-26 22:52           ` Radoslaw AstralStorm Szkodzinski
2005-07-26 22:49         ` Radoslaw AstralStorm Szkodzinski
2005-07-26 23:11           ` Andrew Morton
2005-07-26 23:25             ` Radoslaw AstralStorm Szkodzinski
2005-07-26 23:35               ` Andrew Morton
2005-07-26 23:54                 ` Randy Dunlap
2005-07-27  0:00                 ` Radoslaw AstralStorm Szkodzinski
2005-07-27  0:08                   ` Andrew Morton
2005-07-30  2:39             ` Paul Jackson
2005-07-27  0:40         ` Michael Krufky [this message]
2005-07-27  1:02           ` Michael Krufky
2005-07-27  1:04           ` Andrew Morton
2005-07-27  1:13             ` Michael Krufky

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=42E6D7E9.2080408@m1k.net \
    --to=mkrufky@m1k.net \
    --cc=akpm@osdl.org \
    --cc=astralstorm@gorzow.mm.pl \
    --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