mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user