aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-07-17 12:38:00 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-07-18 09:23:08 +0200
commit778f8b62c597f0550c33db4ab00f44979e02daa1 (patch)
treef376e48d13352fd461f4e98e98e178261c6e1723 /meta-oe/classes
parentc1952180fe80b5769d12f8247ab3d652d2d5c053 (diff)
downloadmeta-openembedded-778f8b62c597f0550c33db4ab00f44979e02daa1.tar.gz
meta-openembedded-778f8b62c597f0550c33db4ab00f44979e02daa1.tar.bz2
meta-openembedded-778f8b62c597f0550c33db4ab00f44979e02daa1.zip
kernel.bbclass: replace os.system with subprocess.call
Replace os.system with subprocess.call since the older function would fail (more or less) silently if the executed program cannot be found More info: http://docs.python.org/library/subprocess.html#subprocess-replacements [YOCTO #2454] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/classes')
-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 248cd2803..810d6de68 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"
python populate_packages_prepend () {
def extract_modinfo(file):
- import tempfile, re
+ import tempfile, re, subprocess
tempfile.tempdir = d.getVar("WORKDIR", True)
tf = tempfile.mkstemp()
tmpfile = tf[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (d.getVar("PATH", True), d.getVar("HOST_PREFIX", True) or "", file, tmpfile)
- os.system(cmd)
+ subprocess.call(cmd, shell=True)
f = open(tmpfile)
l = f.read().split("\000")
f.close()