diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/uninative.bbclass | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass index 7e225e6f15..270c1b0be4 100644 --- a/meta/classes/uninative.bbclass +++ b/meta/classes/uninative.bbclass | |||
@@ -83,12 +83,10 @@ python uninative_changeinterp () { | |||
83 | except oe.qa.NotELFFileError: | 83 | except oe.qa.NotELFFileError: |
84 | continue | 84 | continue |
85 | 85 | ||
86 | #bb.warn("patchelf-uninative --set-interpreter %s %s" % (d.getVar("UNINATIVE_LOADER", True), f)) | 86 | try: |
87 | cmd = "patchelf-uninative --set-interpreter %s %s" % (d.getVar("UNINATIVE_LOADER", True), f) | 87 | subprocess.check_output(("patchelf-uninative", "--set-interpreter", |
88 | p = subprocess.Popen(cmd, shell=True, | 88 | d.getVar("UNINATIVE_LOADER", True), f)) |
89 | stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | 89 | except subprocess.CalledProcessError as e: |
90 | stdout, stderr = p.communicate() | ||
91 | if p.returncode: | ||
92 | bb.fatal("'%s' failed with exit code %d and the following output:\n%s" % | 90 | bb.fatal("'%s' failed with exit code %d and the following output:\n%s" % |
93 | (cmd, p.returncode, stdout)) | 91 | (e.cmd, e.returncode, e.output)) |
94 | } | 92 | } |