Lock copying of directory trees to the staging dir with the "staging-dir" lock. This lock probably has to be taken elsewhere, too.
SVN-Revision: 23857
This commit is contained in:
parent
635ec6e7d9
commit
e5fc77edd9
1 changed files with 4 additions and 2 deletions
|
@ -132,8 +132,10 @@ define Build/DefaultTargets
|
||||||
$(call $(hook),$(TMP_DIR)/stage-$(PKG_NAME),$(TMP_DIR)/stage-$(PKG_NAME)/host)$(sep)\
|
$(call $(hook),$(TMP_DIR)/stage-$(PKG_NAME),$(TMP_DIR)/stage-$(PKG_NAME)/host)$(sep)\
|
||||||
)
|
)
|
||||||
if [ -d $(TMP_DIR)/stage-$(PKG_NAME) ]; then \
|
if [ -d $(TMP_DIR)/stage-$(PKG_NAME) ]; then \
|
||||||
|
$(call locked, \
|
||||||
(cd $(TMP_DIR)/stage-$(PKG_NAME); find ./ > $(STAGING_DIR)/packages/$(STAGING_FILES_LIST)); \
|
(cd $(TMP_DIR)/stage-$(PKG_NAME); find ./ > $(STAGING_DIR)/packages/$(STAGING_FILES_LIST)); \
|
||||||
$(CP) $(TMP_DIR)/stage-$(PKG_NAME)/* $(STAGING_DIR)/; \
|
$(CP) $(TMP_DIR)/stage-$(PKG_NAME)/* $(STAGING_DIR)/; \
|
||||||
|
,staging-dir); \
|
||||||
fi
|
fi
|
||||||
rm -rf $(TMP_DIR)/stage-$(PKG_NAME)
|
rm -rf $(TMP_DIR)/stage-$(PKG_NAME)
|
||||||
touch $$@
|
touch $$@
|
||||||
|
|
Loading…
Reference in a new issue