Skip to content

Commit

Permalink
Merge pull request #94 from uyjulian/cleanup1
Browse files Browse the repository at this point in the history
General cleanup 1
  • Loading branch information
fjtrujy authored Jun 6, 2022
2 parents 69c557e + 8046fda commit b56754c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DISPATCH_TOKEN: ${{ secrets.DISPATCH_TOKEN }}

steps:
- uses: actions/checkout@v2
Expand All @@ -34,11 +38,13 @@ jobs:

- name: Login to DockerHub
uses: docker/login-action@v1
if: env.DOCKER_USERNAME != null
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- uses: docker/build-push-action@v2
if: env.DOCKER_USERNAME != null
with:
push: true
tags: ${{ github.repository }}:${{ env.DOCKER_TAG }}
Expand All @@ -54,6 +60,7 @@ jobs:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
if: env.DISPATCH_TOKEN != null
with:
repository: ${{ github.repository_owner }}/ps2sdk
token: ${{ secrets.DISPATCH_TOKEN }}
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

This program will automatically build and install the compiler tools used in the creation of homebrew software for the Sony PlayStation® 2 videogame system.

## **ATENTION!**
## **ATTENTION**

If you're trying to install in your machine the **WHOLE PS2 Development Environment** this is **NOT** the repo to use, you should use instead the [ps2dev](https://github.com/ps2dev/ps2dev "ps2dev") repo.
If you're trying to install in your machine the **WHOLE PS2 Development Environment**, this is **NOT** the repo to use! Instead, you should use instead the [ps2dev](https://github.com/ps2dev/ps2dev "ps2dev") repo.

## What these scripts do

These scripts download (with `wget`/`git clone`) and install:
These scripts download (with `git clone`) and install:

- [binutils 2.14](http://www.gnu.org/software/binutils/ "binutils") (iop, dvp)
- [binutils 2.35.1](http://www.gnu.org/software/binutils/ "binutils") (ee),
Expand All @@ -21,23 +21,18 @@ These scripts download (with `wget`/`git clone`) and install:

## Requirements

1. Install gcc/clang, make, patch, git, texinfo, flex, bison, wget, gsl, gmp, mpfr, mpc and gettext if you don't have those.

2. Ensure that you have enough permissions for managing PS2DEV location (default to `/usr/local/ps2dev`). PS2DEV location MUST NOT have spaces or special characters in it's path! For example on Linux systems you can set access for current user by running commands:

1. Install gcc/clang, make, patch, git, texinfo, flex, bison, gsl, gmp, mpfr, mpc and gettext if you don't have those packages.
2. Ensure that you have enough permissions for managing PS2DEV location (which defaults to `/usr/local/ps2dev`). PS2DEV location MUST NOT have spaces or special characters in it's path! For example, on Linux systems, you can set access for current user by running commands:
```bash
export PS2DEV=/usr/local/ps2dev
sudo mkdir -p $PS2DEV
sudo chown -R $USER: $PS2DEV
```

3. Add this to your login script (example: `~/.bash_profile`)

```bash
export PS2DEV=/usr/local/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin
```

4. Run toolchain.sh
`./toolchain.sh`

0 comments on commit b56754c

Please sign in to comment.