mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
classes: Remove and sanitise import statements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# parse kernel ABI version out of <linux/version.h>
|
||||
def get_kernelversion(p):
|
||||
import re, os
|
||||
import re
|
||||
|
||||
fn = p + '/include/linux/utsrelease.h'
|
||||
if not os.path.isfile(fn):
|
||||
@@ -30,7 +30,6 @@ def get_kernelmajorversion(p):
|
||||
return None
|
||||
|
||||
def linux_module_packages(s, d):
|
||||
import bb, os.path
|
||||
suffix = ""
|
||||
return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user