Skip to content

Commit

Permalink
change toolchain to mipsel-none-elf and clean up build system
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-free committed Nov 21, 2023
1 parent 8fac594 commit 8ab7964
Show file tree
Hide file tree
Showing 46 changed files with 167 additions and 1,070 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "crosstool-ng"]
path = crosstool-ng
url = https://github.com/crosstool-ng/crosstool-ng
[submodule "mkpsxiso"]
path = mkpsxiso
url = https://github.com/lameguy64/mkpsxiso
Expand Down
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

# Thanks to whoever made https://devhints.io/makefile!

include variables.mk
include variables-shared.mk

PACKAGE_FILE = tonyhax-international-$(TONYHAX_VERSION).zip
Expand Down Expand Up @@ -54,3 +53,14 @@ clean:
$(MAKE) -C gameshark clean
$(MAKE) -C gshax clean
$(RM) tonyhax-*.zip

deps:
scripts/get-deps.sh
$(MAKE) -C pcsx-redux-support clean tools
cd mkpsxiso; rm -rf ./build; cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release; cmake --build ./build
cd psexe2rom; $(MAKE) clean; $(MAKE)

clean-deps:
$(MAKE) -C pcsx-redux-support clean
cd mkpsxiso; rm -rf ./build
cd psexe2rom; $(MAKE) clean
3 changes: 1 addition & 2 deletions boot-cd/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

# Thanks to whoever made https://devhints.io/makefile!

include ../variables.mk
include ../variables-shared.mk

.PHONY: clean
Expand All @@ -12,4 +11,4 @@ clean:
$(RM) $(BOOT_CD_FILES)

$(BOOT_CD_FILES): ../loader/tonyhax.exe cd-e.xml cd-j.xml licensee.dat licensej.dat system.cnf
mkpsxiso -y cd-e.xml; mkpsxiso -y cd-j.xml
../mkpsxiso/build/mkpsxiso -y cd-e.xml; mkpsxiso -y cd-j.xml
36 changes: 17 additions & 19 deletions build.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
# Building From Source

Obtain the **complete Tonyhax International current source tree from GitHub using git**, using the command below:
1) Install the `mipsel-none-elf` toolchain. The easist way is to use my [PSN00bSDK Builder](https://alex-free.github.io/psn00bsdk-builder):

`git clone https://github.com/alex-free/psn00bsdk-builder`

`cd psn00bsdk-builder`

`./build.sh`

`cd ../`

2) Clone Tonyhax International **recursively** from GitHub:

`git clone --recursive https://github.com/alex-free/tonyhax`

Next, install all the required dependencies:

* git
* autoconf
* automake
* g++
* make
* libtool
* texinfo
* help2man
* ncurses-devel
* libtinyxml2-devel
* cmake
* cdrdao
* python3
* python3-pip (and numpy, which is installed via this command: `pip3 install numpy`)
3) Install the required dependencies:

`cd tonyhax`

If you have the `dnf` or `apt` package manager, you can download the build dependencies automatically with the `get-deps.sh` script found in the `scripts` folder of the Tonyhax International [source tree](https//alex-free.github.io/tonyhax). **For any other OS, you'll need to find the above packages and install them manually yourself.** Please feel free to add support for your package manager.
`make deps`

Next, you need to build the tool-chain. Execute the `build-tool-chain.sh` script, which is found in the `scripts` directory of the source tree. **This will take some time to build, depending on how fast your computer is.**
Build Tonyhax International:

With everything now installed, build Tonyhax International with the `build.sh` script found in the `scripts` directory of the Tonyhax International source tree. After you build Tonyhax International a release `.zip` file will be generated in the root of the source directory.
`make`
1 change: 0 additions & 1 deletion crosstool-ng
Submodule crosstool-ng deleted from b8e498
Loading

0 comments on commit 8ab7964

Please sign in to comment.