rom: Switch to TARGET=iop

This commit is contained in:
Lily Tsuru 2023-11-06 02:04:55 -05:00
parent feb0648b9a
commit d6810cf729
2 changed files with 8 additions and 5 deletions

View File

@ -4,3 +4,10 @@ A bare-metal "template"? for the PS2. This essentially builds a replacement BIOS
No EE kernel, or IOP RTOS is loaded in this state. It's up to you to write the code to initalize either side of the system.
# Building
PS2SDK should be enough. (in theory, only ps2toolchain is actually needed, but I don't think there's a really good way to get that on its own)
`make CONFIG=[release|debug]` builds each flavor of the ROM.
There are some linker warnings currently, but they are fine to ignore.

View File

@ -1,5 +1,5 @@
NAME=ps2rom
TARGET=ee
TARGET=iop
KIND=bin
SELF=$(shell pwd)
@ -30,10 +30,6 @@ $(BINDIR)/:
$(OBJDIR)/:
mkdir -p $@
# make sure to assemble the primary ROM start routine
# as MIPS-I, so that we don't get into any issues.
$(OBJDIR)/rom_start.o: AS += -march=r3000
$(BINDIR)/$(FINALNAME).rom: $(BINDIR)/$(FINALNAME).elf
$(OBJCOPY) -O binary $< $@