summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/uninative.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-global/uninative.bbclass')
-rw-r--r--meta/classes-global/uninative.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes-global/uninative.bbclass b/meta/classes-global/uninative.bbclass
index d2297b53f5..c246a1ecd6 100644
--- a/meta/classes-global/uninative.bbclass
+++ b/meta/classes-global/uninative.bbclass
@@ -109,7 +109,7 @@ ${UNINATIVE_STAGING_DIR}-uninative/relocate_sdk.py \
109 ${UNINATIVE_LOADER} \ 109 ${UNINATIVE_LOADER} \
110 ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux/${bindir_native}/patchelf-uninative \ 110 ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux/${bindir_native}/patchelf-uninative \
111 ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux${base_libdir_native}/libc*.so*" % chksum) 111 ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux${base_libdir_native}/libc*.so*" % chksum)
112 subprocess.check_output(cmd, shell=True) 112 subprocess.check_output(cmd, shell=True, text=True, stderr=subprocess.STDOUT)
113 113
114 with open(loaderchksum, "w") as f: 114 with open(loaderchksum, "w") as f:
115 f.write(chksum) 115 f.write(chksum)
@@ -122,7 +122,9 @@ ${UNINATIVE_STAGING_DIR}-uninative/relocate_sdk.py \
122 bb.warn("Disabling uninative as unable to fetch uninative tarball: %s" % str(exc)) 122 bb.warn("Disabling uninative as unable to fetch uninative tarball: %s" % str(exc))
123 bb.warn("To build your own uninative loader, please bitbake uninative-tarball and set UNINATIVE_TARBALL appropriately.") 123 bb.warn("To build your own uninative loader, please bitbake uninative-tarball and set UNINATIVE_TARBALL appropriately.")
124 except subprocess.CalledProcessError as exc: 124 except subprocess.CalledProcessError as exc:
125 bb.warn("Disabling uninative as unable to install uninative tarball: %s" % str(exc)) 125 bb.warn("Disabling uninative as unable to install uninative tarball:")
126 bb.warn(str(exc))
127 bb.warn(exc.stdout)
126 bb.warn("To build your own uninative loader, please bitbake uninative-tarball and set UNINATIVE_TARBALL appropriately.") 128 bb.warn("To build your own uninative loader, please bitbake uninative-tarball and set UNINATIVE_TARBALL appropriately.")
127 finally: 129 finally:
128 os.chdir(olddir) 130 os.chdir(olddir)
@@ -140,7 +142,7 @@ def enable_uninative(d):
140 loader = d.getVar("UNINATIVE_LOADER") 142 loader = d.getVar("UNINATIVE_LOADER")
141 if os.path.exists(loader): 143 if os.path.exists(loader):
142 bb.debug(2, "Enabling uninative") 144 bb.debug(2, "Enabling uninative")
143 d.setVar("NATIVELSBSTRING", "universal%s" % oe.utils.host_gcc_version(d)) 145 d.setVar("NATIVELSBSTRING", "universal")
144 d.appendVar("SSTATEPOSTUNPACKFUNCS", " uninative_changeinterp") 146 d.appendVar("SSTATEPOSTUNPACKFUNCS", " uninative_changeinterp")
145 d.appendVarFlag("SSTATEPOSTUNPACKFUNCS", "vardepvalueexclude", "| uninative_changeinterp") 147 d.appendVarFlag("SSTATEPOSTUNPACKFUNCS", "vardepvalueexclude", "| uninative_changeinterp")
146 d.appendVar("BUILD_LDFLAGS", " -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=${UNINATIVE_LOADER} -pthread") 148 d.appendVar("BUILD_LDFLAGS", " -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=${UNINATIVE_LOADER} -pthread")