All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anders Darander <anders.darander@gmail.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [RFC PATCH 3/5] linux-kernel-base: add support for Linux 3.x
Date: Wed, 22 Jun 2011 12:41:47 +0200	[thread overview]
Message-ID: <BANLkTim13H6v6T5eovEOYVXoiW=4bOtLXg@mail.gmail.com> (raw)
In-Reply-To: <1308738156.21613.80.camel@phil-desktop>

On Wed, Jun 22, 2011 at 12:22, Phil Blundell <pb@pbcl.net> wrote:
> On Tue, 2011-06-21 at 21:10 +0200, Anders Darander wrote:
>> If we keep the kernel_majorversion, we'll need to have something
>> similar to this,
>> as the major version up to 2.6 was determined by X.Y. From 3.0, only the first
>> digit represents the major number; while the second digit (0 in 3.0)
>> is equal to
>> x in 2.6.x. Thus, the function to determine the major version has to
>> return either
>> 2.6 or 3.
>
> Well, the thing is that OE's "kernelmajorversion" was always something
> of an artificial construct.  It was introduced purely as a way of coping
> with some of the differences between 2.4 and 2.6: this was primarily the
> different module format, but it also happened to coincide with major
> rewrites of the iPAQ and Zaurus kernels which were the main ones we were
> using in OE at the time.  Returning "3" here isn't going to be helpful
> since none of the classes will know what to do with that value: all they
> ever do is compare it against either 2.4 or 2.6.  The exact form of
> those tests has never been standardised, so there is a risk that you
> might encounter

I assumed that the reason was that; and it's nice to get a better grip of the
older history. (At that time I was more concerned with Buildroot and uCLinux).

> Since there are no material differences between Linux 2.6 and Linux 3.0
> that OE needs to be aware of, I think it would make most sense for
> kernelmajorversion() to continue returning "2.6" for Linux 3.0 and
> future versions if we did want to keep that mechanism.

Yes, and that's why I completely removed the tests in the bbclasses that
I've touch sofar.

> However, since the whole purpose of the mechanism was to ease the
> transition from 2.4 to 2.6, I am fairly confident that it can just be
> deleted altogether if support for 2.4 is being removed.

Sounds good. I'll grep through a few more classes to see if the tests seems
to occur in more places. Unless I find that the major version is used for
something else, I'll remove it.

Regards,
Anders



  reply	other threads:[~2011-06-22 10:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-21 18:18 [RFC PATCH 0/5] Linux 3.0 build support Anders Darander
2011-06-21 18:18 ` [RFC PATCH 1/5] Remove support for building 2.4 kernels Anders Darander
2011-06-21 18:47   ` Phil Blundell
2011-06-21 19:05     ` Anders Darander
2011-06-21 18:18 ` [RFC PATCH 2/5] module-init-tools-cross: add provides for depmod-3 Anders Darander
2011-06-21 18:22   ` Koen Kooi
2011-06-21 18:40     ` Anders Darander
2011-06-21 18:46   ` Phil Blundell
2011-06-21 19:03     ` Anders Darander
2011-06-22  5:49       ` Anders Darander
2011-06-21 18:18 ` [RFC PATCH 3/5] linux-kernel-base: add support for Linux 3.x Anders Darander
2011-06-21 18:45   ` Phil Blundell
2011-06-21 19:10     ` Anders Darander
2011-06-22 10:22       ` Phil Blundell
2011-06-22 10:41         ` Anders Darander [this message]
2011-06-21 18:18 ` [RFC PATCH 4/5] modutils-initscripts: move recipe prior to modutils removal Anders Darander
2011-06-21 18:18 ` [RFC PATCH 5/5] modutils: remove modutils Anders Darander

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='BANLkTim13H6v6T5eovEOYVXoiW=4bOtLXg@mail.gmail.com' \
    --to=anders.darander@gmail.com \
    --cc=openembedded-core@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.