From b767d1ee91014dd83b4d61c813122427a2d6b2eb Mon Sep 17 00:00:00 2001 From: Sauraen Date: Tue, 19 Nov 2024 20:53:39 -0800 Subject: [PATCH] Removed _fifo from object files --- Makefile | 14 +++++++------- template.fifo.s => template.o.s | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) rename template.fifo.s => template.o.s (66%) diff --git a/Makefile b/Makefile index 49663aa..29982be 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ ALL_UCODES_WITH_MD5S := ALL_OUTPUT_DIRS := ifneq (, $(AS)) -%.o: %.s +%.o: %.o.s @$(AS) -march=vr4300 -mabi=32 -I . $< -o $@ endif @@ -95,8 +95,8 @@ define ucode_rule DATA_FILE := $$(UCODE_OUTPUT_DIR)/$(NAME).data SYM_FILE := $$(UCODE_OUTPUT_DIR)/$(NAME).sym TEMP_FILE := $$(UCODE_OUTPUT_DIR)/$(NAME).tmp.s - S_FILE := $$(UCODE_OUTPUT_DIR)/gsp$(NAME).fifo.s - O_FILE := $$(UCODE_OUTPUT_DIR)/gsp$(NAME).fifo.o + OS_FILE := $$(UCODE_OUTPUT_DIR)/gsp$(NAME).o.s + O_FILE := $$(UCODE_OUTPUT_DIR)/gsp$(NAME).o ALL_UCODES += $(NAME) ifneq ($(MD5_CODE),) ALL_UCODES_WITH_MD5S += $(NAME) @@ -142,8 +142,8 @@ define ucode_rule $$(CODE_FILE): ARMIPS_CMDLINE:=$$(ARMIPS_CMDLINE) $$(CODE_FILE): CODE_FILE:=$$(CODE_FILE) $$(CODE_FILE): DATA_FILE:=$$(DATA_FILE) - $$(S_FILE): S_FILE:=$$(S_FILE) - $$(S_FILE): NAME:=$$(NAME) + $$(OS_FILE): OS_FILE:=$$(OS_FILE) + $$(OS_FILE): NAME:=$$(NAME) # Target recipe $$(CODE_FILE): ./f3dex3.s ./rsp/* $(EXTRA_DEPS) | $$(UCODE_OUTPUT_DIR) @printf "$(INFO)Building microcode: $(NAME): $(DESCRIPTION)$(NO_COL)\n" @@ -153,8 +153,8 @@ define ucode_rule @(printf "$(MD5_DATA) *$$(DATA_FILE)" | md5sum --status -c -) && printf " $(SUCCESS)$(NAME) data matches$(NO_COL)\n" || printf " $(FAILURE)$(NAME) data differs$(NO_COL)\n" endif ifneq (, $(AS)) - $$(S_FILE): $$(CODE_FILE) - @sed "s|XXX|$(NAME)|g" ./template.fifo.s > $$(S_FILE) + $$(OS_FILE): $$(CODE_FILE) + @sed "s|XXX|$(NAME)|g" ./template.o.s > $$(OS_FILE) endif $$(eval $$(call reset_vars)) endef diff --git a/template.fifo.s b/template.o.s similarity index 66% rename from template.fifo.s rename to template.o.s index a1550fa..67e73fd 100644 --- a/template.fifo.s +++ b/template.o.s @@ -7,15 +7,15 @@ .section .text .balign 16 -glabel gspXXX_fifoTextStart +glabel gspXXXTextStart .incbin "build/XXX/XXX.code" .balign 16 -glabel gspXXX_fifoTextEnd +glabel gspXXXTextEnd .section .data .balign 16 -glabel gspXXX_fifoDataStart +glabel gspXXXDataStart .incbin "build/XXX/XXX.data" .balign 16 -glabel gspXXX_fifoDataEnd +glabel gspXXXDataEnd