diff options
Diffstat (limited to 'meta/classes/kernel.bbclass')
| -rw-r--r-- | meta/classes/kernel.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 90af59712c..116e10b9de 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
| @@ -313,12 +313,12 @@ module_conf_rfcomm = "alias bt-proto-3 rfcomm" | |||
| 313 | 313 | ||
| 314 | python populate_packages_prepend () { | 314 | python populate_packages_prepend () { |
| 315 | def extract_modinfo(file): | 315 | def extract_modinfo(file): |
| 316 | import tempfile, re | 316 | import tempfile, re, subprocess |
| 317 | tempfile.tempdir = d.getVar("WORKDIR", True) | 317 | tempfile.tempdir = d.getVar("WORKDIR", True) |
| 318 | tf = tempfile.mkstemp() | 318 | tf = tempfile.mkstemp() |
| 319 | tmpfile = tf[1] | 319 | tmpfile = tf[1] |
| 320 | cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (d.getVar("PATH", True), d.getVar("HOST_PREFIX", True) or "", file, tmpfile) | 320 | cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (d.getVar("PATH", True), d.getVar("HOST_PREFIX", True) or "", file, tmpfile) |
| 321 | os.system(cmd) | 321 | subprocess.call(cmd, shell=True) |
| 322 | f = open(tmpfile) | 322 | f = open(tmpfile) |
| 323 | l = f.read().split("\000") | 323 | l = f.read().split("\000") |
| 324 | f.close() | 324 | f.close() |
