mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
uninative: rebuild uninative for gcc 4.8 and 4.9
Some c++ libraries fail to build if uninative is built with gcc 5.x and host gcc version is either 4.8 or 4.9. The issue should be solved by making separate uninative sstate directory structure sstate-cache/universal-<gcc version> for host gcc versions 4.8 and 4.9. This causes rebuilds of uninative if host gcc is either 4.8 or 4.9 and it doesn't match gcc version used to build uninative. [YOCTO #10441] (From OE-Core rev: d36f41e5658bbbb6080ee833027879c119edf3e0) (From OE-Core rev: 3d39ca5c91dbb62fb43199f916bd390cd6212e3d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c8f4fb15de
commit
8108c47740
@@ -374,8 +374,9 @@ python copy_buildsystem () {
|
||||
|
||||
sstate_out = baseoutpath + '/sstate-cache'
|
||||
bb.utils.remove(sstate_out, True)
|
||||
# uninative.bbclass sets NATIVELSBSTRING to 'universal'
|
||||
fixedlsbstring = 'universal'
|
||||
|
||||
# uninative.bbclass sets NATIVELSBSTRING to 'universal%s' % oe.utils.host_gcc_version(d)
|
||||
fixedlsbstring = "universal%s" % oe.utils.host_gcc_version(d)
|
||||
|
||||
sdk_include_toolchain = (d.getVar('SDK_INCLUDE_TOOLCHAIN', True) == '1')
|
||||
sdk_ext_type = d.getVar('SDK_EXT_TYPE', True)
|
||||
|
||||
@@ -88,7 +88,7 @@ def enable_uninative(d):
|
||||
loader = d.getVar("UNINATIVE_LOADER", True)
|
||||
if os.path.exists(loader):
|
||||
bb.debug(2, "Enabling uninative")
|
||||
d.setVar("NATIVELSBSTRING", "universal")
|
||||
d.setVar("NATIVELSBSTRING", "universal%s" % oe.utils.host_gcc_version(d))
|
||||
d.appendVar("SSTATEPOSTUNPACKFUNCS", " uninative_changeinterp")
|
||||
d.prependVar("PATH", "${STAGING_DIR}-uninative/${BUILD_ARCH}-linux${bindir_native}:")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user