Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from fjtrujy/master
Upgrading script for new toolchain
- Loading branch information
Showing
31 changed files
with
529 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 PSP Homebrew Development | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,81 @@ | ||
# pspdev | ||
pspdev master repository | ||
|
||
This is a repository for auto-builds of the whole psp toolchain using | ||
GitHub actions. | ||
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/pspdev/pspdev/CI?label=CI&logo=github&style=for-the-badge)](https://github.com/pspdev/pspdev/actions?query=workflow%3ACI)[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/pspdev/pspdev/CI-Docker?label=CI-Docker&logo=github&style=for-the-badge)](https://github.com/pspdev/pspdev/actions?query=workflow%3ACI-Docker)[![Docker Pulls](https://img.shields.io/docker/pulls/pspdev/pspdev?style=for-the-badge)](https://hub.docker.com/r/pspdev/pspdev/tags) | ||
|
||
## Building | ||
Main PSP Repo for building the whole `PSP Development` environment in your local machine. | ||
|
||
### Prequisites: | ||
This program will automatically build and install the whole compiler and other tools used in the creation of homebrew software for the Sony PlayStation Portable® videogame system. | ||
|
||
#### Linux distributions | ||
## What these scripts do | ||
|
||
```console | ||
$ ./depends/check-dependencies.sh | ||
These scripts download (`git clone`) and install: | ||
|
||
- [psptoolchain](https://github.com/pspdev/psptoolchain "psptoolchain") | ||
- [pspsdk](https://github.com/pspdev/pspsdk "pspsdk") | ||
- [psp-packages](https://github.com/pspdev/psp-packages "psp-packages") | ||
- [psplinkusb](https://github.com/pspdev/psplinkusb "psplinkusb") | ||
- [ebootsigner](https://github.com/pspdev/ebootsigner "ebootsigner") | ||
|
||
## Requirements | ||
|
||
1. Install gcc/clang, make, cmake, patch, git, texinfo, flex, bison, gettext, wget, gsl, gmp, mpfr, mpc, libusb, readline, libarchive, gpgme, bash, openssl and libtool if you don't have those. | ||
We offer a script to help you for installing dependencies: | ||
|
||
### Ubuntu/Debian | ||
```bash | ||
sudo ./prepare-debian-ubuntu.sh | ||
``` | ||
|
||
#### macOS: | ||
### Fedora | ||
```bash | ||
sudo ./prepare-fedora.sh | ||
``` | ||
|
||
```console | ||
$ brew bundle | ||
### OSX | ||
```bash | ||
sudo ./prepare-mac-os.sh | ||
``` | ||
|
||
### Building the Toolchain | ||
2. _Optional._ If you are upgrading from the previous version of the PSPDEV environment, it is highly recommended to remove the content of the PSPDEV folder before upgrade. This is a necessary step after the major toolchain upgrade. | ||
```bash | ||
sudo rm -rf $PSPDEV | ||
``` | ||
|
||
```console | ||
export PSPDEV=/path/to/pspdev | ||
3. Ensure that you have enough permissions for managing PSPDEV location (default to `/usr/local/pspdev`, but you can use a different path). PSPDEV location MUST NOT have spaces or special characters in its path! PSPDEV should be an absolute path. On Unix systems, if the command `mkdir -p $PSPDEV` fails for you, you can set access for the current user by running commands: | ||
```bash | ||
export PSPDEV=/usr/local/pspdev | ||
sudo mkdir -p $PSPDEV | ||
sudo chown -R $USER: $PSPDEV | ||
``` | ||
|
||
4. Add this to your login script (example: `~/.bash_profile`) | ||
**Note:** Ensure that you have full access to the PSPDEV path. You can change the PSPDEV path with the following requirements: only use absolute paths, don't use spaces, only use Latin characters. | ||
```bash | ||
export PSPDEV=/usr/local/pspdev | ||
export PATH=$PATH:$PSPDEV/bin | ||
./pspdev.sh | ||
``` | ||
|
||
There are specific scripts to aid building in some circumstances: | ||
- `pspdev-local.sh` | ||
- `pspdev-sudo.sh` | ||
5. Run build-all.sh | ||
```bash | ||
./build-all.sh | ||
``` | ||
|
||
## Docker generation | ||
|
||
This repo also uses CI/CD to create a docker image called `pspdev/pspdev:latest` per change. This is useful if you're a developer that wants to create/port an application to the PSP. You can compile your project using this docker image. | ||
|
||
## Extra steps | ||
|
||
If you want, you can _JUST_ install the extra dependencies as `psplinkusb and ebootsigner`. To achieve this execute | ||
```bash | ||
./build-extra.sh | ||
``` | ||
|
||
### macOS | ||
|
||
If you download the pre-built macOS binaries and get a security error such as _`"pspsh" cannot be opened because the developer cannot be verified.`_, you can remove the quarantine attribute by running: | ||
```bash | ||
xattr -dr com.apple.quarantine path/to/prebuilt/pspdev | ||
``` | ||
|
||
## Thanks |
Oops, something went wrong.