2021-08-03 18:18:49 -05:00
|
|
|
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]
|
|
|
|
|
|
2021-12-22 16:31:37 -06:00
|
|
|
#config['mapfile'] = 'supermonkeyball.map'
|
|
|
|
|
#config['myimg'] = 'supermonkeyball.elf'
|
|
|
|
|
#config['baseimg'] = 'baserom.elf'
|
2021-12-20 22:09:56 -06:00
|
|
|
|
2021-12-22 16:31:37 -06:00
|
|
|
config['mapfile'] = 'mkbe.rel_mini_pilot.map'
|
|
|
|
|
config['myimg'] = 'mkbe.rel_mini_pilot.rel'
|
|
|
|
|
config['baseimg'] = 'baserom.mkbe.rel_mini_pilot.rel'
|
2021-12-20 22:09:56 -06:00
|
|
|
|
2021-08-03 18:18:49 -05:00
|
|
|
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"
|