mirror of https://github.com/zeldaret/mm.git
				
				
				
			Download IDO recomp instead of commiting binaries (#1781)
* download ido * silence curl
This commit is contained in:
		
							parent
							
								
									e8e73fe771
								
							
						
					
					
						commit
						74266850b0
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,3 +4,5 @@ mkdmadata
 | 
			
		|||
mkldscript
 | 
			
		||||
reloc_prereq
 | 
			
		||||
vtxdis
 | 
			
		||||
 | 
			
		||||
ido_recomp/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,20 @@ 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
 | 
			
		||||
| 
						 | 
				
			
			@ -10,6 +23,7 @@ all: $(PROGRAMS)
 | 
			
		|||
 | 
			
		||||
clean:
 | 
			
		||||
	$(RM) $(PROGRAMS)
 | 
			
		||||
	$(RM) -r ido_recomp
 | 
			
		||||
	$(MAKE) -C ZAPD clean
 | 
			
		||||
	$(MAKE) -C fado clean
 | 
			
		||||
	$(MAKE) -C buildtools clean
 | 
			
		||||
| 
						 | 
				
			
			@ -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 not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue