mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-23 21:19:55 +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>
94 lines
3.0 KiB
YAML
94 lines
3.0 KiB
YAML
options:
|
|
platform: psx
|
|
basename: stwrp
|
|
base_path: ..
|
|
build_path: build/us
|
|
target_path: disks/us/ST/WRP/WRP.BIN
|
|
asm_path: asm/us/st/wrp
|
|
asset_path: assets/st/wrp
|
|
src_path: src/st/wrp
|
|
ld_script_path: build/us/stwrp.ld
|
|
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
|
|
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:
|
|
- ".data"
|
|
- ".rodata"
|
|
- ".text"
|
|
- ".bss"
|
|
segments:
|
|
- name: stwrp
|
|
type: code
|
|
start: 0x00000000
|
|
vram: 0x80180000
|
|
subalign: 4
|
|
subsegments:
|
|
- [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]
|
|
- [0x6E30, .rodata, 6FD0]
|
|
- [0x6E70, rodata] # EntityWarpRoom
|
|
- [0x6E90, rodata] # EntityWarpSmallRocks
|
|
- [0x6EA8, rodata] # EntityRedDoor
|
|
- [0x6EC0, rodata] # CollectGold
|
|
- [0x6F10, .rodata, D020]
|
|
- [0x6F30, .rodata, D020] # EntityEquipItemDrop
|
|
- [0x6F48, .rodata, entity_relic_orb]
|
|
- [0x6F80, .rodata, entity_message_box]
|
|
- [0x6F94, rodata] # EntityStageNamePopup
|
|
- [0x6FD0, c]
|
|
- [0x81E8, c, random]
|
|
- [0x8218, c, update]
|
|
- [0x8514, c, update_stage_entities]
|
|
- [0x861C, c]
|
|
- [0xD020, c]
|
|
- [0xE2CC, c, entity_relic_orb]
|
|
- [0xED9C, c, entity_heart_drop]
|
|
- [0xEEC4, c, entity_message_box]
|
|
- [0xF420, c]
|
|
- [0x13AA0, sbss] # bss?
|
|
- [0x14768]
|