summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/classes/kernel.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
index 248cd2803a..810d6de68f 100644
--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/classes/kernel.bbclass
@@ -316,12 +316,12 @@ module_conf_rfcomm = "alias bt-proto-3 rfcomm"
316 316
317python populate_packages_prepend () { 317python populate_packages_prepend () {
318 def extract_modinfo(file): 318 def extract_modinfo(file):
319 import tempfile, re 319 import tempfile, re, subprocess
320 tempfile.tempdir = d.getVar("WORKDIR", True) 320 tempfile.tempdir = d.getVar("WORKDIR", True)
321 tf = tempfile.mkstemp() 321 tf = tempfile.mkstemp()
322 tmpfile = tf[1] 322 tmpfile = tf[1]
323 cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (d.getVar("PATH", True), d.getVar("HOST_PREFIX", True) or "", file, tmpfile) 323 cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (d.getVar("PATH", True), d.getVar("HOST_PREFIX", True) or "", file, tmpfile)
324 os.system(cmd) 324 subprocess.call(cmd, shell=True)
325 f = open(tmpfile) 325 f = open(tmpfile)
326 l = f.read().split("\000") 326 l = f.read().split("\000")
327 f.close() 327 f.close()