summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2010-06-07 08:54:13 -0700
committerTom Rini <tom_rini@mentor.com>2010-06-07 08:54:13 -0700
commit5e813f8a9e1b607233f3794b2c981ce1d8c84fac (patch)
tree60fcbff3000c59d8ac7f9f28314ae6054c1e273b /classes
parent87ec7b6c9a418455f3d05139a0832c73eba292c7 (diff)
rootfs_ipk/meta-toolchain: Add locking on tasks that add package_update_index_ipk
We add a lockfile of do_populate_sdk and do_rootfs (in rootfs_ipk) that is also the lockfile that package_update_index_ipk uses. With enough threads it is possible that one image (or meta-toolchain) is attempting to use the package index while another has only reached the point of generating the index leading to an empty index being seen later on. Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/rootfs_ipk.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index 9fa1d5ec6c..0303c54cc6 100644
--- a/classes/rootfs_ipk.bbclass
+++ b/classes/rootfs_ipk.bbclass
@@ -6,6 +6,7 @@
#
do_rootfs[depends] += "opkg-native:do_populate_sysroot"
+do_rootfs[lockfiles] = "${DEPLOY_DIR_IPK}.lock"
IPKG_TMP_DIR = "${IMAGE_ROOTFS}-tmp"
IPKG_ARGS = "-f ${IPKGCONF_TARGET} -o ${IMAGE_ROOTFS} -t ${IPKG_TMP_DIR} ${@base_conditional("PACKAGE_INSTALL_NO_DEPS", "1", "-nodeps", "", d)}"