]> code.ossystems Code Review - openembedded-core.git/commitdiff
uninative: Improve error handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Feb 2016 08:31:38 +0000 (08:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 6 Feb 2016 23:10:38 +0000 (23:10 +0000)
We need to improve the error handling here, things were breaking and
yet the user wasn't seeing the issues. We need to skip libraries as
we process the files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/uninative.bbclass

index 38c05dfc0ae4e7c79c469c5d1f6ea24bf4a0c045..580917b119277ffea0ff77f5b866f6818bc32412 100644 (file)
@@ -69,6 +69,8 @@ python uninative_changeinterp () {
     sstateinst = d.getVar('SSTATE_INSTDIR', True)
     for walkroot, dirs, files in os.walk(sstateinst):
         for file in files:
+            if file.endswith(".so") or ".so." in file:
+                continue
             f = os.path.join(walkroot, file)
             if os.path.islink(f):
                 continue
@@ -82,5 +84,5 @@ python uninative_changeinterp () {
                 continue
 
             #bb.warn("patchelf-uninative --set-interpreter %s %s" % (d.getVar("UNINATIVE_LOADER", True), f))
-            subprocess.call("patchelf-uninative --set-interpreter %s %s" % (d.getVar("UNINATIVE_LOADER", True), f), shell=True)
+            subprocess.check_call("patchelf-uninative --set-interpreter %s %s" % (d.getVar("UNINATIVE_LOADER", True), f), shell=True)
 }