mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-27 15:00:36 +00:00
fa21ce1442
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>
90 lines
2.6 KiB
YAML
90 lines
2.6 KiB
YAML
options:
|
|
platform: psx
|
|
basename: stno3
|
|
base_path: ..
|
|
build_path: build/us
|
|
target_path: disks/us/ST/NO3/NO3.BIN
|
|
asm_path: asm/us/st/no3
|
|
asset_path: assets/st/no3
|
|
src_path: src/st/no3
|
|
ld_script_path: build/us/stno3.ld
|
|
compiler: GCC
|
|
symbol_addrs_path: config/generated.symbols.us.stno3.txt
|
|
undefined_funcs_auto_path: config/undefined_funcs_auto.us.stno3.txt
|
|
undefined_syms_auto_path: config/undefined_syms_auto.us.stno3.txt
|
|
find_file_boundaries: yes
|
|
use_legacy_include_asm: no
|
|
migrate_rodata_to_functions: no
|
|
asm_jtbl_label_macro: jlabel
|
|
extensions_path: tools/splat_ext
|
|
section_order:
|
|
- ".rodata"
|
|
- ".text"
|
|
- ".data"
|
|
segments:
|
|
- name: stno3
|
|
type: code
|
|
start: 0x00000000
|
|
vram: 0x80180000
|
|
subalign: 4
|
|
subsegments:
|
|
- [0x0, data]
|
|
- [0x920, data]
|
|
- [0xAAC, data]
|
|
- [0xDC0, data]
|
|
- [0xDD0, data]
|
|
- [0xE50, data]
|
|
- [0xE70, data]
|
|
- [0xE80, data]
|
|
- [0xE90, data]
|
|
- [0xEA0, data]
|
|
- [0x11F0, data]
|
|
- [0x1B40, data]
|
|
- [0x25B4, .data, entity_relic_orb]
|
|
- [0x2618, data]
|
|
- [0x3180, data]
|
|
- [0x39A0, data]
|
|
- [0x3AC0, data]
|
|
- [0x3AF0, data]
|
|
- [0x3B30, data]
|
|
- [0x3CC4, roomdef, g_Rooms]
|
|
- [0x3DC8, data]
|
|
- [0x4CE0, data]
|
|
- [0x373E0, data]
|
|
- [0x373E8, .rodata, 377D4] # EntityCastleDoor
|
|
- [0x37400, .rodata, 377D4] # EntityStairwayPiece
|
|
- [0x37414, .rodata, 3C4EC]
|
|
- [0x3742C, .rodata, 3E134]
|
|
- [0x37440, rodata]
|
|
- [0x37458, rodata]
|
|
- [0x374DC, .rodata, 3FF00] # EntityRoomTransition2
|
|
- [0x374F4, .rodata, 3FF00] # EntityDeathStolenItems
|
|
- [0x37514, .rodata, 3FF00] # EntityDeath
|
|
- [0x37564, .rodata, 3FF00] # EntityWargExplosionPuffOpaque
|
|
- [0x37578, rodata]
|
|
- [0x375E0, .rodata, 46684] # EntityPrizeDrop
|
|
- [0x37600, .rodata, 46684] # EntityEquipItemDrop
|
|
- [0x37618, .rodata, entity_relic_orb]
|
|
- [0x37650, .rodata, entity_message_box]
|
|
- [0x37664, rodata]
|
|
- [0x376E8, rodata]
|
|
- [0x377A4, .rodata, 56264] # EntityBat
|
|
- [0x377B8, .rodata, 564B0] # EntityZombie
|
|
- [0x377D4, c]
|
|
- [0x3C4EC, c]
|
|
- [0x3E134, c]
|
|
- [0x3FF00, c]
|
|
- [0x4184C, c, random]
|
|
- [0x4187C, c, update]
|
|
- [0x41B78, c, update_stage_entities]
|
|
- [0x41C80, c]
|
|
- [0x46684, c]
|
|
- [0x47930, c, entity_relic_orb]
|
|
- [0x48400, c, entity_heart_drop]
|
|
- [0x48528, c, entity_message_box]
|
|
- [0x48A84, c]
|
|
- [0x56264, c]
|
|
- [0x564B0, c]
|
|
- [0x570B0, sbss]
|
|
- [0x57E18]
|