summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/package_manager.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-27 17:22:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-01 22:13:55 +0000
commit3eff72cc1f5989144f8d2cc93fab69e4d3d80f8c (patch)
treef6a23e388a034f9836b1852eb5cf1f39dfdc6fca /meta/lib/oe/package_manager.py
parent6a07697a6dcb5e77aed4b01df4b30024c4b3d0fe (diff)
downloadpoky-3eff72cc1f5989144f8d2cc93fab69e4d3d80f8c.tar.gz
sstatesig/staging/package_manager: Create common sstate manifest code
Create a common function for locating task manifest files rather than several implementations with missing pieces. (From OE-Core rev: 68150bac7444f089f19c789e9f6602d59f605d7a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-rw-r--r--meta/lib/oe/package_manager.py31
1 files changed, 1 insertions, 30 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index f59eaf7b85..8c567be0f4 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -507,37 +507,8 @@ def create_packages_dir(d, rpm_repo_dir, deploydir, taskname, filterbydependenci
507 507
508 for dep in rpmdeps: 508 for dep in rpmdeps:
509 c = taskdepdata[dep][0] 509 c = taskdepdata[dep][0]
510 510 manifest, d2 = oe.sstatesig.find_sstate_manifest(c, taskdepdata[dep][2], taskname, d, multilibs)
511 d2 = d
512 variant = ''
513 if taskdepdata[dep][2].startswith("virtual:multilib"):
514 variant = taskdepdata[dep][2].split(":")[2]
515 if variant not in multilibs:
516 multilibs[variant] = oe.utils.get_multilib_datastore(variant, d)
517 d2 = multilibs[variant]
518
519 if c.endswith("-native"):
520 pkgarchs = ["${BUILD_ARCH}"]
521 elif c.startswith("nativesdk-"):
522 pkgarchs = ["${SDK_ARCH}_${SDK_OS}", "allarch"]
523 elif "-cross-canadian" in c:
524 pkgarchs = ["${SDK_ARCH}_${SDK_ARCH}-${SDKPKGSUFFIX}"]
525 elif "-cross-" in c:
526 pkgarchs = ["${BUILD_ARCH}_${TARGET_ARCH}"]
527 elif "-crosssdk" in c:
528 pkgarchs = ["${BUILD_ARCH}_${SDK_ARCH}_${SDK_OS}"]
529 else:
530 pkgarchs = ['${MACHINE_ARCH}']
531 pkgarchs = pkgarchs + list(reversed(d2.getVar("PACKAGE_EXTRA_ARCHS").split()))
532 pkgarchs.append('allarch')
533 pkgarchs.append('${SDK_ARCH}_${SDK_ARCH}-${SDKPKGSUFFIX}')
534
535 for pkgarch in pkgarchs:
536 manifest = d2.expand("${SSTATE_MANIFESTS}/manifest-%s-%s.%s" % (pkgarch, c, taskname))
537 if os.path.exists(manifest):
538 break
539 if not os.path.exists(manifest): 511 if not os.path.exists(manifest):
540 bb.warn("Manifest %s not found in %s (variant '%s')?" % (manifest, d2.expand(" ".join(pkgarchs)), variant))
541 continue 512 continue
542 with open(manifest, "r") as f: 513 with open(manifest, "r") as f:
543 for l in f: 514 for l in f: