summaryrefslogtreecommitdiff
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-10-07 15:41:17 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-10-07 15:41:17 +0100
commit0e0fadb400b4656c4b15ae4120aa39ff8ed72985 (patch)
treeff7a68626867d8176f791bf95bce8ab64b147cf1 /meta/classes/rootfs_rpm.bbclass
parentfafb40364dfc3951a1d62a49a412f0e15e284d03 (diff)
downloadopenembedded-core-0e0fadb400b4656c4b15ae4120aa39ff8ed72985.tar.gz
openembedded-core-0e0fadb400b4656c4b15ae4120aa39ff8ed72985.tar.bz2
openembedded-core-0e0fadb400b4656c4b15ae4120aa39ff8ed72985.tar.xz
openembedded-core-0e0fadb400b4656c4b15ae4120aa39ff8ed72985.zip
rootfs_rpm: Add lock file in the rpm deploy directory to allow mutliple rootfs creation tasks to coexist without breaking each other
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index a57894ae5..f82fcacf5 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -28,6 +28,10 @@ opkglibdir = "${localstatedir}/lib/opkg"
RPMOPTS="--dbpath ${rpmlibdir} --define='_openall_before_chroot 1'"
RPM="rpm ${RPMOPTS}"
+# RPM doesn't work with multiple rootfs generation at once due to collisions in the use of files
+# in ${DEPLOY_DIR_RPM}. This can be removed if package_update_index_rpm can be called concurrently
+do_rootfs[lockfiles] += "${DEPLOY_DIR_RPM}/rpm.lock"
+
fakeroot rootfs_rpm_do_rootfs () {
set +x