mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
make.sh: Introduce MAX_PARALLELISM
This will now adjust MAKETUNING to not launch more processes than MAX_PARALLELISM. Handy to limit builds that use a lot of memory. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
10
lfs/Config
10
lfs/Config
@@ -33,7 +33,15 @@
|
||||
# Cleanup environment from any variables
|
||||
unexport BUILD_ARCH BUILD_PLATFORM BUILDTARGET CROSSTARGET TOOLCHAIN TOOLS_DIR
|
||||
|
||||
MAKETUNING = -j $(DEFAULT_PARALLELISM)
|
||||
PARALLELISM = $(shell echo $$( \
|
||||
if [ -n "$(MAX_PARALLELISM)" ] && [ $(MAX_PARALLELISM) -lt $(DEFAULT_PARALLELISM) ]; then \
|
||||
echo $(MAX_PARALLELISM); \
|
||||
else \
|
||||
echo $(DEFAULT_PARALLELISM); \
|
||||
fi) \
|
||||
)
|
||||
|
||||
MAKETUNING = -j $(PARALLELISM)
|
||||
|
||||
ifeq "$(BUILD_ARCH)" "aarch64"
|
||||
IS_64BIT = 1
|
||||
|
||||
Reference in New Issue
Block a user