summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/sdk.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-14 15:18:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-15 09:44:33 +0100
commit26a786f86989ce47eac4eecec3b0798730194b05 (patch)
tree263638168e588d8c06f476d9d238e261c13fc294 /meta/lib/oe/sdk.py
parentad6b73702934c0bb10afe66e13936d1313782352 (diff)
downloadpoky-26a786f86989ce47eac4eecec3b0798730194b05.tar.gz
package_manager/sdk: Use filtered copies of the deploy ipk/deb directories
Similar to rpm, use copies of the ipk/deb directories for rootfs construction. This means the image creation code can no longer "see" recipes wich aren't in its dependency chain which is good for a variety of reasons including determinism, incompatible recipe (e.g. systemd/sysvinit) package conflicts and locking performance. (From OE-Core rev: c7c5f4065c102fde4e11d138fb0b6e25bffe0379) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/sdk.py')
-rw-r--r--meta/lib/oe/sdk.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index f20441ccf6..153b07d76b 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -227,11 +227,17 @@ class OpkgSdk(Sdk):
227 self.host_manifest = OpkgManifest(d, self.manifest_dir, 227 self.host_manifest = OpkgManifest(d, self.manifest_dir,
228 Manifest.MANIFEST_TYPE_SDK_HOST) 228 Manifest.MANIFEST_TYPE_SDK_HOST)
229 229
230 ipk_repo_workdir = "oe-sdk-repo"
231 if "sdk_ext" in d.getVar("BB_RUNTASK"):
232 ipk_repo_workdir = "oe-sdk-ext-repo"
233
230 self.target_pm = OpkgPM(d, self.sdk_target_sysroot, self.target_conf, 234 self.target_pm = OpkgPM(d, self.sdk_target_sysroot, self.target_conf,
231 self.d.getVar("ALL_MULTILIB_PACKAGE_ARCHS")) 235 self.d.getVar("ALL_MULTILIB_PACKAGE_ARCHS"),
236 ipk_repo_workdir=ipk_repo_workdir)
232 237
233 self.host_pm = OpkgPM(d, self.sdk_host_sysroot, self.host_conf, 238 self.host_pm = OpkgPM(d, self.sdk_host_sysroot, self.host_conf,
234 self.d.getVar("SDK_PACKAGE_ARCHS")) 239 self.d.getVar("SDK_PACKAGE_ARCHS"),
240 ipk_repo_workdir=ipk_repo_workdir)
235 241
236 def _populate_sysroot(self, pm, manifest): 242 def _populate_sysroot(self, pm, manifest):
237 pkgs_to_install = manifest.parse_initial_manifest() 243 pkgs_to_install = manifest.parse_initial_manifest()
@@ -307,15 +313,21 @@ class DpkgSdk(Sdk):
307 self.host_manifest = DpkgManifest(d, self.manifest_dir, 313 self.host_manifest = DpkgManifest(d, self.manifest_dir,
308 Manifest.MANIFEST_TYPE_SDK_HOST) 314 Manifest.MANIFEST_TYPE_SDK_HOST)
309 315
316 deb_repo_workdir = "oe-sdk-repo"
317 if "sdk_ext" in d.getVar("BB_RUNTASK"):
318 deb_repo_workdir = "oe-sdk-ext-repo"
319
310 self.target_pm = DpkgPM(d, self.sdk_target_sysroot, 320 self.target_pm = DpkgPM(d, self.sdk_target_sysroot,
311 self.d.getVar("PACKAGE_ARCHS"), 321 self.d.getVar("PACKAGE_ARCHS"),
312 self.d.getVar("DPKG_ARCH"), 322 self.d.getVar("DPKG_ARCH"),
313 self.target_conf_dir) 323 self.target_conf_dir,
324 deb_repo_workdir=deb_repo_workdir)
314 325
315 self.host_pm = DpkgPM(d, self.sdk_host_sysroot, 326 self.host_pm = DpkgPM(d, self.sdk_host_sysroot,
316 self.d.getVar("SDK_PACKAGE_ARCHS"), 327 self.d.getVar("SDK_PACKAGE_ARCHS"),
317 self.d.getVar("DEB_SDK_ARCH"), 328 self.d.getVar("DEB_SDK_ARCH"),
318 self.host_conf_dir) 329 self.host_conf_dir,
330 deb_repo_workdir=deb_repo_workdir)
319 331
320 def _copy_apt_dir_to(self, dst_dir): 332 def _copy_apt_dir_to(self, dst_dir):
321 staging_etcdir_native = self.d.getVar("STAGING_ETCDIR_NATIVE") 333 staging_etcdir_native = self.d.getVar("STAGING_ETCDIR_NATIVE")