aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-06-11 14:45:52 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-06-11 14:46:17 +0100
commit5a4c688958a7dc1258575c0f6c3bd1af165b2585 (patch)
tree50be9f432541c51769cecba5361c758005fc6f23 /meta/classes/autotools.bbclass
parent4d503cfa062552046d9331a6dcfa724225cebc11 (diff)
downloadopenembedded-core-contrib-5a4c688958a7dc1258575c0f6c3bd1af165b2585.tar.gz
packaged-staging.bbclass: Detect when we're using autotools_stage_all and don't hold the lock for as long when that is the case giving a significant performance boost with less lock contention and staging area file timestamp checking required
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r--meta/classes/autotools.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 365258f65f..82ed36816b 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -151,7 +151,9 @@ autotools_do_install() {
done
}
+# STAGE_TEMP_PREFIX is used for a speedup by packaged-staging
STAGE_TEMP="${WORKDIR}/temp-staging"
+STAGE_TEMP_PREFIX = ""
autotools_stage_includes() {
if [ "${INHIBIT_AUTO_STAGE_INCLUDES}" != "1" ]
@@ -167,11 +169,12 @@ autotools_stage_includes() {
autotools_stage_dir() {
from="$1"
to="$2"
+ prefix="${STAGE_TEMP_PREFIX}"
# This will remove empty directories so we can ignore them
rmdir "$from" 2> /dev/null || true
if [ -d "$from" ]; then
- mkdir -p "$to"
- cp -fpPR "$from"/* "$to"
+ mkdir -p "$prefix$to"
+ cp -fpPR "$from"/* "$prefix$to"
fi
}