All of lore.kernel.org
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner@gmail.com>
To: yocto@yoctoproject.org
Subject: [meta-raspberrypi][PATCH] linux-raspberrypi-base.bbclass: allow -rt kernels
Date: Mon, 28 Nov 2016 14:07:45 -0500	[thread overview]
Message-ID: <20161128190745.18053-1-twoerner@gmail.com> (raw)

If the PREEMPT_RT patch is applied, the kernel version becomes, say,
4.4.32-rt43 (instead of 4.4.32). This confuses the version handling code in
this class. Update how the version string is processed so that trailing rt-
strings are properly handled, in addition to handling the existing cases.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 classes/linux-raspberrypi-base.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/linux-raspberrypi-base.bbclass b/classes/linux-raspberrypi-base.bbclass
index 3a6e33d..fecac30 100644
--- a/classes/linux-raspberrypi-base.bbclass
+++ b/classes/linux-raspberrypi-base.bbclass
@@ -15,7 +15,7 @@ def get_dts(d, ver=None):
         ver = get_kernelversion_file(staging_dir)
 
     if ver is not None:
-        min_ver = ver.split('.', 3)
+        min_ver = re.split(r'[.-]+', ver, maxsplit=3)
     else:
         return dts
 
-- 
2.10.2



             reply	other threads:[~2016-11-28 19:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-28 19:07 Trevor Woerner [this message]
2016-11-28 23:16 ` [meta-raspberrypi][PATCH] linux-raspberrypi-base.bbclass: allow -rt kernels Khem Raj
2016-11-29  1:37   ` Trevor Woerner
2016-12-06 18:27     ` Andrei Gherzan
2016-12-06 18:37       ` Andrei Gherzan
2016-12-07  8:02         ` Andreas Müller

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=20161128190745.18053-1-twoerner@gmail.com \
    --to=twoerner@gmail.com \
    --cc=yocto@yoctoproject.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.