summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2009-03-13 07:44:36 -0700
committerKhem Raj <raj.khem@gmail.com>2009-03-13 07:44:36 -0700
commit151270f47ba3382b708a6bb86b90baef43bf3c7a (patch)
treeda1a7974d528e3c44641f8133ece51e45e19d812 /classes
parent3992e7dd4369223e190c2ab61fcc601dd1e5ecc7 (diff)
parente49b45906527062083b716c33c840b49e3c8741c (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'classes')
-rw-r--r--classes/kernel.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 86f00da5cf..4c1dbda35c 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -295,12 +295,14 @@ python populate_packages_prepend () {
def extract_modinfo(file):
import tempfile, os, re
tempfile.tempdir = bb.data.getVar("WORKDIR", d, 1)
- tmpfile = tempfile.mkstemp()[1]
+ tf = tempfile.mkstemp()
+ tmpfile = tf[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (bb.data.getVar("PATH", d, 1), bb.data.getVar("HOST_PREFIX", d, 1) or "", file, tmpfile)
os.system(cmd)
f = open(tmpfile)
l = f.read().split("\000")
f.close()
+ os.close(tf[0])
os.unlink(tmpfile)
exp = re.compile("([^=]+)=(.*)")
vals = {}