diff options
Diffstat (limited to 'meta/classes/linux-kernel-base.bbclass')
| -rw-r--r-- | meta/classes/linux-kernel-base.bbclass | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/linux-kernel-base.bbclass b/meta/classes/linux-kernel-base.bbclass index 4e2e2da373..b3e0fdad7a 100644 --- a/meta/classes/linux-kernel-base.bbclass +++ b/meta/classes/linux-kernel-base.bbclass | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # parse kernel ABI version out of <linux/version.h> | 1 | # parse kernel ABI version out of <linux/version.h> |
| 2 | def get_kernelversion(p): | 2 | def get_kernelversion(p): |
| 3 | import re, os | 3 | import re |
| 4 | 4 | ||
| 5 | fn = p + '/include/linux/utsrelease.h' | 5 | fn = p + '/include/linux/utsrelease.h' |
| 6 | if not os.path.isfile(fn): | 6 | if not os.path.isfile(fn): |
| @@ -30,7 +30,6 @@ def get_kernelmajorversion(p): | |||
| 30 | return None | 30 | return None |
| 31 | 31 | ||
| 32 | def linux_module_packages(s, d): | 32 | def linux_module_packages(s, d): |
| 33 | import bb, os.path | ||
| 34 | suffix = "" | 33 | suffix = "" |
| 35 | return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split())) | 34 | return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split())) |
| 36 | 35 | ||
