-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (42 loc) · 1.45 KB
/
Makefile
File metadata and controls
54 lines (42 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# TODO (Khangaroo): Make this process a lot less hacky (no, export did not work)
# See MakefileNSO
.PHONY: all clean starlight send ryujinx linkerscript
S2VER ?= 552
S2VERSTR ?= 5.5.2
S2ROMTYPE ?= EU
ifeq ($(S2ROMTYPE),EU)
S2GID := 0100F8F0000A2000
else ifeq ($(S2ROMTYPE),JP)
S2GID := 01003c700009c000
else ifeq ($(S2ROMTYPE),US)
S2GID := 01003BC0000A0000
endif
ifeq ($(OS), Windows_NT)
PYTHON = py -3
else
PYTHON = python3
endif
all: starlight
starlight:
$(MAKE) all -f MakefileNSO S2VER=$(S2VER) S2VERSTR=$(S2VERSTR)
$(MAKE) starlight_patch_$(S2VER)/*.ips
@mkdir -p deploy/atmosphere/contents/$(S2GID)/exefs
@mkdir -p deploy/atmosphere/exefs_patches
@mv $(shell basename $(CURDIR))$(S2VER).nso deploy/atmosphere/contents/$(S2GID)/exefs/subsdk0
@mv starlight_patch_$(S2VER) deploy/atmosphere/exefs_patches/
@echo Deployed to deploy/
starlight_patch_$(S2VER)/*.ips: patches/*.slpatch patches/configs/$(S2VER).config patches/maps/$(S2VER)/*.map \
build$(S2VER)/$(shell basename $(CURDIR))$(S2VER).map scripts/genPatch.py
@rm -f starlight_patch_$(S2VER)/*.ips
$(PYTHON) scripts/genPatch.py $(S2VER)
send: all
$(PYTHON) scripts/sendPatch.py $(IP)
ryujinx: all
@cp -r deploy/atmosphere "$(APPDATA)/Ryujinx/sdcard/"
@echo Deployed to Ryujinx sdcard.
clean:
$(MAKE) clean -f MakefileNSO
@rm -fr starlight_patch_* deploy
linkerscript:
$(PYTHON) scripts/genLinkerScript.py patches/maps/551/main.map 0x2EBE000
mv syms.ld linkerscripts/syms$(S2VER).ld