summaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
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