Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ INCLUDE_CFLAGS = -I . -I include -I include/libc -I include/PR -I include/sys
INCLUDE_CFLAGS += -I $(LIBULTRA_DIR)/src/gu -I $(LIBULTRA_DIR)/src/libc -I $(LIBULTRA_DIR)/src/io -I $(LIBULTRA_DIR)/src/sc
INCLUDE_CFLAGS += -I $(LIBULTRA_DIR)/src/audio -I $(LIBULTRA_DIR)/src/os

ASFLAGS = -march=vr4300 -32 -G0 $(ASM_DEFINES) $(INCLUDE_CFLAGS)
ASFLAGS = -march=vr4300 -32 -G0 -mabi=32 $(ASM_DEFINES) $(INCLUDE_CFLAGS)
OBJCOPYFLAGS = -O binary

# Pad to 12MB if matching, otherwise build to a necessary minimum of 1.004MB
Expand Down Expand Up @@ -359,7 +359,7 @@ setup:
#Installing the splat dependencies
$(V)$(PYTHON) -m pip install -r requirements.txt
$(V)$(PYTHON) ver/splat/update_baserom_names.py
$(V)make -C $(TOOLS_DIR)
$(V)$(MAKE) -C $(TOOLS_DIR)

clean:
rm -rf $(BUILD_DIR)
Expand All @@ -376,13 +376,16 @@ clean_assets:
cleanall:
rm -rf $(BUILD_DIR)

distclean: clean
distclean_symbols: clean
rm -rf $(ASM_DIRS)
rm -rf $(BIN_DIRS)
rm -f $(SYMBOLS_DIR)/*auto.$(REGION).$(VERSION).txt
rm -f ver/$(BASENAME).$(REGION).$(VERSION).ld

distcleanall: cleanall
distclean: distclean_symbols
$(MAKE) -C tools distclean

distcleanall_symbols: cleanall
rm -rf asm
rm -rf assets
rm -f $(SYMBOLS_DIR)/*auto.*.txt
Expand All @@ -397,8 +400,11 @@ distcleanall: cleanall
rm -f $(SYMBOLS_DIR)/*auto.us.v80.txt
rm -f $(SYMBOLS_DIR)/*auto.pal.v80.txt

distcleanall: distcleanall_symbols
$(MAKE) -C tools distclean

#When you just need to wipe old symbol names and re-extract
cleanextract: distclean extract
cleanextract: distclean_symbols extract

#Put the build folder into expected for use with asm-differ. Only run this with a matching build.
expected: verify
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ As of August 12, 2025, this is our current score:

## Dependencies

### For Ubuntu/Debian based distros

- `gcc`, Version 8.0 or higher
- `make`, Version 4.2 or higher
- `python3`
Expand All @@ -24,6 +26,14 @@ As of August 12, 2025, this is our current score:

`sudo apt install build-essential pkg-config git python3 python3-pip binutils-mips-linux-gnu python3-venv libpcre2-dev libpcre2-8-0`

### For Arch based distros

`sudo pacman -Syu --needed base-devel pkgconf git python python-pip python-virtualenv pcre2`

For binutils you can [install this package from the AUR](!https://aur.archlinux.org/packages/mips64-elf-binutils)

`yay -Syu mips64-elf-binutils`

## Setup / Building

1. Install the dependencies
Expand Down
2 changes: 1 addition & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ dkr_assets_tool: $(dkr_assets_tool_OBJ_FILES)

recomp:
@echo "Fetching Recomp..."
wget https://github.com/decompals/ido-static-recomp/releases/download/v1.2/ido-5.3-recomp-${DETECTED_OS}.tar.gz
curl -O -L https://github.com/decompals/ido-static-recomp/releases/download/v1.2/ido-5.3-recomp-${DETECTED_OS}.tar.gz
mkdir -p $(RECOMP_DIR)
tar xf ido-5.3-recomp-${DETECTED_OS}.tar.gz -C $(RECOMP_DIR)
$(RM) ido-5.3-recomp-${DETECTED_OS}.tar.gz
Expand Down
5 changes: 3 additions & 2 deletions tools/get-binutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# --- Useful Variables --- #

# This is the specific binutils version that will be downloaded
binutils=binutils-2.36
binutils=binutils-2.46.0

# Where the built files will end up.
# If this directory doesn't already exist it will be created automatically.
Expand Down Expand Up @@ -50,7 +50,7 @@ mkdir $tempFolder
cd $tempFolder

PRINT_STEP 1 "DOWNLOADING BINUTILS FROM GNU.ORG"
wget ftp://ftp.gnu.org/gnu/binutils/$binutils.tar.xz
curl -L -O ftp://ftp.gnu.org/gnu/binutils/$binutils.tar.xz

PRINT_STEP 2 "EXTRACTING TAR FILE"
tar -xf $binutils.tar.xz
Expand All @@ -72,6 +72,7 @@ PRINT_STEP 5 "INSTALLING BUILT FILES"
INSTALL_FILE ar $binFolder
INSTALL_FILE objcopy $binFolder
INSTALL_FILE objdump $binFolder
RENAME_AND_INSTALL_FILE strip-new $binFolder strip
RENAME_AND_INSTALL_FILE as-new $gasFolder as
RENAME_AND_INSTALL_FILE ld-new $ldFolder ld

Expand Down
Loading