Skip to content

Commit 868592d

Browse files
authored
Merge pull request #118 from pspdev/small-improvements
Small improvements
2 parents 72b93e0 + 55858d2 commit 868592d

14 files changed

+47
-52
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ How do I use it?
88

99
1. Set up your environment by installing the following software:
1010

11-
autoconf, automake, bison, flex, gcc, g++/gcc-c++, libusb-dev, make, ncurses, patch, readline, subversion, texinfo, wget, mpc, gmp, libelf, mpfr, git
11+
autoconf, automake, bison, bzip2, flex, gcc, g++/gcc-c++, gzip, libusb-dev, make, ncurses, patch, readline, subversion, texinfo, xz-utils, wget, libelf, git
1212

1313
2. Set the PSPDEV and PATH environmental variables:
1414

@@ -32,30 +32,30 @@ How do I use it?
3232
> After you are done use `swapoff -a` disable the swapfile. Finally you can
3333
> remove it with `rm`.
3434
35-
Ubuntu
36-
------
35+
Ubuntu/Debian
36+
-------------
3737

38-
1. Install the required packages by running.
38+
1. Install the required packages by running:
3939

40-
sudo apt-get install g++ build-essential autoconf automake cmake doxygen bison flex libncurses5-dev libsdl1.2-dev libreadline-dev libusb-dev texinfo libgmp3-dev libmpfr-dev libelf-dev libmpc-dev libfreetype6-dev zlib1g-dev libtool libtool-bin subversion git tcl unzip wget
40+
sudo ./prepare-debian-ubuntu.sh
4141

4242
2. Build and install the toolchain and SDK.
4343

44-
sudo ./toolchain-sudo.sh
44+
sudo ./toolchain-sudo.sh
4545

4646
> NOTE: If you do not wish for the toolchain to be installed in /usr/local/pspdev then edit toolchain-sudo.sh and change the INSTALLDIR variable.
4747
4848
OSX
4949
---
5050

5151
1. Install [`port`][MacPorts] or [`brew`][HomeBrew].
52-
2. Run `prepare-mac-os.sh`. This will auto-install all the libraries you will need before building.
52+
2. Install all the libraries you will need before building by running:
5353

54-
sudo ./prepare-mac-os.sh
54+
sudo ./prepare-mac-os.sh
5555

5656
3. Build and install the toolchain and SDK.
5757

58-
sudo ./toolchain-sudo.sh
58+
sudo ./toolchain-sudo.sh
5959

6060
Where do I go from here?
6161
========================

common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function auto_extract
2020
"tar") tar --no-same-owner -xf $path ;;
2121
"gz"|"tgz") tar --no-same-owner -xzf $path ;;
2222
"bz2"|"tbz2") tar --no-same-owner -xjf $path ;;
23+
"xz"|"txz") tar --no-same-owner -xJf $path ;;
2324
"zip") unzip $path ;;
2425
*) echo "I don't know how to extract $ext archives!"; return 1 ;;
2526
esac

depends/check-dependencies.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ function check_aclocal
6262
missing_depends+=($1); return 1
6363
}
6464

65-
66-
67-
# check_header gmp gmp.h
68-
# check_header mpc mpc.h
69-
# check_header mpfr mpfr.h
7065
check_header libelf elf.h libelf.h libelf/libelf.h gelf.h libelf/gelf.h
7166
check_header libusb usb.h
7267
check_header ncurses ncurses.h ncurses/ncurses.h
@@ -105,10 +100,10 @@ if [ "$(uname)" == "Darwin" ]; then
105100

106101
# GNU libtool will be prepended with letter 'g' to prevent conflicts with
107102
# the one comes along with OS X.
108-
check_program glibtool
103+
check_program glibtoolize
109104
else
110105
check_header readline readline.h readline/readline.h
111-
check_program libtool
106+
check_program libtoolize
112107
fi
113108

