diff options
-rw-r--r-- | meta/classes/rootfs_deb.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 1 | ||||
-rw-r--r-- | meta/lib/oe/package_manager.py | 5 | ||||
-rw-r--r-- | meta/lib/oe/sdk.py | 13 |
4 files changed, 15 insertions, 5 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index 10af4b5ff0..262e3d555b 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 | ||
12 | do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" | 12 | do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" |
13 | do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" | 13 | do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" |
14 | do_populate_sdk_ext[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" | ||
14 | 15 | ||
15 | python rootfs_deb_bad_recommendations() { | 16 | python 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 | ||
16 | do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock" | 16 | do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock" |
17 | do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock" | 17 | do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock" |
18 | do_populate_sdk_ext[lockfiles] += "${WORKDIR}/ipk.lock" | ||
18 | 19 | ||
19 | OPKG_PREPROCESS_COMMANDS = "" | 20 | OPKG_PREPROCESS_COMMANDS = "" |
20 | 21 | ||
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 518cf8dbe3..3a2daadafa 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -461,7 +461,8 @@ class RpmPM(PackageManager): | |||
461 | task_name='target', | 461 | task_name='target', |
462 | providename=None, | 462 | providename=None, |
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 deb823b6ec..9fe1687ac3 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 | ||
87 | class RpmSdk(Sdk): | 87 | class 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, |
@@ -100,11 +100,17 @@ class RpmSdk(Sdk): | |||
100 | 'pkgconfig' | 100 | 'pkgconfig' |
101 | ] | 101 | ] |
102 | 102 | ||
103 | rpm_repo_workdir = "oe-sdk-repo" | ||
104 | if "sdk_ext" in d.getVar("BB_RUNTASK"): | ||
105 | rpm_repo_workdir = "oe-sdk-ext-repo" | ||
106 | |||
107 | |||
103 | self.target_pm = RpmPM(d, | 108 | self.target_pm = RpmPM(d, |
104 | self.sdk_target_sysroot, | 109 | self.sdk_target_sysroot, |
105 | self.d.getVar('TARGET_VENDOR'), | 110 | self.d.getVar('TARGET_VENDOR'), |
106 | 'target', | 111 | 'target', |
107 | target_providename | 112 | target_providename, |
113 | rpm_repo_workdir=rpm_repo_workdir | ||
108 | ) | 114 | ) |
109 | 115 | ||
110 | sdk_providename = ['/bin/sh', | 116 | sdk_providename = ['/bin/sh', |
@@ -122,7 +128,8 @@ class RpmSdk(Sdk): | |||
122 | 'host', | 128 | 'host', |
123 | sdk_providename, | 129 | sdk_providename, |
124 | "SDK_PACKAGE_ARCHS", | 130 | "SDK_PACKAGE_ARCHS", |
125 | "SDK_OS" | 131 | "SDK_OS", |
132 | rpm_repo_workdir=rpm_repo_workdir | ||
126 | ) | 133 | ) |
127 | 134 | ||
128 | def _populate_sysroot(self, pm, manifest): | 135 | def _populate_sysroot(self, pm, manifest): |