Skip to content

Commit 4b79892

Browse files
committed
Less verbose wget and fix SPU newlib
1 parent f73534c commit 4b79892

6 files changed

Lines changed: 36 additions & 16 deletions

File tree

‎scripts/001-binutils-PPU.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ BINUTILS="binutils-2.42"
66
if [ ! -d ${BINUTILS} ]; then
77

88
## Download the source code.
9-
if [ ! -f ${BINUTILS}.tar.bz2 ]; then wget --continue https://ftpmirror.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2; fi
9+
if [ ! -f ${BINUTILS}.tar.bz2 ]; then wget -q --show-progress --continue https://ftpmirror.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2; fi
1010

1111
## Download an up-to-date config.guess and config.sub
12-
if [ ! -f config.guess ]; then wget --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
13-
if [ ! -f config.sub ]; then wget --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi
12+
if [ ! -f config.guess ]; then wget -q --show-progress --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
13+
if [ ! -f config.sub ]; then wget -q --show-progress --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi
1414

1515
## Unpack the source code.
1616
tar xfj ${BINUTILS}.tar.bz2

‎scripts/002-gcc-newlib-PPU.sh‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@
44
GCC="gcc-7.5.0"
55
NEWLIB="newlib-4.4.0.20231231"
66

7+
if [ ! -d ${NEWLIB} ]; then
8+
9+
## Download the source code.
10+
if [ ! -f ${NEWLIB}.tar.gz ]; then wget -q --show-progress --continue https://sourceware.org/pub/newlib/${NEWLIB}.tar.gz; fi
11+
12+
## Unpack the source code.
13+
rm -Rf ${NEWLIB} && tar xfz ${NEWLIB}.tar.gz
14+
15+
## Patch the source code.
16+
cat ../patches/${NEWLIB}-PS3.patch | patch -p1 -d ${NEWLIB}
17+
18+
fi
19+
720
if [ ! -d ${GCC} ]; then
821

922
## Download the source code.
10-
if [ ! -f ${GCC}.tar.xz ]; then wget --continue https://ftpmirror.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.xz; fi
11-
if [ ! -f ${NEWLIB}.tar.gz ]; then wget --continue https://sourceware.org/pub/newlib/${NEWLIB}.tar.gz; fi
23+
if [ ! -f ${GCC}.tar.xz ]; then wget -q --show-progress --continue https://ftpmirror.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.xz; fi
1224

1325
## Unpack the source code.
1426
rm -Rf ${GCC} && tar xfJ ${GCC}.tar.xz
15-
rm -Rf ${NEWLIB} && tar xfz ${NEWLIB}.tar.gz
1627

1728
## Patch the source code.
1829
cat ../patches/${GCC}-PS3.patch | patch -p1 -d ${GCC}
19-
cat ../patches/${NEWLIB}-PS3.patch | patch -p1 -d ${NEWLIB}
2030

2131
## Enter the source code directory.
2232
cd ${GCC}

‎scripts/004-binutils-SPU.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ BINUTILS="binutils-2.22"
66
if [ ! -d ${BINUTILS} ]; then
77

88
## Download the source code.
9-
if [ ! -f ${BINUTILS}.tar.bz2 ]; then wget --continue https://ftpmirror.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2; fi
9+
if [ ! -f ${BINUTILS}.tar.bz2 ]; then wget -q --show-progress --continue https://ftpmirror.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2; fi
1010

1111
## Download an up-to-date config.guess and config.sub
12-
if [ ! -f config.guess ]; then wget --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
13-
if [ ! -f config.sub ]; then wget --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi
12+
if [ ! -f config.guess ]; then wget -q --show-progress --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
13+
if [ ! -f config.sub ]; then wget -q --show-progress --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi
1414

1515
## Unpack the source code.
1616
tar xfj ${BINUTILS}.tar.bz2

‎scripts/005-gcc-newlib-SPU.sh‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@
44
GCC="gcc-7.5.0"
55
NEWLIB="newlib-4.2.0.20211231"
66

7+
if [ ! -d ${NEWLIB} ]; then
8+
9+
## Download the source code.
10+
if [ ! -f ${NEWLIB}.tar.gz ]; then wget -q --show-progress --continue https://sourceware.org/pub/newlib/${NEWLIB}.tar.gz; fi
11+
12+
## Unpack the source code.
13+
rm -Rf ${NEWLIB} && tar xfz ${NEWLIB}.tar.gz
14+
15+
## Patch the source code.
16+
cat ../patches/${NEWLIB}-PS3.patch | patch -p1 -d ${NEWLIB}
17+
18+
fi
19+
720
if [ ! -d ${GCC} ]; then
821

922
## Download the source code.
10-
if [ ! -f ${GCC}.tar.xz ]; then wget --continue https://ftpmirror.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.xz; fi
11-
if [ ! -f ${NEWLIB}.tar.gz ]; then wget --continue https://sourceware.org/pub/newlib/${NEWLIB}.tar.gz; fi
23+
if [ ! -f ${GCC}.tar.xz ]; then wget -q --show-progress --continue https://ftpmirror.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.xz; fi
1224

1325
## Unpack the source code.
1426
rm -Rf ${GCC} && tar xfJ ${GCC}.tar.xz
15-
rm -Rf ${NEWLIB} && tar xfz ${NEWLIB}.tar.gz
1627

1728
## Patch the source code.
1829
cat ../patches/${GCC}-PS3.patch | patch -p1 -d ${GCC}
19-
cat ../patches/${NEWLIB}-PS3.patch | patch -p1 -d ${NEWLIB}
2030

2131
## Enter the source code directory.
2232
cd ${GCC}

‎scripts/006-psl1ght.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# psl1ght.sh by Naomi Peori (naomi@peori.ca)
33

44
## Download the source code.
5-
wget --no-check-certificate https://github.com/ps3dev/PSL1GHT/tarball/aqua-updates -O psl1ght.tar.gz
5+
wget -q --show-progress --no-check-certificate https://github.com/ps3dev/PSL1GHT/tarball/aqua-updates -O psl1ght.tar.gz
66

77
## Unpack the source code.
88
rm -Rf psl1ght && mkdir psl1ght && tar --strip-components=1 --directory=psl1ght -xzf psl1ght.tar.gz

‎scripts/007-ps3libraries.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# ps3libraries.sh by Naomi Peori (naomi@peori.ca)
33

44
## Download the source code.
5-
wget --no-check-certificate https://github.com/ps3dev/ps3libraries/tarball/master -O ps3libraries.tar.gz
5+
wget -q --show-progress --no-check-certificate https://github.com/ps3dev/ps3libraries/tarball/master -O ps3libraries.tar.gz
66

77
## Unpack the source code.
88
rm -Rf ps3libraries && mkdir ps3libraries && tar --strip-components=1 --directory=ps3libraries -xzf ps3libraries.tar.gz && cd ps3libraries

0 commit comments

Comments
 (0)