Skip to content

Commit

Permalink
Download IDO recomp instead of commiting binaries (#1781)
Browse files Browse the repository at this point in the history
* download ido

* silence curl
  • Loading branch information
hensldm authored Jan 12, 2025
1 parent e8e73fe commit 7426685
Show file tree
Hide file tree
Showing 70 changed files with 28 additions and 7,563 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ The build process has the following package requirements:
* git
* build-essential
* binutils-mips-linux-gnu
* curl
* python3
* python3-pip
* python3-venv
Expand All @@ -76,7 +77,7 @@ Under Debian / Ubuntu (which we recommend using), you can install them with the

```bash
sudo apt update
sudo apt install make git build-essential binutils-mips-linux-gnu python3 python3-pip python3-venv libpng-dev libxml2-dev
sudo apt install make git build-essential binutils-mips-linux-gnu curl python3 python3-pip python3-venv libpng-dev libxml2-dev
```

#### 2. Clone the repository
Expand Down
2 changes: 1 addition & 1 deletion docs/BUILDING_MACOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ cd ~/binutils-tmp
Get and extract binutils source

```bash
wget https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
curl -O https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
tar xjf binutils-2.35.tar.bz2
```

Expand Down
2 changes: 2 additions & 0 deletions tools/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ mkdmadata
mkldscript
reloc_prereq
vtxdis

ido_recomp/
24 changes: 23 additions & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,28 @@ CC := gcc
CFLAGS := -Wall -Wextra -pedantic -std=c99 -g -O2
PROGRAMS := vtxdis

all: $(PROGRAMS)
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
DETECTED_OS=linux
else ifeq ($(UNAME_S),Darwin)
DETECTED_OS=macos
else
$(error Unsupported OS: $(UNAME_S))
endif

IDO_RECOMP_VERSION := v1.2
IDO_RECOMP_5_3_DIR := ido_recomp/$(DETECTED_OS)/5.3
IDO_RECOMP_7_1_DIR := ido_recomp/$(DETECTED_OS)/7.1

all: $(PROGRAMS) $(IDO_RECOMP_5_3_DIR) $(IDO_RECOMP_7_1_DIR)
$(MAKE) -C ZAPD
$(MAKE) -C fado
$(MAKE) -C buildtools
$(MAKE) -C audio

clean:
$(RM) $(PROGRAMS)
$(RM) -r ido_recomp
$(MAKE) -C ZAPD clean
$(MAKE) -C fado clean
$(MAKE) -C buildtools clean
Expand All @@ -28,3 +42,11 @@ $(1): $($1_SOURCES)
endef

$(foreach p,$(PROGRAMS),$(eval $(call COMPILE,$(p))))

$(IDO_RECOMP_5_3_DIR):
mkdir -p $@
curl -sL https://github.com/decompals/ido-static-recomp/releases/download/$(IDO_RECOMP_VERSION)/ido-5.3-recomp-$(DETECTED_OS).tar.gz | tar xz -C $@

$(IDO_RECOMP_7_1_DIR):
mkdir -p $@
curl -sL https://github.com/decompals/ido-static-recomp/releases/download/$(IDO_RECOMP_VERSION)/ido-7.1-recomp-$(DETECTED_OS).tar.gz | tar xz -C $@
Binary file removed tools/ido_recomp/linux/5.3/as0
Binary file not shown.
Binary file removed tools/ido_recomp/linux/5.3/as1
Binary file not shown.
Binary file removed tools/ido_recomp/linux/5.3/cc
Binary file not shown.
Binary file removed tools/ido_recomp/linux/5.3/cfe
Binary file not shown.
Loading

0 comments on commit 7426685

Please sign in to comment.