summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2010-11-04 12:42:37 +0000
committerMichael Büsch <mb@bu3sch.de>2010-11-04 12:42:37 +0000
commit995cedb319fd03b2c0d247e112348e756982bbb7 (patch)
tree0cef6b28474a6ba6103227dfbd3049a825063568
parente5fc77edd957fac0b0496594bd55a9662d3a7a2a (diff)
downloadmtk-20170518-995cedb319fd03b2c0d247e112348e756982bbb7.zip
mtk-20170518-995cedb319fd03b2c0d247e112348e756982bbb7.tar.gz
mtk-20170518-995cedb319fd03b2c0d247e112348e756982bbb7.tar.bz2
InstallDev: Move the "find" out of the lock critical section.
SVN-Revision: 23858
-rw-r--r--include/package.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/package.mk b/include/package.mk
index 712b793..06f3a83 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -132,8 +132,9 @@ define Build/DefaultTargets
$(call $(hook),$(TMP_DIR)/stage-$(PKG_NAME),$(TMP_DIR)/stage-$(PKG_NAME)/host)$(sep)\
)
if [ -d $(TMP_DIR)/stage-$(PKG_NAME) ]; then \
+ (cd $(TMP_DIR)/stage-$(PKG_NAME); find ./ > $(TMP_DIR)/stage-$(PKG_NAME).files); \
$(call locked, \
- (cd $(TMP_DIR)/stage-$(PKG_NAME); find ./ > $(STAGING_DIR)/packages/$(STAGING_FILES_LIST)); \
+ mv $(TMP_DIR)/stage-$(PKG_NAME).files $(STAGING_DIR)/packages/$(STAGING_FILES_LIST) && \
$(CP) $(TMP_DIR)/stage-$(PKG_NAME)/* $(STAGING_DIR)/; \
,staging-dir); \
fi