aboutsummaryrefslogtreecommitdiffstats
path: root/classes/package_ipk.bbclass
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2009-06-17 23:22:57 +0400
committerRoman I Khimov <khimov@altell.ru>2009-06-19 00:15:08 +0400
commit5f920c841a4d83fb903ccdf9127cb0fb5617eda1 (patch)
tree4adc17a542fc6955efdfc6def65e9c9f48467b0c /classes/package_ipk.bbclass
parent68a8be99518c624816d238ee2ebb5e602a4c62ac (diff)
downloadopenembedded-5f920c841a4d83fb903ccdf9127cb0fb5617eda1.tar.gz
Make package_update_index_ipk proper task with locking
Parallel image builds race in package_update_index_ipk, so locking is needed and for a proper lock package_update_index_ipk needs to be a proper task. Acked-by: Tom Rini <trini@embeddedalley.com>
Diffstat (limited to 'classes/package_ipk.bbclass')
-rw-r--r--classes/package_ipk.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/package_ipk.bbclass b/classes/package_ipk.bbclass
index d4cb3b62e2..1f1b5c9a79 100644
--- a/classes/package_ipk.bbclass
+++ b/classes/package_ipk.bbclass
@@ -67,10 +67,16 @@ python package_ipk_install () {
raise bb.build.FuncFailed
}
+do_package_update_index_ipk[lockfiles] = "${DEPLOY_DIR_IPK}.lock"
+do_package_update_index_ipk[nostamp] = "1"
+do_package_update_index_ipk[recrdeptask] += "do_package_write_ipk"
+do_package_update_index_ipk[recrdeptask] += "do_package_write_ipk"
+do_package_update_index_ipk[depends] += "ipkg-utils-native:do_populate_staging"
+
#
# Update the Packages index files in ${DEPLOY_DIR_IPK}
#
-package_update_index_ipk () {
+do_package_update_index_ipk () {
set -x
ipkgarchs="${PACKAGE_ARCHS}"
@@ -322,3 +328,4 @@ python do_package_write_ipk () {
}
do_package_write_ipk[dirs] = "${D}"
addtask package_write_ipk before do_package_write after do_package
+addtask package_update_index_ipk before do_rootfs