* [PATCH] uninative: Improve error handling
@ 2016-02-04 8:31 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-02-04 8:31 UTC (permalink / raw)
To: openembedded-core
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>
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 38c05df..580917b 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -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)
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-04 8:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 8:31 [PATCH] uninative: Improve error handling Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.