Skip to content

Commit

Permalink
Add Qoob SX updater, DOL version
Browse files Browse the repository at this point in the history
  • Loading branch information
9ary committed Jun 14, 2018
1 parent e009506 commit e352318
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ifneq ($(BUILD),$(notdir $(CURDIR)))
#---------------------------------------------------------------------------------

export OUTPUT := $(CURDIR)/$(TARGET)
export OUTPUT_SX := $(CURDIR)/qoob_sx_$(TARGET)_upgrade.elf
export OUTPUT_SX := $(CURDIR)/qoob_sx_$(TARGET)_upgrade

export VPATH := $(foreach dir,$(dir $(SOURCES)),$(CURDIR)/$(dir)) \
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
Expand Down Expand Up @@ -114,7 +114,8 @@ $(BUILD):
clean:
@echo clean ...
@rm -fr $(BUILD) $(OUTPUT).{elf,dol} $(OUTPUT).{gcb,vgc} \
$(OUTPUT)_xz.{dol,elf,qbsx} $(OUTPUT_SX) $(OUTPUT)_xeno.{bin,elf}
$(OUTPUT)_xz.{dol,elf,qbsx} $(OUTPUT_SX).{dol,elf} \
$(OUTPUT)_xeno.{bin,elf}

#---------------------------------------------------------------------------------
run: $(BUILD)
Expand All @@ -129,7 +130,7 @@ DEPENDS := $(OFILES:.o=.d)
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
all: $(OUTPUT).gcb $(OUTPUT_SX) $(OUTPUT).vgc $(OUTPUT)_xeno.bin
all: $(OUTPUT).gcb $(OUTPUT_SX).dol $(OUTPUT).vgc $(OUTPUT)_xeno.bin

$(OUTPUT).elf: $(OFILES)

Expand All @@ -149,7 +150,7 @@ $(OUTPUT)_xz.elf: $(OUTPUT)_xz.dol
@echo pack IPL ... $(notdir $@)
@cd $(PWD); ./dol2ipl.py /dev/null $< $@

$(OUTPUT_SX): $(OUTPUT)_xz.qbsx
$(OUTPUT_SX).elf: $(OUTPUT)_xz.qbsx
@echo splice ... $@
@cd $(PWD); cp -f qoob_sx_13c_upgrade.elf $@
@cd $(PWD); dd if=$< of=$@ obs=4 seek=1851 conv=notrunc
Expand Down

0 comments on commit e352318

Please sign in to comment.