Implement Overlay generation
This commit is contained in:
parent
e0bada0886
commit
a618d30320
|
@ -8,7 +8,12 @@ $(TARGET).elf: $(OBJS) $(JABY_ENGINE_LIB_DIR)/lib$(JABY_ENGINE_LIB_NAME).a
|
|||
|
||||
#Strips the psexe
|
||||
$(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 $< $@
|
||||
|
||||
$(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
|
||||
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() {
|
||||
printf("Hello Planschbecken\n");
|
||||
printf("Starting Planschbecken\n");
|
||||
enable_DMA();
|
||||
|
||||
SPU::stop_voices();
|
||||
|
@ -22,6 +22,7 @@ namespace JabyEngine {
|
|||
SPU::setup();
|
||||
printf("Setup done!\n");
|
||||
|
||||
printf("About to call: 0x%p\n", main);
|
||||
main();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue