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
17
rootfs.py
17
rootfs.py
|
@ -29,10 +29,11 @@ def create_configuration_file(args):
|
|||
"""
|
||||
config_path = os.path.join('sysa', 'bootstrap.cfg')
|
||||
with open(config_path, "w", encoding="utf_8") as config:
|
||||
config.write("FORCE_TIMESTAMPS=" + str(args.force_timestamps) + "\n")
|
||||
config.write("CHROOT=" + str(args.chroot or args.bwrap) + "\n")
|
||||
config.write("CHROOT_ONLY_SYSA=" + str(args.bwrap) + "\n")
|
||||
config.write("UPDATE_CHECKSUMS=" + str(args.update_checksums) + "\n")
|
||||
config.write(f"FORCE_TIMESTAMPS={args.force_timestamps}\n")
|
||||
config.write(f"CHROOT={args.chroot or args.bwrap}\n")
|
||||
config.write(f"CHROOT_ONLY_SYSA={args.bwrap}\n")
|
||||
config.write(f"UPDATE_CHECKSUMS={args.update_checksums}\n")
|
||||
config.write(f"JOBS={args.cores}\n")
|
||||
config.write("DISK=sda1\n")
|
||||
if (args.bare_metal or args.qemu) and not args.kernel:
|
||||
config.write("KERNEL_BOOTSTRAP=True\n")
|
||||
|
@ -61,6 +62,8 @@ def main():
|
|||
action="store_true")
|
||||
parser.add_argument("--tmpfs-size", help="Size of the tmpfs",
|
||||
default="8G")
|
||||
parser.add_argument("--cores", help="Cores to use for building",
|
||||
default=2)
|
||||
parser.add_argument("--force-timestamps",
|
||||
help="Force all files timestamps to be 0 unix time",
|
||||
action="store_true")
|
||||
|
@ -119,6 +122,10 @@ def main():
|
|||
if args.bwrap and args.tmpfs:
|
||||
raise ValueError("tmpfs cannot be used with bwrap.")
|
||||
|
||||
# Cores validation
|
||||
if int(args.cores) < 1:
|
||||
raise ValueError("Must use one or more cores.")
|
||||
|
||||
# bootstrap.cfg
|
||||
if args.bare_metal:
|
||||
args.no_create_config = True
|
||||
|
@ -221,6 +228,7 @@ print(shutil.which('chroot'))
|
|||
run(args.qemu_cmd,
|
||||
'-enable-kvm',
|
||||
'-m', str(args.qemu_ram) + 'M',
|
||||
'-smp', str(args.cores),
|
||||
'-no-reboot',
|
||||
'-hda', tmpdir.get_disk("sysc"),
|
||||
'-nic', 'user,ipv6=off,model=e1000',
|
||||
|
@ -233,6 +241,7 @@ print(shutil.which('chroot'))
|
|||
run(args.qemu_cmd,
|
||||
'-enable-kvm',
|
||||
'-m', "4G",
|
||||
'-smp', str(args.cores),
|
||||
'-no-reboot',
|
||||
'-drive', 'file=' + os.path.join(system_a.tmp_dir, 'sysa.img') + ',format=raw',
|
||||
'-machine', 'kernel-irqchip=split',
|
||||
|
|
|
@ -31,7 +31,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
make "${MAKEJOBS}" MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -33,7 +33,7 @@ src_compile() {
|
|||
# Workaround for racy make dependencies
|
||||
make -C bin autom4te
|
||||
make -C lib
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -27,7 +27,7 @@ src_compile() {
|
|||
make -C bin autom4te
|
||||
make -C lib
|
||||
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -25,7 +25,7 @@ src_compile() {
|
|||
# Workaround for racy make dependencies
|
||||
make -C bin autom4te
|
||||
make -C lib
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -25,7 +25,7 @@ src_compile() {
|
|||
# Workaround for racy make dependencies
|
||||
make -C bin autom4te
|
||||
make -C lib
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -19,7 +19,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make -j1 MAKEINFO=true PREFIX="${PREFIX}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -18,7 +18,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -18,7 +18,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -19,7 +19,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
AUTOM4TE=autom4te-2.61 make MAKEINFO=true CC=tcc
|
||||
AUTOM4TE=autom4te-2.61 make "${MAKEJOBS}" MAKEINFO=true CC=tcc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -20,7 +20,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
AUTORECONF=autoreconf-2.64 AUTOM4TE=autom4te-2.64 AUTOHEADER=autoheader-2.64 AUTOCONF=autoconf-2.64 make MAKEINFO=true
|
||||
AUTORECONF=autoreconf-2.64 AUTOM4TE=autom4te-2.64 AUTOHEADER=autoheader-2.64 AUTOCONF=autoconf-2.64 make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -22,7 +22,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
AUTORECONF=autoreconf-2.69 AUTOM4TE=autom4te-2.69 AUTOHEADER=autoheader-2.69 AUTOCONF=autoconf-2.69 make MAKEINFO=true
|
||||
AUTORECONF=autoreconf-2.69 AUTOM4TE=autom4te-2.69 AUTOHEADER=autoheader-2.69 AUTOCONF=autoconf-2.69 make -j1 MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -13,7 +13,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -15,7 +15,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -13,7 +13,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -14,7 +14,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -39,6 +39,10 @@ src_configure() {
|
|||
bash_cv_dev_fd=whacky
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -D bash "${DESTDIR}${PREFIX}/bin/bash"
|
||||
# Work around weird symlink bug
|
||||
|
|
|
@ -18,4 +18,3 @@ src_configure() {
|
|||
./configure --prefix="${PREFIX}" \
|
||||
--build=i386-unknown-linux-musl
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ src_configure() {
|
|||
src_compile() {
|
||||
make -C bfd headers
|
||||
for dir in libiberty zlib bfd opcodes binutils gas gprof ld; do
|
||||
make -C $dir tooldir=${PREFIX} CPPFLAGS="-DPLUGIN_LITTLE_ENDIAN" MAKEINFO=true
|
||||
make "${MAKEJOBS}" -C $dir tooldir=${PREFIX} CPPFLAGS="-DPLUGIN_LITTLE_ENDIAN" MAKEINFO=true
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -19,3 +19,7 @@ src_prepare() {
|
|||
cp ../../mk/lib.mk lib/Makefile
|
||||
cp ../../mk/src.mk src/Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -j1 -f Makefile PREFIX="${PREFIX}"
|
||||
}
|
||||
|
|
|
@ -19,3 +19,7 @@ src_prepare() {
|
|||
cp ../../mk/lib.mk lib/Makefile
|
||||
cp ../../mk/src.mk src/Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -j1 -f Makefile PREFIX="${PREFIX}"
|
||||
}
|
||||
|
|
|
@ -16,3 +16,7 @@ src_prepare() {
|
|||
cp ../../mk/lib.mk lib/Makefile
|
||||
cp ../../mk/src.mk src/Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -j1 -f Makefile PREFIX="${PREFIX}"
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ src_prepare() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make CC=tcc AR="tcc -ar" bzip2
|
||||
make "${MAKEJOBS}" CC=tcc AR="tcc -ar" bzip2
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -25,7 +25,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
make "${MAKEJOBS}" MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -11,6 +11,10 @@ src_prepare() {
|
|||
rm parse.c parse.h scan.c skel.c
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -j1 PREFIX="${PREFIX}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if test -d /lex; then
|
||||
# Remove lex, later make install will symlink lex to flex
|
||||
|
|
|
@ -12,7 +12,7 @@ src_prepare() {
|
|||
|
||||
src_compile() {
|
||||
cd src
|
||||
default
|
||||
make -j1 PREFIX="${PREFIX}"
|
||||
cd ..
|
||||
}
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ src_compile() {
|
|||
mkdir build/gcc/include
|
||||
ln -s ../../../gcc/gsyslimits.h build/gcc/include/syslimits.h
|
||||
for dir in libiberty libcpp gcc; do
|
||||
make -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include" STMP_FIXINC=
|
||||
make "${MAKEJOBS}" -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include" STMP_FIXINC=
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ src_configure() {
|
|||
src_compile() {
|
||||
ln -s . build/build-i386-unknown-linux-musl
|
||||
for dir in libiberty libcpp gcc; do
|
||||
make -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include" STMP_FIXINC=
|
||||
make "${MAKEJOBS}" -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include" STMP_FIXINC=
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -321,7 +321,7 @@ default_src_configure() {
|
|||
|
||||
# Default function for compiling source. It simply runs make without any parameters.
|
||||
default_src_compile() {
|
||||
make -f Makefile PREFIX="${PREFIX}"
|
||||
make "${MAKEJOBS}" -f Makefile PREFIX="${PREFIX}"
|
||||
}
|
||||
|
||||
# Default installing function. PREFIX should be set by run.sh script.
|
||||
|
|
|
@ -22,7 +22,7 @@ src_configure() {
|
|||
src_compile() {
|
||||
# Missing dependency in Makefile
|
||||
flex -o src/analyze.c src/analyze.l
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -29,7 +29,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make AUTOM4TE=autom4te-2.61 MAKEINFO=true
|
||||
make "${MAKEJOBS}" AUTOM4TE=autom4te-2.61 MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -50,8 +50,8 @@ src_compile() {
|
|||
generate_autoconf_h
|
||||
|
||||
# Allow use of patched initramfs_list.sh (which is required anyway)
|
||||
make ARCH=i386 prepare
|
||||
PATH="${PWD}/usr:${PATH}" make ARCH=i386
|
||||
make "${MAKEJOBS}" ARCH=i386 prepare
|
||||
PATH="${PWD}/usr:${PATH}" make "${MAKEJOBS}" ARCH=i386
|
||||
|
||||
# Clear up more space
|
||||
find . -name '*.o' -delete
|
||||
|
|
|
@ -20,7 +20,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO="true"
|
||||
make "${MAKEJOBS}" MAKEINFO="true"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -24,7 +24,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make PREFIX="${PREFIX}" CROSS_COMPILE= CFLAGS="-DSYSCALL_NO_TLS" AS_CMD='as -o $@ $<'
|
||||
make "${MAKEJOBS}" PREFIX="${PREFIX}" CROSS_COMPILE= CFLAGS="-DSYSCALL_NO_TLS" AS_CMD='as -o $@ $<'
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -27,5 +27,5 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make CROSS_COMPILE= AR="tcc -ar" RANLIB=true CFLAGS="-DSYSCALL_NO_TLS"
|
||||
make "${MAKEJOBS}" CROSS_COMPILE= AR="tcc -ar" RANLIB=true CFLAGS="-DSYSCALL_NO_TLS"
|
||||
}
|
||||
|
|
|
@ -29,5 +29,5 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make CROSS_COMPILE=
|
||||
make "${MAKEJOBS}" CROSS_COMPILE=
|
||||
}
|
||||
|
|
|
@ -34,6 +34,10 @@ src_prepare() {
|
|||
sed -i "s#/usr/include/errno.h#${PREFIX}/include/musl/bits/errno.h#" ext/Errno/Errno_pm.PL
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -j1 PREFIX="${PREFIX}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Remove old perl
|
||||
rm -rf "${PREFIX}"/lib/perl5/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -8,6 +8,10 @@ src_prepare() {
|
|||
touch config.h
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -j1 PREFIX="${PREFIX}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -11,7 +11,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
make "${MAKEJOBS}" MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -47,7 +47,7 @@ src_compile() {
|
|||
--disable-shared \
|
||||
--enable-timeout=15
|
||||
touch doc/agdoc.texi # build later
|
||||
make CFLAGS=-Wno-error
|
||||
make -j1 CFLAGS=-Wno-error
|
||||
|
||||
# Fix non-reproducible man-page
|
||||
awk '{gsub("\\(/tmp/.*", "", $7); print}' agen5/autogen.1 > autogen.1
|
||||
|
|
|
@ -15,7 +15,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -47,6 +47,10 @@ src_configure() {
|
|||
bash_cv_dev_fd=whacky
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -j1 PREFIX="${PREFIX}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -D bash "${DESTDIR}${PREFIX}/bin/bash"
|
||||
# Work around weird symlink bug
|
||||
|
|
|
@ -89,7 +89,7 @@ src_configure() {
|
|||
src_compile() {
|
||||
make -C bfd headers
|
||||
for dir in libiberty bfd opcodes libctf binutils gas gprof ld; do
|
||||
make -C $dir tooldir=${PREFIX} CFLAGS="-std=c99"
|
||||
make "${MAKEJOBS}" -C $dir tooldir=${PREFIX} CFLAGS="-std=c99"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make -j1 MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -27,7 +27,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make -j1 MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -42,7 +42,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make PREFIX="${PREFIX}" MAKEINFO="true"
|
||||
make "${MAKEJOBS}" PREFIX="${PREFIX}" MAKEINFO="true"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -22,7 +22,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -11,6 +11,6 @@ src_configure() {
|
|||
./configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--disable-shared \
|
||||
--disable-shared \
|
||||
CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR'
|
||||
}
|
||||
|
|
|
@ -125,15 +125,15 @@ src_compile() {
|
|||
ln -s . build/build-i386-unknown-linux-musl
|
||||
for dir in libiberty libcpp libdecnumber gcc; do
|
||||
# We have makeinfo now but it is not happy with gcc .info files, so skip it
|
||||
make -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include" \
|
||||
make "${MAKEJOBS}" -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include" \
|
||||
STMP_FIXINC= GMPLIBS="-lmpc -lmpfr -lgmp" MAKEINFO=true
|
||||
done
|
||||
|
||||
# host_subdir is necessary because we have slightly different build directory layout
|
||||
make -C build/libgcc PATH="${PATH}:../gcc" CC=../gcc/xgcc \
|
||||
make "${MAKEJOBS}" -C build/libgcc PATH="${PATH}:../gcc" CC=../gcc/xgcc \
|
||||
host_subdir=build CFLAGS="-I../gcc/include -I/${PREFIX}/include"
|
||||
|
||||
make -C build/libstdc++-v3 PATH="${PATH}:${PWD}/build/gcc" \
|
||||
make "${MAKEJOBS}" -C build/libstdc++-v3 PATH="${PATH}:${PWD}/build/gcc" \
|
||||
CXXFLAGS="-I${PWD}/build/gcc/include -I ${PREFIX}/include"
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true CFLAGS="-I${PWD}/libtextstyle/lib"
|
||||
make "${MAKEJOBS}" MAKEINFO=true CFLAGS="-I${PWD}/libtextstyle/lib"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -23,7 +23,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
make "${MAKEJOBS}" MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -21,6 +21,8 @@ export SOURCE_DATE_EPOCH=0
|
|||
# shellcheck source=sysa/helpers.sh
|
||||
. "${SOURCES}/helpers.sh"
|
||||
|
||||
MAKEJOBS="-j${JOBS}"
|
||||
|
||||
echo
|
||||
echo "Installing packages into sysc"
|
||||
|
||||
|
@ -75,6 +77,7 @@ SOURCES=${SOURCES}
|
|||
DESTDIR=${DESTDIR}
|
||||
DISTFILES=${DISTFILES}
|
||||
SRCDIR=${SRCDIR}
|
||||
MAKEJOBS=${MAKEJOBS}
|
||||
EOF
|
||||
|
||||
exec ./run.sh
|
||||
|
|
|
@ -14,7 +14,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -35,7 +35,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make AUTOM4TE=autom4te-2.69 MAKEINFO=true
|
||||
make "${MAKEJOBS}" AUTOM4TE=autom4te-2.69 MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -21,7 +21,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO="true"
|
||||
make "${MAKEJOBS}" MAKEINFO="true"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -17,7 +17,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
make "${MAKEJOBS}" MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -20,7 +20,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
make "${MAKEJOBS}" MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -13,7 +13,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make CROSS_COMPILE=
|
||||
make "${MAKEJOBS}" CROSS_COMPILE=
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -16,7 +16,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make MAKEINFO=true
|
||||
make "${MAKEJOBS}" MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -36,11 +36,11 @@ src_configure() {
|
|||
src_compile() {
|
||||
# Build pgen
|
||||
pushd Parser
|
||||
make pgen
|
||||
make -j1 pgen
|
||||
popd
|
||||
# Regen graminit.c and graminit.h
|
||||
pushd Grammar
|
||||
make graminit.c
|
||||
make -j1 graminit.c
|
||||
popd
|
||||
|
||||
# Regenerate some Python scripts using the other regenerated files
|
||||
|
@ -56,7 +56,7 @@ src_compile() {
|
|||
mv Lib/token.py.new Lib/token.py
|
||||
|
||||
# Now build the main program
|
||||
make
|
||||
make -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -35,11 +35,11 @@ src_configure() {
|
|||
src_compile() {
|
||||
# Build pgen
|
||||
pushd Parser
|
||||
make pgen
|
||||
make -j1 pgen
|
||||
popd
|
||||
# Regen graminit.c and graminit.h
|
||||
pushd Grammar
|
||||
make graminit.c
|
||||
make -j1 graminit.c
|
||||
popd
|
||||
|
||||
# Regenerate some Python scripts using the other regenerated files
|
||||
|
@ -55,7 +55,7 @@ src_compile() {
|
|||
mv Lib/token.py.new Lib/token.py
|
||||
|
||||
# Now build the main program
|
||||
make
|
||||
make -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -46,9 +46,9 @@ src_configure() {
|
|||
|
||||
src_compile() {
|
||||
# Build pgen
|
||||
make Parser/pgen
|
||||
make "${MAKEJOBS}" Parser/pgen
|
||||
# Regen graminit.c and graminit.h
|
||||
make Include/graminit.h
|
||||
make "${MAKEJOBS}" Include/graminit.h
|
||||
|
||||
# Regenerate some Python scripts using the other regenerated files
|
||||
# Must move them out to avoid using Lib/ module files which are
|
||||
|
@ -59,7 +59,7 @@ src_compile() {
|
|||
python token.py
|
||||
|
||||
# Now build the main program
|
||||
make CFLAGS="-U__DATE__ -U__TIME__"
|
||||
make "${MAKEJOBS}" CFLAGS="-U__DATE__ -U__TIME__"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -47,9 +47,9 @@ src_configure() {
|
|||
|
||||
src_compile() {
|
||||
# Build pgen
|
||||
make Parser/pgen
|
||||
make "${MAKEJOBS}" Parser/pgen
|
||||
# Regen graminit.c and graminit.h
|
||||
make Include/graminit.h
|
||||
make "${MAKEJOBS}" Include/graminit.h
|
||||
|
||||
# Regenerate some Python scripts using the other regenerated files
|
||||
# Must move them out to avoid using Lib/ module files which are
|
||||
|
@ -60,7 +60,7 @@ src_compile() {
|
|||
python token.py
|
||||
|
||||
# Now build the main program
|
||||
make CFLAGS="-U__DATE__ -U__TIME__"
|
||||
make "${MAKEJOBS}" CFLAGS="-U__DATE__ -U__TIME__"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -58,9 +58,9 @@ src_compile() {
|
|||
# Temporarily break include cycle
|
||||
patch -Np0 -i graminit-regen.patch
|
||||
# Build pgen
|
||||
make Parser/pgen
|
||||
make "${MAKEJOBS}" Parser/pgen
|
||||
# Regen graminit.c and graminit.h
|
||||
make Include/graminit.h
|
||||
make "${MAKEJOBS}" Include/graminit.h
|
||||
|
||||
# Regenerate some Python scripts using the other regenerated files
|
||||
# Must move them out to avoid using Lib/ module files which are
|
||||
|
@ -73,7 +73,7 @@ src_compile() {
|
|||
# Undo change
|
||||
patch -Np0 -R -i graminit-regen.patch
|
||||
# Now build the main program
|
||||
make CFLAGS="-U__DATE__ -U__TIME__"
|
||||
make "${MAKEJOBS}" CFLAGS="-U__DATE__ -U__TIME__"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -52,9 +52,9 @@ src_compile() {
|
|||
# Temporarily break include cycle
|
||||
patch -Np0 -i graminit-regen.patch
|
||||
# Build pgen
|
||||
make Parser/pgen
|
||||
make "${MAKEJOBS}" Parser/pgen
|
||||
# Regen graminit.c and graminit.h
|
||||
make Include/graminit.h
|
||||
make "${MAKEJOBS}" Include/graminit.h
|
||||
|
||||
# Regenerate some Python scripts using the other regenerated files
|
||||
# Must move them out to avoid using Lib/ module files which are
|
||||
|
@ -67,7 +67,7 @@ src_compile() {
|
|||
# Undo change
|
||||
patch -Np0 -R -i graminit-regen.patch
|
||||
# Now build the main program
|
||||
make CFLAGS="-U__DATE__ -U__TIME__"
|
||||
make "${MAKEJOBS}" CFLAGS="-U__DATE__ -U__TIME__"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -57,9 +57,9 @@ src_compile() {
|
|||
# Temporarily break include cycle
|
||||
patch -Np0 -i graminit-regen.patch
|
||||
# Build pgen
|
||||
make Parser/pgen
|
||||
make "${MAKEJOBS}" Parser/pgen
|
||||
# Regen graminit.c and graminit.h
|
||||
make Include/graminit.h
|
||||
make "${MAKEJOBS}" Include/graminit.h
|
||||
|
||||
# Regenerate some Python scripts using the other regenerated files
|
||||
# Must move them out to avoid using Lib/ module files which are
|
||||
|
@ -72,7 +72,7 @@ src_compile() {
|
|||
# Undo change
|
||||
patch -Np0 -R -i graminit-regen.patch
|
||||
# Now build the main program
|
||||
make CFLAGS="-U__DATE__ -U__TIME__"
|
||||
make "${MAKEJOBS}" CFLAGS="-U__DATE__ -U__TIME__"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -69,7 +69,7 @@ src_compile() {
|
|||
# We have to choose the order ourselves because the Makefile is extremely lax about the order
|
||||
# First of all, do everything that doesn't use any C
|
||||
rm Modules/_blake2/blake2s_impl.c
|
||||
make regen-opcode \
|
||||
make "${MAKEJOBS}" regen-opcode \
|
||||
regen-opcode-targets \
|
||||
regen-typeslots \
|
||||
regen-token \
|
||||
|
@ -82,17 +82,17 @@ src_compile() {
|
|||
regen-global-objects
|
||||
|
||||
# Do the freeze regen process
|
||||
make regen-frozen
|
||||
make regen-deepfreeze
|
||||
make regen-global-objects
|
||||
make "${MAKEJOBS}" regen-frozen
|
||||
make "${MAKEJOBS}" regen-deepfreeze
|
||||
make "${MAKEJOBS}" regen-global-objects
|
||||
|
||||
make CPPFLAGS="-U__DATE__ -U__TIME__"
|
||||
make "${MAKEJOBS}" CPPFLAGS="-U__DATE__ -U__TIME__"
|
||||
|
||||
# Regen Python/stdlib_module_names.h (you must have an existing build first)
|
||||
make regen-stdlib-module-names
|
||||
make "${MAKEJOBS}" regen-stdlib-module-names
|
||||
|
||||
# Now rebuild with proper stdlib_module_names.h
|
||||
make CPPFLAGS="-U__DATE__ -U__TIME__"
|
||||
make "${MAKEJOBS}" CPPFLAGS="-U__DATE__ -U__TIME__"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -55,9 +55,9 @@ src_configure() {
|
|||
|
||||
src_compile() {
|
||||
# Build pgen
|
||||
make Parser/pgen
|
||||
make "${MAKEJOBS}" Parser/pgen
|
||||
# Regen graminit.c and graminit.h
|
||||
make Include/graminit.h
|
||||
make "${MAKEJOBS}" Include/graminit.h
|
||||
|
||||
# Regenerate some Python scripts using the other regenerated files
|
||||
# Must move them out to avoid using Lib/ module files which are
|
||||
|
@ -69,7 +69,7 @@ src_compile() {
|
|||
python token.py
|
||||
|
||||
# Now build the main program
|
||||
make CFLAGS="-U__DATE__ -U__TIME__"
|
||||
make -j1 CFLAGS="-U__DATE__ -U__TIME__"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -58,9 +58,9 @@ src_configure() {
|
|||
|
||||
src_compile() {
|
||||
# Build pgen
|
||||
make Parser/pgen
|
||||
make -j1 Parser/pgen
|
||||
# Regen graminit.c and graminit.h
|
||||
make Include/graminit.h
|
||||
make "${MAKEJOBS}" Include/graminit.h
|
||||
|
||||
# Regenerate some Python scripts using the other regenerated files
|
||||
# Must move them out to avoid using Lib/ module files which are
|
||||
|
@ -72,7 +72,7 @@ src_compile() {
|
|||
python token.py
|
||||
|
||||
# Now build the main program
|
||||
make CFLAGS="-U__DATE__ -U__TIME__"
|
||||
make "${MAKEJOBS}" CFLAGS="-U__DATE__ -U__TIME__"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -53,9 +53,9 @@ src_configure() {
|
|||
src_compile() {
|
||||
# Regenerations
|
||||
rm Modules/_blake2/blake2s_impl.c
|
||||
make regen-all
|
||||
make "${MAKEJOBS}" regen-all
|
||||
|
||||
make CPPFLAGS="-U__DATE__ -U__TIME__"
|
||||
make "${MAKEJOBS}" CPPFLAGS="-U__DATE__ -U__TIME__"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
@ -27,7 +27,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
make PREFIX="${PREFIX}" MAKEINFO="true"
|
||||
make "${MAKEJOBS}" PREFIX="${PREFIX}" MAKEINFO="true"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
Loading…
Reference in New Issue