summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-23 13:41:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-25 10:43:06 +0000
commite51d27b86ea29c8c272335879d8c4a434d0c686c (patch)
tree12003a6a6cba61047c163fceaa086867aa33a786 /meta/classes
parent5397a7acd8137103faef197983c4bdcba5d0d467 (diff)
downloadpoky-e51d27b86ea29c8c272335879d8c4a434d0c686c.tar.gz
staging: Fix staging_populate_sysroot_dir native corruption
bitbake gdk-pixbuf gdk-pixbuf-native bitbake build-sysroots -c build_target_sysroot can lead to tracebacks as gdk-pixbuf-native is being installed into the target sysroot. The issue is that the x86_64 (common BUILD_ARCH) sysroot components directory can contain a mix of native and target artefacts. Differentiate by the "-native" in the recipe names. Should also trim down the size of the sysroot used in eSDK. (From OE-Core rev: 57f32836060bba0eaa6b36f53146dd6fd07b77ed) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/staging.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index 84e13bab59..c9bcd745fe 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -198,6 +198,10 @@ def staging_populate_sysroot_dir(targetsysroot, nativesysroot, native, d):
198 if manifest.endswith("-initial.populate_sysroot"): 198 if manifest.endswith("-initial.populate_sysroot"):
199 # skip glibc-initial and libgcc-initial due to file overlap 199 # skip glibc-initial and libgcc-initial due to file overlap
200 continue 200 continue
201 if not native and (manifest.endswith("-native.populate_sysroot") or "nativesdk-" in manifest):
202 continue
203 if native and not (manifest.endswith("-native.populate_sysroot") or manifest.endswith("-cross.populate_sysroot") or "-cross-" in manifest):
204 continue
201 tmanifest = targetdir + "/" + os.path.basename(manifest) 205 tmanifest = targetdir + "/" + os.path.basename(manifest)
202 if os.path.exists(tmanifest): 206 if os.path.exists(tmanifest):
203 continue 207 continue