diff --git a/area/sys_area.s b/area/sys_area.s new file mode 100644 index 0000000..a58c3b7 --- /dev/null +++ b/area/sys_area.s @@ -0,0 +1,8 @@ + .section .text.area + + bra next + nop + .ascii "For ASIA PAL area." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_areb.s b/area/sys_areb.s new file mode 100644 index 0000000..f744f6d --- /dev/null +++ b/area/sys_areb.s @@ -0,0 +1,8 @@ + .section .text.areb + + bra next + nop + .ascii "For BRAZIL." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_aree.s b/area/sys_aree.s new file mode 100644 index 0000000..f9c3e5c --- /dev/null +++ b/area/sys_aree.s @@ -0,0 +1,8 @@ + .section .text.aree + + bra next + nop + .ascii "For EUROPE." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_arej.s b/area/sys_arej.s new file mode 100644 index 0000000..ab6018a --- /dev/null +++ b/area/sys_arej.s @@ -0,0 +1,8 @@ + .section .text.arej + + bra next + nop + .ascii "For JAPAN." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_arek.s b/area/sys_arek.s new file mode 100644 index 0000000..5b6175d --- /dev/null +++ b/area/sys_arek.s @@ -0,0 +1,8 @@ + .section .text.arek + + bra next + nop + .ascii "For KOREA." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_arel.s b/area/sys_arel.s new file mode 100644 index 0000000..761ff64 --- /dev/null +++ b/area/sys_arel.s @@ -0,0 +1,8 @@ + .section .text.arel + + bra next + nop + .ascii "For LATIN AMERICA." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_aret.s b/area/sys_aret.s new file mode 100644 index 0000000..8203e5f --- /dev/null +++ b/area/sys_aret.s @@ -0,0 +1,8 @@ + .section .text.aret + + bra next + nop + .ascii "For TAIWAN and PHILIPINES." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_areu.s b/area/sys_areu.s new file mode 100644 index 0000000..6db30d8 --- /dev/null +++ b/area/sys_areu.s @@ -0,0 +1,8 @@ + .section .text.areu + + bra next + nop + .ascii "For USA and CANADA." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/common.mk b/common.mk index 84858e4..456e693 100644 --- a/common.mk +++ b/common.mk @@ -28,18 +28,6 @@ define BUILD_BINARY_O $< $@ endef -$(LIB)/sys_%.o: $(LIB)/segasmp/lib/sys_%.o - $(OBJCOPY) -I coff-sh -O elf32-sh -g \ - --rename-section .text=.text.$* \ - $< $@ - -SYS_IP_OBJ += $(LIB)/sys_id.o -SYS_IP_OBJ += $(LIB)/sys_sec.o -SYS_IP_OBJ += $(LIB)/sys_area.o $(LIB)/sys_areb.o $(LIB)/sys_aree.o $(LIB)/sys_arej.o -SYS_IP_OBJ += $(LIB)/sys_arek.o $(LIB)/sys_arel.o $(LIB)/sys_aret.o $(LIB)/sys_areu.o -SYS_IP_OBJ += $(LIB)/sys_init.o -SYS_IP_OBJ += $(LIB)/smpsys.o - %.o: %.s $(AS) $(AARCH) $(AFLAGS) $(DEBUG) $< -o $@ @@ -64,6 +52,24 @@ SYS_IP_OBJ += $(LIB)/smpsys.o --rename-section .data=.rodata,alloc,load,readonly,data,contents \ $< $@ +SYS_IP_OBJ += $(LIB)/sys_id.o +SYS_IP_OBJ += $(LIB)/sys_sec.o +SYS_IP_OBJ += $(LIB)/area/sys_area.o +SYS_IP_OBJ += $(LIB)/area/sys_areb.o +SYS_IP_OBJ += $(LIB)/area/sys_aree.o +SYS_IP_OBJ += $(LIB)/area/sys_arej.o +SYS_IP_OBJ += $(LIB)/area/sys_arek.o +SYS_IP_OBJ += $(LIB)/area/sys_arel.o +SYS_IP_OBJ += $(LIB)/area/sys_aret.o +SYS_IP_OBJ += $(LIB)/area/sys_areu.o +SYS_IP_OBJ += $(LIB)/sys_init.o +SYS_IP_OBJ += $(LIB)/smpsys.o + +$(LIB)/sys_%.o: $(LIB)/segasmp/lib/sys_%.o + $(OBJCOPY) -I coff-sh -O elf32-sh -g \ + --rename-section .text=.text.$* \ + $< $@ + sys_ip.elf: $(SYS_IP_OBJ) $(LD) --print-memory-usage -T $(LIB)/sys_ip.lds $^ -o $@ diff --git a/segasmp/lib/sys_area.o b/segasmp/lib/sys_area.o deleted file mode 100644 index 4297cd3..0000000 Binary files a/segasmp/lib/sys_area.o and /dev/null differ diff --git a/segasmp/lib/sys_areb.o b/segasmp/lib/sys_areb.o deleted file mode 100644 index 1217a30..0000000 Binary files a/segasmp/lib/sys_areb.o and /dev/null differ diff --git a/segasmp/lib/sys_aree.o b/segasmp/lib/sys_aree.o deleted file mode 100644 index 3be4a1a..0000000 Binary files a/segasmp/lib/sys_aree.o and /dev/null differ diff --git a/segasmp/lib/sys_arej.o b/segasmp/lib/sys_arej.o deleted file mode 100644 index ef55120..0000000 Binary files a/segasmp/lib/sys_arej.o and /dev/null differ diff --git a/segasmp/lib/sys_arek.o b/segasmp/lib/sys_arek.o deleted file mode 100644 index 3422cdb..0000000 Binary files a/segasmp/lib/sys_arek.o and /dev/null differ diff --git a/segasmp/lib/sys_arel.o b/segasmp/lib/sys_arel.o deleted file mode 100644 index 029ff16..0000000 Binary files a/segasmp/lib/sys_arel.o and /dev/null differ diff --git a/segasmp/lib/sys_aret.o b/segasmp/lib/sys_aret.o deleted file mode 100644 index 1d0ea6f..0000000 Binary files a/segasmp/lib/sys_aret.o and /dev/null differ diff --git a/segasmp/lib/sys_areu.o b/segasmp/lib/sys_areu.o deleted file mode 100644 index b5b064e..0000000 Binary files a/segasmp/lib/sys_areu.o and /dev/null differ