mm/tools
Zach Banks 23d63852de
Use decompiled overlays when building ROM (#121)
* Restore padding in ObjVisiblock struct

* Copy overlays out of compiled `code.elf` to put into the ROM

This is just a "tempory fix"

It seems like the built code/assets in `code.elf` should not be copied
into `build/baserom/...` (over the original ROM's files) but instead
into a `build/decomp/...` tree or similar.

`dmadata_table.txt` would also need to be updated to read from the
correct location.

* Use dmadata_table.txt to generate build rules

`makerom_files.txt` & `makerom_uncompressed_files.txt` contained a lot
of the same data in `dmadata_table.txt`, so I added a small python
script to generate this information into `build/`

Segments are no longer dumped out of `code.elf` into `build/baserom/``,
instead they are put in `build/binary/`.

`linker_scripts/dmadata_script.txt` was checked in, but generated by
`dmadata.py`. I deleted it / moved it to `build/dmadata_script.txt.pre`.

I also introduced some sentinel files (`dep`). I ended up needing these
to make incremental builds work smoothly? (Without them, there were a
lot of steps that were getting re-triggered on every build.) If this
style isn't welcome, I can try to fiddle with the Makefile more to try
to avoid having them?

* Restore padding in BgLbfshot struct

* Touch sentinel file before command; rm on failure

* Restore padding in ObjKepnKoya struct

* Ensure asm/ directories exist before disasm steps

* Clean up Makefile rules

* Set default goal; silent objcopy; fix code_script path

* Fix ovl_En_Ginko_Man, ovl_Obj_Lightswitch merge

ovl_En_Encount2 still needs work to bring back to matching

* Fix ovl_En_Encount2 merge
2021-05-10 18:24:59 -04:00
..
ZAPD@bbbbb046a5 Adds in scene support (#117) 2021-04-29 18:56:18 -04:00
asm-differ@9d79eb9f53 Initial support of tracking progress per code/boot/overlay, and outputs the stats to csv. 2021-03-10 22:28:06 -05:00
asm-processor@f511734d56 Added IDO recomp support (#45) 2021-02-24 00:50:57 -05:00
decomp-permuter@cbb41c1254 Update tools (#16) 2020-09-13 21:09:13 -04:00
ido_recomp Fixes IDO recomp and allows git to detect binary files. (#50) 2021-02-25 18:21:51 -05:00
overlayhelpers Changed ichaindis to output actual names by default and added an --offset arg to output offset names if needed. Also changed permission on all the overlayhelper scripts (#102) 2021-04-12 21:47:36 -05:00
.gitignore Added IDO recomp support (#45) 2021-02-24 00:50:57 -05:00
Makefile Adds in scene support (#117) 2021-04-29 18:56:18 -04:00
bootstrap_actors.py Add OoT actor structs and enums (#55) 2021-02-28 22:52:12 -05:00
depend.py Use decompiled overlays when building ROM (#121) 2021-05-10 18:24:59 -04:00
disasm.py Floats and Strings in asm (#82) 2021-03-27 14:10:09 -05:00
dmadata.py z_actor_dlftbls.c OK. Rework a bunch of segment address organization. (#29) 2020-09-27 20:19:06 -04:00
dmadata_dependencies.py Use decompiled overlays when building ROM (#121) 2021-05-10 18:24:59 -04:00
elf2rom.c Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
elf32.c Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
elf32.h Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
extract_rom.py Adds in scene support (#117) 2021-04-29 18:56:18 -04:00
gen_mips_to_c_context.py dm_sa OK (#88) 2021-04-07 18:08:19 -04:00
m2ctx.py Some OOT transfers, some renaming, etc (#75) 2021-03-27 16:17:41 -05:00
makerom.py Update tools (#16) 2020-09-13 21:09:13 -04:00
makeromfs.c Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
mkldscript.c Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
n64chksum.c Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
n64chksum.h Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
overlay.py Fix ordering of relocations in overlay (#32) 2020-09-27 20:18:45 -04:00
prelude.inc Normalize line endings 2020-02-19 11:18:03 -06:00
preprocess.py yaz0.c OK (#71) 2021-03-16 21:49:27 -04:00
progress.py Adds in scene support (#117) 2021-04-29 18:56:18 -04:00
regconvert.py Update tools (#16) 2020-09-13 21:09:13 -04:00
rename_sym.sh Update tools (#16) 2020-09-13 21:09:13 -04:00
set_o32abi_bit.py Update tools (#16) 2020-09-13 21:09:13 -04:00
split_asm.py z_en_item00 (#78) 2021-03-27 19:55:42 -05:00
util.c Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
util.h Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
vtxdis.c Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
yaz0.c Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
yaz0.h Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00
yaz0tool.c Add some OOT tools (#17) 2020-09-17 17:11:59 -04:00