Implement Overlay generation
This commit is contained in:
parent
351f90da41
commit
2f823aa2ec
|
@ -8,7 +8,12 @@ $(TARGET).elf: $(OBJS) $(JABY_ENGINE_LIB_DIR)/lib$(JABY_ENGINE_LIB_NAME).a
|
||||||
|
|
||||||
#Strips the psexe
|
#Strips the psexe
|
||||||
$(TARGET).psexe: $(TARGET).elf
|
$(TARGET).psexe: $(TARGET).elf
|
||||||
|
#mipsel-linux-gnu-objcopy -R .main_area -O binary bin/PSX-release/JabyAdventure.elf bin/PSX-release/JabyAdventure.psexe
|
||||||
$(PREFIX)-objcopy $(addprefix -R , $(OVERLAYSECTION)) -O binary $< $@
|
$(PREFIX)-objcopy $(addprefix -R , $(OVERLAYSECTION)) -O binary $< $@
|
||||||
|
|
||||||
|
$(foreach ovl, $(OVERLAYSECTION), $(OUTPUT_DIR)/Overlay$(ovl)): $(TARGET).elf
|
||||||
|
#mipsel-linux-gnu-objcopy -j bin/PSX-release/Overlay.main_area -O binary bin/PSX-release/JabyAdventure.elf bin/PSX-release/Overlaybin/PSX-release/Overlay.main_area
|
||||||
|
$(PREFIX)-objcopy -j $(suffix $@) -O binary $< $@
|
||||||
|
|
||||||
#Rules section for default compilation and linking
|
#Rules section for default compilation and linking
|
||||||
all: $(TARGET).psexe $(foreach ovl, $(OVERLAYSECTION), $(OUTPUT_DIR)Overlay$(ovl))
|
all: $(TARGET).psexe $(foreach ovl, $(OVERLAYSECTION), $(OUTPUT_DIR)/Overlay$(ovl))
|
|
@ -10,7 +10,7 @@ namespace JabyEngine {
|
||||||
}
|
}
|
||||||
|
|
||||||
void start() {
|
void start() {
|
||||||
printf("Hello Planschbecken\n");
|
printf("Starting Planschbecken\n");
|
||||||
enable_DMA();
|
enable_DMA();
|
||||||
|
|
||||||
SPU::stop_voices();
|
SPU::stop_voices();
|
||||||
|
@ -22,6 +22,7 @@ namespace JabyEngine {
|
||||||
SPU::setup();
|
SPU::setup();
|
||||||
printf("Setup done!\n");
|
printf("Setup done!\n");
|
||||||
|
|
||||||
|
printf("About to call: 0x%p\n", main);
|
||||||
main();
|
main();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue