Work on Yaml. Working on binutils
This commit is contained in:
@@ -23,9 +23,39 @@ sudo apt install libc6:i386 libstdc++6:i386
|
||||
|
||||
### Install dependencies
|
||||
```bash
|
||||
sudo apt install make binutils-mips-linux-gnu gcc-mips-linux-gnu python3-venv
|
||||
sudo apt install make python3-venv
|
||||
```
|
||||
|
||||
### Install decompals binutils
|
||||
|
||||
This project requires a custom PS2-specific version of binutils to assemble the extracted MIPS assembly. The system-provided `binutils-mips-linux-gnu` package may not work correctly with PS2 assembly, so manual installation is required.
|
||||
|
||||
Download the [binutils-mips-ps2-decompals-linux-x86-64.tar.gz (v0.10)](https://github.com/decompals/binutils-mips-ps2-decompals/releases/download/v0.10/binutils-mips-ps2-decompals-linux-x86-64.tar.gz) package.
|
||||
|
||||
Extract the archive to a location of your choice, for example:
|
||||
|
||||
```bash
|
||||
sudo mkdir -p /opt/binutils-mips-ps2-decompals
|
||||
sudo tar -xzf binutils-mips-ps2-decompals-linux-x86-64.tar.gz -C /opt/binutils-mips-ps2-decompals
|
||||
```
|
||||
|
||||
Then add the bin directory to your `PATH` environment variable:
|
||||
|
||||
```bash
|
||||
export PATH="/opt/binutils-mips-ps2-decompals/:$PATH"
|
||||
```
|
||||
|
||||
To make this change persistent, add the line above to your shell configuration file (for example `~/.bashrc`, `~/.zshrc`, or equivalent), then restart your terminal or reload your shell.
|
||||
|
||||
Verify the installation by running:
|
||||
|
||||
```bash
|
||||
mips-ps2-decompals-as --version
|
||||
```
|
||||
|
||||
If the installation was successful, the command should print the assembler version information.
|
||||
|
||||
|
||||
### Setup a Virtual Environment for Python
|
||||
Python's virtual environments are the preferred way to use this software, as you may not be allowed to install packages globally.
|
||||
```bash
|
||||
@@ -37,6 +67,11 @@ python3 -m pip install -r requirements.txt
|
||||
### Copy assets from game DVD/ISO
|
||||
The main executable is needed in order to perform the decompilation.
|
||||
|
||||
#### JP
|
||||
```bash
|
||||
make jp-clean
|
||||
```
|
||||
|
||||
### Command Help
|
||||
To have a list all available commands, run `make` without targets:
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user