summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-01-12 19:20:45 +0100
committerKoen Kooi <koen@openembedded.org>2009-01-12 19:20:45 +0100
commitc3129dd45149b3d937ed0c1000b966042cd6e88e (patch)
tree1543e805039f0896d74836c68917262ad3d6919e /classes
parent475f68cf286346501ffe455d39f7269c4aa87709 (diff)
parent09812530406d30b76d69d969adad33643c4a93b9 (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.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index e8f2fb6d71..c864782d4d 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -293,8 +293,9 @@ module_conf_rfcomm = "alias bt-proto-3 rfcomm"
python populate_packages_prepend () {
def extract_modinfo(file):
- import os, re
- tmpfile = os.tmpnam()
+ import tempfile, os, re
+ tempfile.tempdir = bb.data.getVar("WORKDIR", d, 1)
+ tmpfile = tempfile.mkstemp()[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)