mirror of
https://github.com/zeldaret/botw
synced 2026-05-23 06:54:18 -04:00
tools: Use bundled copy of objdump to simplify setup
This commit is contained in:
@@ -29,5 +29,4 @@ perf.mData.old
|
||||
.gdb_history
|
||||
|
||||
.DS_Store
|
||||
tools/aarch64-none-elf-objdump
|
||||
toolchain/clang/
|
||||
|
||||
Binary file not shown.
+15
-1
@@ -1,4 +1,18 @@
|
||||
from pathlib import Path
|
||||
import platform
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
|
||||
|
||||
def get_tools_bin_dir():
|
||||
path = ROOT / 'tools' / 'nx-decomp-tools-binaries'
|
||||
system = platform.system()
|
||||
if system == "Linux":
|
||||
return str(path) + "/linux/"
|
||||
if system == "Darwin":
|
||||
return str(path) + "/macos/"
|
||||
return ""
|
||||
|
||||
|
||||
def apply(config, args):
|
||||
@@ -6,7 +20,7 @@ def apply(config, args):
|
||||
config['baseimg'] = 'data/main.elf'
|
||||
config['myimg'] = 'build/uking'
|
||||
config['source_directories'] = ['src', 'lib']
|
||||
config['objdump_executable'] = 'tools/aarch64-none-elf-objdump'
|
||||
config['objdump_executable'] = get_tools_bin_dir() + 'aarch64-none-elf-objdump'
|
||||
|
||||
for dir in ('build', 'build/nx64-release'):
|
||||
if (Path(dir) / 'build.ninja').is_file():
|
||||
|
||||
Reference in New Issue
Block a user