summaryrefslogtreecommitdiffstats
path: root/meta/classes/uninative.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/uninative.bbclass')
-rw-r--r--meta/classes/uninative.bbclass11
1 files changed, 4 insertions, 7 deletions
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 410fb72d26..0d1063a13c 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -121,11 +121,8 @@ python uninative_changeinterp () {
121 if not elf.isDynamic(): 121 if not elf.isDynamic():
122 continue 122 continue
123 123
124 try: 124 subprocess.check_output(("patchelf-uninative", "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f), stderr=subprocess.STDOUT)
125 subprocess.check_output(("patchelf-uninative", "--set-interpreter", 125 subprocess.check_output(("cp", "--sparse=always", f, f + ".sparse"), stderr=subprocess.STDOUT)
126 d.getVar("UNINATIVE_LOADER"), f), 126 os.unlink(f)
127 stderr=subprocess.STDOUT) 127 os.rename(f + ".sparse", f)
128 except subprocess.CalledProcessError as e:
129 bb.fatal("'%s' failed with exit code %d and the following output:\n%s" %
130 (e.cmd, e.returncode, e.output))
131} 128}