114109
if [ ${#missing_depends[@]} -ne 0 ]; then

patches/patch-gcc_cp_cfns.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

prepare-debian-ubuntu.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/bash
22

33
# Install build dependencies
4-
sudo apt-get install $@ g++ build-essential autoconf automake cmake doxygen bison flex libncurses5-dev libsdl1.2-dev libreadline-dev libusb-dev texinfo libgmp3-dev libmpfr-dev libelf-dev libmpc-dev libfreetype6-dev zlib1g-dev libtool libtool-bin subversion git tcl unzip
4+
sudo apt-get install $@ g++ build-essential autoconf automake cmake doxygen \
5+
bison flex libncurses5-dev libsdl1.2-dev libreadline-dev libusb-dev texinfo \
6+
libelf-dev libfreetype6-dev zlib1g-dev libtool libtool-bin subversion git \
7+
tcl wget unzip bzip2 gzip xz-utils
58

69
# Make `/bin/sh` an alias for `/bin/bash` instead of `/bin/dash` - which is
710
# faster, but doesn't play nice with some autotools scripts in psp-ports.

prepare-mac-os.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ install_libusb() {
1010
}
1111

1212
if [ -e "/opt/local/bin/port" ]; then
13-
sudo port install automake cmake doxygen libelf libmpc libusb wget
13+
sudo port install automake cmake doxygen libelf libusb wget xz
1414

1515
install_libusb
1616
elif [ -e "/usr/local/bin/brew" ]; then
1717
CURRENT_USER=$(stat -f '%Su' /dev/console)
18-
sudo -u $CURRENT_USER brew install automake cmake doxygen libelf libmpc libusb libusb-compat wget
18+
sudo -u $CURRENT_USER brew install automake cmake doxygen libelf libusb libusb-compat wget xz
1919
else
2020
echo "Go install MacPorts from http://www.macports.org/ or Homebrew from http://brew.sh/ first, then we can talk"
2121
fi
22-

scripts/001-binutils.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ cd build-psp
2222
CFLAGS="$CFLAGS -I/opt/local/include" \
2323
CPPFLAGS="$CPPFLAGS -I/opt/local/include" \
2424
LDFLAGS="$LDFLAGS -L/opt/local/lib" \
25-
../configure --prefix="$PSPDEV" --target="psp" --enable-install-libbfd --enable-plugins --disable-werror --with-system-zlib
25+
../configure --prefix="$PSPDEV" --target="psp" --enable-install-libbfd \
26+
--enable-plugins --disable-werror --with-system-zlib
2627

2728
# Compile and install. ( -r is required for building under osx )
2829
make -j $(num_cpus) clean

scripts/002-gcc-stage1.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
cd build-psp
3636

3737
## Configure the build.
38-
CFLAGS="$CFLAGS -I/opt/local/include" CPPFLAGS="$CPPFLAGS -I/opt/local/include" LDFLAGS="$LDFLAGS -L/opt/local/lib" ../configure --prefix="$PSPDEV" --target="psp" --enable-languages="c" --enable-lto --with-newlib --without-headers --disable-libssp
38+
CFLAGS="$CFLAGS -I/opt/local/include" \
39+
CPPFLAGS="$CPPFLAGS -I/opt/local/include" \
40+
LDFLAGS="$LDFLAGS -L/opt/local/lib" \
41+
../configure --prefix="$PSPDEV" --target="psp" --enable-languages="c" \
42+
--enable-lto --with-newlib --without-headers --disable-libssp
3943

4044
## Compile and install.
4145
make -j $(num_cpus) clean

scripts/003-pspsdk-stage1.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
./bootstrap
1515

1616
## Configure the build.
17-
CFLAGS="$CFLAGS -I/opt/local/include" CPPFLAGS="$CPPFLAGS -I/opt/local/include" LDFLAGS="$LDFLAGS -L/opt/local/lib" ./configure --with-pspdev="$PSPDEV"
17+
CFLAGS="$CFLAGS -I/opt/local/include" \
18+
CPPFLAGS="$CPPFLAGS -I/opt/local/include" \
19+
LDFLAGS="$LDFLAGS -L/opt/local/lib" \
20+
./configure --with-pspdev="$PSPDEV"
1821

1922
## Build and install.
2023
make -j $(num_cpus) clean

scripts/004-newlib-1.20.0.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ clone_git_repo github.com pspdev newlib newlib-1_20_0-PSP
1616

1717
## Configure the build.
1818
../configure --prefix="$PSPDEV" --target="psp" \
19-
--enable-newlib-iconv \
20-
--enable-newlib-multithread \
21-
--enable-newlib-mb \
19+
--enable-newlib-iconv --enable-newlib-multithread --enable-newlib-mb
2220

2321
## Compile and install.
2422
make -j $(num_cpus) clean

0 commit comments

Comments
 (0)