Introduce empty overlay boot file and improve task name
This commit is contained in:
parent
df44294e17
commit
d193856e2a
|
@ -7,8 +7,9 @@ include $(AUTO_OVERLAY_DIR)/Overlays.mk
|
||||||
JABY_ENGINE_LIB_DIR = $(JABY_ENGINE_DIR)/lib/PSX-$(BUILD_PROFILE)
|
JABY_ENGINE_LIB_DIR = $(JABY_ENGINE_DIR)/lib/PSX-$(BUILD_PROFILE)
|
||||||
JABY_ENGINE_LIB_NAME = JabyEngine_$(TV_FORMAT)
|
JABY_ENGINE_LIB_NAME = JabyEngine_$(TV_FORMAT)
|
||||||
|
|
||||||
#We use this via a flag later
|
#Bind this to the overlay.json file maybe?
|
||||||
OBJS += $(JABY_ENGINE_LIB_DIR)/main_boot.o
|
BOOT_TYPE = main
|
||||||
|
OBJS += $(JABY_ENGINE_LIB_DIR)/$(BOOT_TYPE)_boot.o
|
||||||
|
|
||||||
#Linking rule
|
#Linking rule
|
||||||
$(TARGET).elf: $(OBJS) $(JABY_ENGINE_LIB_DIR)/lib$(JABY_ENGINE_LIB_NAME).a $(AUTO_OVERLAY_DIR)/Overlays.ld
|
$(TARGET).elf: $(OBJS) $(JABY_ENGINE_LIB_DIR)/lib$(JABY_ENGINE_LIB_NAME).a $(AUTO_OVERLAY_DIR)/Overlays.ld
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "all",
|
"label": "Build Libary and Tools",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "./build_all.bat ${input:target}",
|
"command": "./build_all.bat ${input:target}",
|
||||||
"group": {
|
"group": {
|
||||||
|
|
|
@ -17,7 +17,8 @@ include ../../lib/Makefile
|
||||||
LIB_DIR = ../../lib/$(CONFIG_NAME)
|
LIB_DIR = ../../lib/$(CONFIG_NAME)
|
||||||
|
|
||||||
MAIN_BOOT_OBJ = $(filter %/main_boot.o,$(OBJS))
|
MAIN_BOOT_OBJ = $(filter %/main_boot.o,$(OBJS))
|
||||||
MAIN_LIB_OBJS = $(filter-out $(MAIN_BOOT_OBJ),$(OBJS))
|
OVERLAY_BOOT_OBJ = $(filter %/overlay_boot.o,$(OBJS))
|
||||||
|
MAIN_LIB_OBJS = $(filter-out $(MAIN_BOOT_OBJ) $(OVERLAY_BOOT_OBJ),$(OBJS))
|
||||||
|
|
||||||
#$(info $$var is [${MAIN_BOOT_OBJ}])
|
#$(info $$var is [${MAIN_BOOT_OBJ}])
|
||||||
#$(info $$var2 is [${MAIN_LIB_OBJS}])
|
#$(info $$var2 is [${MAIN_LIB_OBJS}])
|
||||||
|
@ -36,6 +37,10 @@ $(LIB_DIR)/$(notdir $(MAIN_BOOT_OBJ)): $(MAIN_BOOT_OBJ)
|
||||||
@mkdir -p $(LIB_DIR)
|
@mkdir -p $(LIB_DIR)
|
||||||
cp $(MAIN_BOOT_OBJ) $(LIB_DIR)/$(notdir $(MAIN_BOOT_OBJ))
|
cp $(MAIN_BOOT_OBJ) $(LIB_DIR)/$(notdir $(MAIN_BOOT_OBJ))
|
||||||
|
|
||||||
|
$(LIB_DIR)/$(notdir $(OVERLAY_BOOT_OBJ)): $(OVERLAY_BOOT_OBJ)
|
||||||
|
@mkdir -p $(LIB_DIR)
|
||||||
|
cp $(OVERLAY_BOOT_OBJ) $(LIB_DIR)/$(notdir $(OVERLAY_BOOT_OBJ))
|
||||||
|
|
||||||
# Improve later
|
# Improve later
|
||||||
$(SPLASH_IMAGE): ressources/Splash.png
|
$(SPLASH_IMAGE): ressources/Splash.png
|
||||||
jaby_engine_fconv $< simple-tim full16 | cpp_out --name SplashScreen -o $@
|
jaby_engine_fconv $< simple-tim full16 | cpp_out --name SplashScreen -o $@
|
||||||
|
@ -44,7 +49,7 @@ $(SPLASH_IMAGE_NTSC): ressources/Splash_ntsc.png
|
||||||
jaby_engine_fconv $< simple-tim full16 | cpp_out --name SplashScreen -o $@
|
jaby_engine_fconv $< simple-tim full16 | cpp_out --name SplashScreen -o $@
|
||||||
|
|
||||||
#Rules section for default compilation and linking
|
#Rules section for default compilation and linking
|
||||||
all: $(SPLASH_IMAGE) $(SPLASH_IMAGE_NTSC) $(LIB_DIR)/$(ARTIFACT).a $(LIB_DIR)/$(notdir $(MAIN_BOOT_OBJ))
|
all: $(SPLASH_IMAGE) $(SPLASH_IMAGE_NTSC) $(LIB_DIR)/$(ARTIFACT).a $(LIB_DIR)/$(notdir $(MAIN_BOOT_OBJ)) $(LIB_DIR)/$(notdir $(OVERLAY_BOOT_OBJ))
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr $(SPLASH_IMAGE)
|
rm -fr $(SPLASH_IMAGE)
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#include "../../../include/BootLoader/boot_loader.hpp"
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
namespace BootFile {
|
||||||
|
JabyEngine::NextRoutine setup() {
|
||||||
|
printf("Overlay boot not implemented!\n");
|
||||||
|
return JabyEngine::NextRoutine::null();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue