sotn-decomp/config/splat.us.stwrp.yaml

94 lines
3.0 KiB
YAML
Raw Normal View History

2022-02-09 12:49:33 +00:00
options:
platform: psx
basename: stwrp
2022-10-16 08:55:11 +00:00
base_path: ..
2023-02-21 20:06:27 +00:00
build_path: build/us
2023-02-21 23:25:24 +00:00
target_path: disks/us/ST/WRP/WRP.BIN
asm_path: asm/us/st/wrp
2022-02-09 12:49:33 +00:00
asset_path: assets/st/wrp
src_path: src/st/wrp
Enhance make extract on PSX (#662) Previously if either the YAML or the symbol list were changed, we were forced to either manually delete the `asm` folder of the specific overlay or to invoke `make clean`, where the latter forced us to re-extract all the overlays via `make -j extract`. That changes with this PR. How `make` works is `target: dep1 dep2` where if one of the dependencies has the last modified date greater than the target, the rule is triggered again. Previously we were extracting overlays doing `make extract_stcen`. But since every overlay extraction generates a linker script I now changed the rules to do `make build/us/stcen.ld` to extract the same overlay. As I explained above, if either the YAML or one of the related symbols changes, the linker modified date will be older and the extraction for that overlay to be trigger again. The above allowed me to stop polluting the repo root with the linker scripts as they are now moved into `build/us` or `build/hd` depending of what you're trying to build. If you do `make extract` twice in a row you will be welcomed with a `make: Nothing to be done for 'extract'.`. There are still some instances where you **might** need `make clean` beforehand, especially when modifying the `segment` section in the YAML or renaming the symbols. A `rm -rf asm/$(VERSION)/$*` can help but I want to see if the current solution will be enough. ### Please try removing `make clean` from your workflow, once this is merged, to quickly detect possible problems with this new approach. I am also planning to make more substantial changes on our build-chain like this PR or #660 in the future. I am aiming to small incremental changes over time in case I break someone's flow or detect design flaws. I am also considering the breaking changes introduced in make 4.4, which will most likely be included in Ubuntu 24.04 LTS. I set March 2024 as a deadline to finish all the new build-chain work. --------- Co-authored-by: sozud <122322823+sozud@users.noreply.github.com>
2023-10-05 08:26:29 +00:00
ld_script_path: build/us/stwrp.ld
2022-02-09 12:49:33 +00:00
compiler: GCC
symbol_addrs_path: config/generated.symbols.us.stwrp.txt
undefined_funcs_auto_path: config/undefined_funcs_auto.us.stwrp.txt
undefined_syms_auto_path: config/undefined_syms_auto.us.stwrp.txt
2022-02-09 12:49:33 +00:00
find_file_boundaries: yes
use_legacy_include_asm: no
2022-10-16 08:55:11 +00:00
migrate_rodata_to_functions: no
asm_jtbl_label_macro: jlabel
extensions_path: tools/splat_ext
2022-12-25 09:46:07 +00:00
section_order:
2023-01-08 23:30:47 +00:00
- ".data"
2022-12-25 09:46:07 +00:00
- ".rodata"
- ".text"
2023-01-08 23:30:47 +00:00
- ".bss"
2022-02-09 12:49:33 +00:00
segments:
- name: stwrp
type: code
start: 0x00000000
vram: 0x80180000
subalign: 4
subsegments:
2023-03-31 07:42:03 +00:00
- [0x0, .data, header]
- [0xB8, layers, rooms]
- [0x1B8, .data, 6FD0]
- [0xF84, .data, entity_relic_orb]
- [0xFE8, .data, F420]
- [0x11AC, roomdef, g_Rooms]
- [0x1228, layoutobj, D_80181228]
- [0x1250, layoutobj, D_80181250]
- [0x1278, layoutobj, D_80181278]
- [0x12A0, layoutobj, D_801812A0]
- [0x12C8, layoutobj, D_801812C8]
- [0x12F0, layoutobj, D_801812F0]
- [0x1304, layoutobj, D_80181304]
- [0x1324, layoutobj, D_80181324]
- [0x134C, layoutobj, D_8018134C]
- [0x1374, layoutobj, D_80181374]
- [0x139C, layoutobj, D_8018139C]
- [0x13C4, layoutobj, D_801813C4]
- [0x13EC, layoutobj, D_801813EC]
- [0x1400, layoutobj, D_80181400]
- [0x1420, cmp, D_80181420]
- [0x1764, cmp, D_80181764]
- [0x1D08, cmp, D_80181D08]
- [0x1D68, tilelayout, D_80181D68]
- [0x1F68, tilelayout, D_80181F68]
- [0x2168, tilelayout, D_80182168]
- [0x2368, tilelayout, D_80182368]
- [0x2568, tilelayout, D_80182568]
- [0x2768, tilelayout, D_80182768]
- [0x2968, raw, D_80182968]
- [0x2A68, raw, D_80182A68]
- [0x2B68, raw, D_80182B68]
- [0x2C68, raw, D_80182C68]
- [0x2D68, tiledef, D_80182D68]
- [0x2D78, raw, D_80182D78]
- [0x3D78, raw, D_80183D78]
- [0x4D78, raw, D_80184D78]
- [0x5D78, raw, D_80185D78]
- [0x6D78, tiledef, D_80186D78]
- [0x6D88, animset, D_80186D88]
2023-02-05 19:43:20 +00:00
- [0x6E30, .rodata, 6FD0]
- [0x6E70, rodata] # EntityWarpRoom
- [0x6E90, rodata] # EntityWarpSmallRocks
- [0x6EA8, rodata] # EntityRedDoor
- [0x6EC0, rodata] # CollectGold
2023-03-25 20:37:41 +00:00
- [0x6F10, .rodata, D020]
- [0x6F30, .rodata, D020] # EntityEquipItemDrop
- [0x6F48, .rodata, entity_relic_orb]
- [0x6F80, .rodata, entity_message_box]
- [0x6F94, rodata] # EntityStageNamePopup
2022-02-09 12:49:33 +00:00
- [0x6FD0, c]
- [0x81E8, c, random]
- [0x8218, c, update]
- [0x8514, c, update_stage_entities]
- [0x861C, c]
2023-03-25 20:37:41 +00:00
- [0xD020, c]
- [0xE2CC, c, entity_relic_orb]
- [0xED9C, c, entity_heart_drop]
- [0xEEC4, c, entity_message_box]
- [0xF420, c]
2023-01-08 23:30:47 +00:00
- [0x13AA0, sbss] # bss?
2022-02-09 12:49:33 +00:00
- [0x14768]