Add support for tmpfs based package builders
Partial-Bug: 2081843 Depends-On: https://review.opendev.org/c/starlingx/root/+/931221 Change-Id: I7b4a22fbd07c748ec76e070b3243dfd9c2711136 Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
parent
3d67d9f5eb
commit
2e16d7e38e
@ -15,6 +15,7 @@ declare_job_env BUILD_PACKAGES_LIST
|
||||
require_job_env BUILD_RT
|
||||
require_job_env BUILD_ISO
|
||||
declare_job_env BUILD_PACKAGES_PARALLEL_JOBS
|
||||
declare_job_env BUILD_PACKAGES_TMPFS_PERCENTAGE
|
||||
require_job_env PKG_REUSE
|
||||
declare_job_env STX_SHARED_SOURCE
|
||||
declare_job_env STX_SHARED_REPO
|
||||
@ -36,6 +37,9 @@ fi
|
||||
declare -a parallel_args
|
||||
if [[ -n "$BUILD_PACKAGES_PARALLEL_JOBS" && "$BUILD_PACKAGES_PARALLEL_JOBS" -gt 1 ]] ; then
|
||||
parallel_args=("--parallel" "$BUILD_PACKAGES_PARALLEL_JOBS")
|
||||
if [[ -n "$BUILD_PACKAGES_TMPFS_PERCENTAGE" && "$BUILD_PACKAGES_TMPFS_PERCENTAGE" -ge 0 && $BUILD_PACKAGES_TMPFS_PERCENTAGE" -le 50 ]] ; then
|
||||
parallel_args+=("--tmpfs_percentage" "$BUILD_PACKAGES_TMPFS_PERCENTAGE")
|
||||
fi
|
||||
fi
|
||||
|
||||
count=0
|
||||
|
@ -318,6 +318,12 @@ PARALLEL_CMD_JOBS="12"
|
||||
# Default: 1
|
||||
#BUILD_PACKAGES_PARALLEL_JOBS=
|
||||
|
||||
# What percentage of memory can be used towards tmpfs based parallel
|
||||
# build environments.
|
||||
# Default 0
|
||||
# Range: 0-50
|
||||
#BUILD_PACKAGES_TMPFS_PERCENTAGE=
|
||||
|
||||
# URL of the deb-local-build and deb-local-source repos from which we
|
||||
# will pull pre-build packages if the PKG_REUSE flag is requested.
|
||||
# The following URLs are examples applicable only to the master branch.
|
||||
|
Loading…
x
Reference in New Issue
Block a user