mirror of https://github.com/zeldaret/botw.git
tools: Update asm-differ and add support for -mw (make, watch)
This commit is contained in:
parent
ac972eeae9
commit
5c6cc59214
|
@ -1 +1 @@
|
||||||
Subproject commit fbe5173585823533dbea544aba1cc6e562531ed6
|
Subproject commit 7cd33c4e7f5adadf5892261ad8a522efec51cac8
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
def apply(config, args):
|
def apply(config, args):
|
||||||
config['arch'] = 'aarch64'
|
config['arch'] = 'aarch64'
|
||||||
|
@ -6,3 +7,16 @@ def apply(config, args):
|
||||||
config['myimg'] = 'build/uking'
|
config['myimg'] = 'build/uking'
|
||||||
config['source_directories'] = ['src']
|
config['source_directories'] = ['src']
|
||||||
config['objdump_executable'] = 'tools/aarch64-none-elf-objdump'
|
config['objdump_executable'] = 'tools/aarch64-none-elf-objdump'
|
||||||
|
|
||||||
|
for dir in ('build', 'build/nx64-release'):
|
||||||
|
if (Path(dir) / 'build.ninja').is_file():
|
||||||
|
config['make_command'] = ['ninja', '-C', dir]
|
||||||
|
|
||||||
|
|
||||||
|
def map_build_target(make_target: str):
|
||||||
|
if make_target == "build/uking":
|
||||||
|
return "uking"
|
||||||
|
|
||||||
|
# TODO: When support for directly diffing object files is added, this needs to strip
|
||||||
|
# the build/ prefix from the object file targets.
|
||||||
|
return make_target
|
||||||
|
|
Loading…
Reference in New Issue