Skip to content

Commit

Permalink
Make it possible to control make parallelizm from env variable (and f…
Browse files Browse the repository at this point in the history
…ix gdb URLs)
  • Loading branch information
andoma committed Mar 28, 2012
1 parent 496f539 commit c00954d
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion scripts/001-binutils-2.20.1-PPU.sh
Expand Up @@ -27,4 +27,4 @@ mkdir build-ppu && cd build-ppu || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 && make install || { exit 1; }
make ${PARALLEL} && make install || { exit 1; }
2 changes: 1 addition & 1 deletion scripts/002-gcc-4.5.2-PPU-stage1.sh
Expand Up @@ -40,4 +40,4 @@ mkdir build-ppu-stage1 && cd build-ppu-stage1 || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 all-gcc && make install-gcc || { exit 1; }
make ${PARALLEL} all-gcc && make install-gcc || { exit 1; }
2 changes: 1 addition & 1 deletion scripts/003-newlib-1.19.0-PPU.sh
Expand Up @@ -20,4 +20,4 @@ mkdir build-ppu && cd build-ppu || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 && make install || { exit 1; }
make ${PARALLEL} && make install || { exit 1; }
2 changes: 1 addition & 1 deletion scripts/004-gcc-4.5.2-PPU-stage2.sh
Expand Up @@ -40,4 +40,4 @@ mkdir build-ppu-stage2 && cd build-ppu-stage2 || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 all && make install || { exit 1; }
make ${PARALLEL} all && make install || { exit 1; }
4 changes: 2 additions & 2 deletions scripts/005-gdb-7.2-PPU.sh
Expand Up @@ -2,7 +2,7 @@
# gdb-7.2-PPU.sh by Dan Peori (dan.peori@oopo.net)

## Download the source code.
wget --continue ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2 || { exit 1; }
wget --continue ftp://ftp.gnu.org/gnu/gdb/gdb-7.2a.tar.bz2 || { exit 1; }

## Unpack the source code.
rm -Rf gdb-7.2 && tar xfvj gdb-7.2.tar.bz2 && cd gdb-7.2 || { exit 1; }
Expand All @@ -22,4 +22,4 @@ mkdir build-ppu && cd build-ppu || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 && make install || { exit 1; }
make ${PARALLEL} && make install || { exit 1; }
2 changes: 1 addition & 1 deletion scripts/006-binutils-2.20.1-SPU.sh
Expand Up @@ -26,4 +26,4 @@ mkdir build-spu && cd build-spu || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 && make install || { exit 1; }
make ${PARALLEL} && make install || { exit 1; }
2 changes: 1 addition & 1 deletion scripts/007-gcc-4.5.2-SPU-stage1.sh
Expand Up @@ -38,4 +38,4 @@ mkdir build-spu-stage1 && cd build-spu-stage1 || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 all-gcc && make install-gcc || { exit 1; }
make ${PARALLEL} all-gcc && make install-gcc || { exit 1; }
2 changes: 1 addition & 1 deletion scripts/008-newlib-1.19.0-SPU.sh
Expand Up @@ -20,4 +20,4 @@ mkdir build-spu && cd build-spu || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 && make install || { exit 1; }
make ${PARALLEL} && make install || { exit 1; }
2 changes: 1 addition & 1 deletion scripts/009-gcc-4.5.2-SPU-stage2.sh
Expand Up @@ -38,4 +38,4 @@ mkdir build-spu-stage2 && cd build-spu-stage2 || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 all && make install || { exit 1; }
make ${PARALLEL} all && make install || { exit 1; }
4 changes: 2 additions & 2 deletions scripts/010-gdb-7.2-SPU.sh
Expand Up @@ -2,7 +2,7 @@
# gdb-7.2-SPU.sh by Dan Peori (dan.peori@oopo.net)

## Download the source code.
wget --continue ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2 || { exit 1; }
wget --continue ftp://ftp.gnu.org/gnu/gdb/gdb-7.2a.tar.bz2 || { exit 1; }

## Unpack the source code.
rm -Rf gdb-7.2 && tar xfvj gdb-7.2.tar.bz2 && cd gdb-7.2 || { exit 1; }
Expand All @@ -21,4 +21,4 @@ mkdir build-spu && cd build-spu || { exit 1; }
|| { exit 1; }

## Compile and install.
make -j 4 && make install || { exit 1; }
make ${PARALLEL} && make install || { exit 1; }
3 changes: 3 additions & 0 deletions toolchain.sh
@@ -1,6 +1,9 @@
#!/bin/bash
# toolchain.sh by Dan Peori (dan.peori@oopo.net)

: ${PARALLEL:="-j2"}
export PARALLEL

## Enter the ps3toolchain directory.
cd "`dirname $0`" || { echo "ERROR: Could not enter the ps3toolchain directory."; exit 1; }

Expand Down

0 comments on commit c00954d

Please sign in to comment.