rootfs_ipk/meta-toolchain: Add locking on tasks that add package_update_index_ipk
commit5e813f8a9e1b607233f3794b2c981ce1d8c84fac
authorTom Rini <tom_rini@mentor.com>
Mon, 7 Jun 2010 15:54:13 +0000 (7 08:54 -0700)
committerTom Rini <tom_rini@mentor.com>
Mon, 7 Jun 2010 15:54:13 +0000 (7 08:54 -0700)
tree60fcbff3000c59d8ac7f9f28314ae6054c1e273b
parent87ec7b6c9a418455f3d05139a0832c73eba292c7
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>
classes/rootfs_ipk.bbclass
recipes/meta/canadian-sdk.bb
recipes/meta/meta-toolchain.bb