diff options
| author | Oxore <oxore@protonmail.com> | 2022-05-17 08:58:51 +0300 |
|---|---|---|
| committer | Oxore <oxore@protonmail.com> | 2022-05-17 08:58:51 +0300 |
| commit | b875d19191f659f88b8c43a7f08bf6df740b07c7 (patch) | |
| tree | bd892e4a94fd25c3db850646568e819a94d7ca9e | |
| parent | 4ee9cc06c66711d8976065a8d9633023ff509c5e (diff) | |
Add jobs common variable
| -rw-r--r-- | 3-build-binutils.sh | 2 | ||||
| -rw-r--r-- | 4-build-gcc-stage-1.sh | 2 | ||||
| -rw-r--r-- | 5-build-newlib.sh | 2 | ||||
| -rw-r--r-- | 6-build-gcc-stage-2.sh | 2 | ||||
| -rw-r--r-- | common | 3 |
5 files changed, 6 insertions, 5 deletions
diff --git a/3-build-binutils.sh b/3-build-binutils.sh index 1a7ee8a..191f3e9 100644 --- a/3-build-binutils.sh +++ b/3-build-binutils.sh @@ -8,7 +8,7 @@ echo "Configuring binutils-${binutils_ver}" ../../unpacked/binutils-$binutils_ver/configure --prefix=$prefix_dir --target=$target --disable-multilib >configure.log 2>&1 if [ ! $? ]; then less configure.log; exit; fi echo "Building binutils-$binutils_ver" -make -j10 >build.log 2>&1 +make -j$jobs >build.log 2>&1 if [ ! $? ]; then less build.log; exit; fi echo "Installing binutils-$binutils_ver" make install >install.log 2>&1 diff --git a/4-build-gcc-stage-1.sh b/4-build-gcc-stage-1.sh index 65be2eb..a944a94 100644 --- a/4-build-gcc-stage-1.sh +++ b/4-build-gcc-stage-1.sh @@ -9,7 +9,7 @@ echo "Configuring gcc-${gcc_ver} (stage 1)" ../../unpacked/gcc-$gcc_ver/configure --prefix=$prefix_dir --target=$target --disable-multilib --enable-languages=c,c++ >configure.log 2>&1 if [ ! $? ]; then less configure.log; exit; fi echo "Building gcc-$gcc_ver (stage 1)" -make -j10 all-gcc >build.log 2>&1 +make -j$jobs all-gcc >build.log 2>&1 if [ ! $? ]; then less build.log; exit; fi echo "Installing gcc-$gcc_ver (stage 1)" make install-gcc >install.log 2>&1 diff --git a/5-build-newlib.sh b/5-build-newlib.sh index f4f6d50..5c4429b 100644 --- a/5-build-newlib.sh +++ b/5-build-newlib.sh @@ -9,7 +9,7 @@ echo "Configuring newlib-${newlib_ver}" ../../unpacked/newlib-$newlib_ver/configure --prefix=$prefix_dir --target=$target >configure.log 2>&1 if [ ! $? ]; then less configure.log; exit; fi echo "Building newlib-$newlib_ver" -make -j10 >build.log 2>&1 +make -j$jobs >build.log 2>&1 if [ ! $? ]; then less build.log; exit; fi echo "Installing newlib-$newlib_ver" make install >install.log 2>&1 diff --git a/6-build-gcc-stage-2.sh b/6-build-gcc-stage-2.sh index 15e5e3c..3c39d46 100644 --- a/6-build-gcc-stage-2.sh +++ b/6-build-gcc-stage-2.sh @@ -9,7 +9,7 @@ echo "Configuring gcc-${gcc_ver} (stage 2)" ../../unpacked/gcc-$gcc_ver/configure --prefix=$prefix_dir --target=$target --enable-languages=c,c++ >configure-stage-2.log 2>&1 if [ ! $? ]; then less configure-stage-2.log; exit; fi echo "Building gcc-$gcc_ver (stage 2)" -make -j10 all-gcc >build-stage-2.log 2>&1 +make -j$jobs all-gcc >build-stage-2.log 2>&1 if [ ! $? ]; then less build-stage-2.log; exit; fi echo "Installing gcc-$gcc_ver (stage 2)" make install-gcc >install-stage-2.log 2>&1 @@ -7,4 +7,5 @@ mpc_ver=1.2.1 isl_ver=0.24 cloog_ver=0.18.1 target=mips-elf -prefix_dir=$(pwd)/preix-${target}-toolchain +prefix_dir=$(pwd)/prefix-${target}-toolchain +jobs=12 |
