2020-12-13 14:52:46 -06:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
def apply(config, args):
|
|
|
|
|
config['mapfile'] = 'build/dolzel2/dolzel2.map'
|
2021-01-02 23:58:42 -06:00
|
|
|
config['expected_mapfile'] = 'expected/build/dolzel2/dolzel2.map'
|
2020-12-13 14:52:46 -06:00
|
|
|
config['map_format'] = 'mw'
|
2021-01-02 23:58:42 -06:00
|
|
|
config['build_dir'] = "build/" # only needed for mw map format
|
|
|
|
|
config['expected_build_dir'] = 'expected/build/'
|
2020-12-13 14:52:46 -06:00
|
|
|
config['myimg'] = 'build/dolzel2/main.elf'
|
2021-05-10 08:54:07 -07:00
|
|
|
config['baseimg'] = 'expected/build/dolzel2/main.elf'
|
2020-12-13 14:52:46 -06:00
|
|
|
config['makeflags'] = []
|
2022-11-13 14:25:41 -07:00
|
|
|
if args.show_source:
|
2021-01-18 13:16:09 -06:00
|
|
|
config['makeflags'].append('DEBUG=1')
|
2020-12-13 14:52:46 -06:00
|
|
|
config['source_directories'] = ['src', 'libs', 'include']
|
|
|
|
|
config['arch'] = 'ppc'
|
|
|
|
|
config['objdump_executable'] = f"{os.environ['DEVKITPPC']}/bin/powerpc-eabi-objdump"
|