diff options
author | Phil Blundell <philb@gnu.org> | 2012-10-17 20:34:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-18 12:04:22 +0100 |
commit | 11f5998e539f7b884ae1387252f8995b2dc7437f (patch) | |
tree | 9ff5607b5375adfa00beb936508325935fe3101f /meta/lib/oe/qa.py | |
parent | 91769af1c1175ac9bb43d16d05fb1c8736dd9287 (diff) | |
download | openembedded-core-11f5998e539f7b884ae1387252f8995b2dc7437f.tar.gz openembedded-core-11f5998e539f7b884ae1387252f8995b2dc7437f.tar.bz2 openembedded-core-11f5998e539f7b884ae1387252f8995b2dc7437f.zip |
lib/oe/qa: Trap exceptions when running objdump
This avoids propagating a failure if we encounter an ELF file
that objdump can't parse for any reason. Some versions and/or
configurations of objdump will refuse to read files for "the
wrong" architecture.
Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/qa.py')
-rw-r--r-- | meta/lib/oe/qa.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py index 9e5ab587b7..12dcd1fa49 100644 --- a/meta/lib/oe/qa.py +++ b/meta/lib/oe/qa.py @@ -102,5 +102,10 @@ class ELFFile: env = os.environ env["LC_ALL"] = "C" - self.objdump_output[cmd] = bb.process.run([ os.path.join(staging_dir, objdump), cmd, self.name ], env=env, shell=False)[0] - return self.objdump_output[cmd] + try: + bb.note("%s %s %s" % (objdump, cmd, self.name)) + self.objdump_output[cmd] = bb.process.run([ os.path.join(staging_dir, objdump), cmd, self.name ], env=env, shell=False)[0] + return self.objdump_output[cmd] + except Exception, e: + bb.note("%s %s %s failed: %s" % (objdump, cmd, self.name, e)) + return "" |