diff options
author | Anders Darander <anders@chargestorm.se> | 2011-07-01 15:08:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-01 23:34:18 +0100 |
commit | f370e45cbbe9dfa35e3b4d26190371b5d1d63d10 (patch) | |
tree | f553b21e3bb8a11aea23e230671ad1959ba26358 | |
parent | bdfbb1f27e2a8a625e037f63876be2910424c7f0 (diff) | |
download | poky-f370e45cbbe9dfa35e3b4d26190371b5d1d63d10.tar.gz |
kernel.bblass: remove get_kernelmajorversion
It is now unused.
(From OE-Core rev: 18a0f1dfd9d36e53a3adba74f30e756769a74a0b)
Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/linux-kernel-base.bbclass | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/meta/classes/linux-kernel-base.bbclass b/meta/classes/linux-kernel-base.bbclass index 510951a620..4f2b0a4a98 100644 --- a/meta/classes/linux-kernel-base.bbclass +++ b/meta/classes/linux-kernel-base.bbclass | |||
@@ -24,14 +24,6 @@ def get_kernelversion(p): | |||
24 | return m.group(1) | 24 | return m.group(1) |
25 | return None | 25 | return None |
26 | 26 | ||
27 | def get_kernelmajorversion(p): | ||
28 | import re | ||
29 | r = re.compile("([0-9]+\.[0-9]+).*") | ||
30 | m = r.match(p); | ||
31 | if m: | ||
32 | return m.group(1) | ||
33 | return None | ||
34 | |||
35 | def linux_module_packages(s, d): | 27 | def linux_module_packages(s, d): |
36 | suffix = "" | 28 | suffix = "" |
37 | return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split())) | 29 | return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split())) |