aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-03-12 19:19:37 +0100
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-03-12 19:19:37 +0100
commit37dbb4f357544041026f864cffa8b54d4f6a14c8 (patch)
tree3ec98a905e9ea24825d80a3ec588434562e601a5
parent5ad2cf5ec3d4a172bdb6b5e71d9e05917fd935ab (diff)
parentbf59c40c3eccf42e098c7374e2bcfe7f2ec2f77d (diff)
downloadopenembedded-37dbb4f357544041026f864cffa8b54d4f6a14c8.tar.gz
openembedded-37dbb4f357544041026f864cffa8b54d4f6a14c8.tar.bz2
openembedded-37dbb4f357544041026f864cffa8b54d4f6a14c8.zip
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
-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 = {}