forked from camthesaxman/smb-decomp
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdiff_settings.py
More file actions
executable file
·21 lines (18 loc) · 846 Bytes
/
Copy pathdiff_settings.py
File metadata and controls
executable file
·21 lines (18 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import subprocess, binascii
def apply(config, args):
p = subprocess.Popen(["make", "print-DEVKITPPC"], stdout=subprocess.PIPE)
devkit_str = p.communicate()[0].decode("ascii")
devkit_path = devkit_str.split("[")[1][:-2]
config['mapfile'] = 'supermonkeyball.map'
config['myimg'] = 'supermonkeyball.elf'
config['baseimg'] = 'baserom.elf'
#config['mapfile'] = 'mkbe.sel_stage.map'
#config['myimg'] = 'mkbe.sel_stage.rel'
#config['baseimg'] = 'baserom.mkbe.sel_stage.rel'
config['makeflags'] = []
config['source_directories'] = ['src', 'include', 'spec']
config["arch"] = "ppc"
config["map_format"] = "mw" # gnu or mw
config["mw_build_dir"] = "./" # only needed for mw map format
config["makeflags"] = []
config["objdump_executable"] = devkit_path+"/bin/powerpc-eabi-objdump"