summaryrefslogtreecommitdiffstats
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)
downloadpoky-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() {
151 done 151 done
152} 152}
153 153
154# STAGE_TEMP_PREFIX is used for a speedup by packaged-staging
154STAGE_TEMP="${WORKDIR}/temp-staging" 155STAGE_TEMP="${WORKDIR}/temp-staging"
156STAGE_TEMP_PREFIX = ""
155 157
156autotools_stage_includes() { 158autotools_stage_includes() {
157 if [ "${INHIBIT_AUTO_STAGE_INCLUDES}" != "1" ] 159 if [ "${INHIBIT_AUTO_STAGE_INCLUDES}" != "1" ]
@@ -167,11 +169,12 @@ autotools_stage_includes() {
167autotools_stage_dir() { 169autotools_stage_dir() {
168 from="$1" 170 from="$1"
169 to="$2" 171 to="$2"
172 prefix="${STAGE_TEMP_PREFIX}"
170 # This will remove empty directories so we can ignore them 173 # This will remove empty directories so we can ignore them
171 rmdir "$from" 2> /dev/null || true 174 rmdir "$from" 2> /dev/null || true
172 if [ -d "$from" ]; then 175 if [ -d "$from" ]; then
173 mkdir -p "$to" 176 mkdir -p "$prefix$to"
174 cp -fpPR "$from"/* "$to" 177 cp -fpPR "$from"/* "$prefix$to"
175 fi 178 fi
176} 179}
177 180