summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/rootfs_deb.bbclass1
-rw-r--r--meta/classes/rootfs_ipk.bbclass1
-rw-r--r--meta/lib/oe/package_manager.py5
-rw-r--r--meta/lib/oe/sdk.py10
4 files changed, 13 insertions, 4 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index 12002c49f3..9ee1dfc866 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -11,6 +11,7 @@ do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
11 11
12do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" 12do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
13do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" 13do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
14do_populate_sdk_ext[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
14 15
15python rootfs_deb_bad_recommendations() { 16python rootfs_deb_bad_recommendations() {
16 if d.getVar("BAD_RECOMMENDATIONS"): 17 if d.getVar("BAD_RECOMMENDATIONS"):
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index a57b1d34f7..52b468d85b 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -15,6 +15,7 @@ do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
15 15
16do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock" 16do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock"
17do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock" 17do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock"
18do_populate_sdk_ext[lockfiles] += "${WORKDIR}/ipk.lock"
18 19
19OPKG_PREPROCESS_COMMANDS = "" 20OPKG_PREPROCESS_COMMANDS = ""
20 21
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 0f85f3fb7c..2a07f0e39a 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -461,7 +461,8 @@ class RpmPM(PackageManager):
461 target_vendor, 461 target_vendor,
462 task_name='target', 462 task_name='target',
463 arch_var=None, 463 arch_var=None,
464 os_var=None): 464 os_var=None,
465 rpm_repo_workdir="oe-rootfs-repo"):
465 super(RpmPM, self).__init__(d) 466 super(RpmPM, self).__init__(d)
466 self.target_rootfs = target_rootfs 467 self.target_rootfs = target_rootfs
467 self.target_vendor = target_vendor 468 self.target_vendor = target_vendor
@@ -475,7 +476,7 @@ class RpmPM(PackageManager):
475 else: 476 else:
476 self.primary_arch = self.d.getVar('MACHINE_ARCH') 477 self.primary_arch = self.d.getVar('MACHINE_ARCH')
477 478
478 self.rpm_repo_dir = oe.path.join(self.d.getVar('WORKDIR'), "oe-rootfs-repo") 479 self.rpm_repo_dir = oe.path.join(self.d.getVar('WORKDIR'), rpm_repo_workdir)
479 bb.utils.mkdirhier(self.rpm_repo_dir) 480 bb.utils.mkdirhier(self.rpm_repo_dir)
480 oe.path.symlink(self.d.getVar('DEPLOY_DIR_RPM'), oe.path.join(self.rpm_repo_dir, "rpm"), True) 481 oe.path.symlink(self.d.getVar('DEPLOY_DIR_RPM'), oe.path.join(self.rpm_repo_dir, "rpm"), True)
481 482
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index dd02b8c12b..6dc96b5f06 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -85,7 +85,7 @@ class Sdk(object, metaclass=ABCMeta):
85 bb.warn("cannot remove SDK dir: %s" % path) 85 bb.warn("cannot remove SDK dir: %s" % path)
86 86
87class RpmSdk(Sdk): 87class RpmSdk(Sdk):
88 def __init__(self, d, manifest_dir=None): 88 def __init__(self, d, manifest_dir=None, rpm_workdir="oe-sdk-repo"):
89 super(RpmSdk, self).__init__(d, manifest_dir) 89 super(RpmSdk, self).__init__(d, manifest_dir)
90 90
91 self.target_manifest = RpmManifest(d, self.manifest_dir, 91 self.target_manifest = RpmManifest(d, self.manifest_dir,
@@ -93,10 +93,15 @@ class RpmSdk(Sdk):
93 self.host_manifest = RpmManifest(d, self.manifest_dir, 93 self.host_manifest = RpmManifest(d, self.manifest_dir,
94 Manifest.MANIFEST_TYPE_SDK_HOST) 94 Manifest.MANIFEST_TYPE_SDK_HOST)
95 95
96 rpm_repo_workdir = "oe-sdk-repo"
97 if "sdk_ext" in d.getVar("BB_RUNTASK"):
98 rpm_repo_workdir = "oe-sdk-ext-repo"
99
96 self.target_pm = RpmPM(d, 100 self.target_pm = RpmPM(d,
97 self.sdk_target_sysroot, 101 self.sdk_target_sysroot,
98 self.d.getVar('TARGET_VENDOR'), 102 self.d.getVar('TARGET_VENDOR'),
99 'target', 103 'target',
104 rpm_repo_workdir=rpm_repo_workdir
100 ) 105 )
101 106
102 self.host_pm = RpmPM(d, 107 self.host_pm = RpmPM(d,
@@ -104,7 +109,8 @@ class RpmSdk(Sdk):
104 self.d.getVar('SDK_VENDOR'), 109 self.d.getVar('SDK_VENDOR'),
105 'host', 110 'host',
106 "SDK_PACKAGE_ARCHS", 111 "SDK_PACKAGE_ARCHS",
107 "SDK_OS" 112 "SDK_OS",
113 rpm_repo_workdir=rpm_repo_workdir
108 ) 114 )
109 115
110 def _populate_sysroot(self, pm, manifest): 116 def _populate_sysroot(self, pm, manifest):