mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-15 07:45:24 +01:00
Introduce parallelism
By using --cores argument to rootfs.py, JOBS= is set in the
live-bootstrap environment, and -j${JOBS} is used on builds. This speeds
larger packages up significantly.
A fair number of packages do not build properly with parallelism. Most
of these, at least for now, are disabled with -j1.
This commit is contained in:
parent
f2a0d74bfb
commit
d98f97e214
74 changed files with 146 additions and 95 deletions
|
|
@ -21,6 +21,13 @@ SRCDIR="${srcdir}"
|
|||
# shellcheck source=sysa/helpers.sh
|
||||
. helpers.sh
|
||||
|
||||
if [ "${KERNEL_BOOTSTRAP}" ]; then
|
||||
# Fiwix does not support SMP
|
||||
MAKEJOBS="-j1"
|
||||
else
|
||||
MAKEJOBS="-j${JOBS}"
|
||||
fi
|
||||
|
||||
# Ask some questions
|
||||
echo
|
||||
echo "Now that bash has been built, there are potentially some questions for you!"
|
||||
|
|
@ -178,6 +185,7 @@ SOURCES=${SOURCES}
|
|||
DESTDIR=${DESTDIR}
|
||||
DISTFILES=${DISTFILES}
|
||||
SRCDIR=${SRCDIR}
|
||||
MAKEJOBS=${MAKEJOBS}
|
||||
EOF
|
||||
|
||||
exec env -i bash run2.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue