[Boot Config] Add HOS reboot to config

This storage allows you to reboot from HOS to the selected ini boot entry.

In the future it will be used for far more.
This commit is contained in:
Kostas Missos
2019-02-24 02:43:13 +02:00
parent c8052e5b50
commit 2fb37db707
6 changed files with 150 additions and 39 deletions

View File

@@ -4,9 +4,11 @@ endif
include $(DEVKITARM)/base_rules
TARGET := hekate
IPL_LOAD_ADDR := 0x40008000
BLVERSION_MAJOR := 4
BLVERSION_MINOR := 6
TARGET := hekate
BUILD := build
OUTPUT := output
SOURCEDIR = bootloader
@@ -62,14 +64,15 @@ OBJS += $(addprefix $(BUILD)/$(TARGET)/, \
elfload.o elfreloc_arm.o \
)
CUSTOMDEFINES := -DBLVERSIONMJ=$(BLVERSION_MAJOR) -DBLVERSIONMN=$(BLVERSION_MINOR) -DMENU_LOGO_ENABLE
CUSTOMDEFINES := -DBLVERSIONMJ=$(BLVERSION_MAJOR) -DBLVERSIONMN=$(BLVERSION_MINOR) -DIPL_LOAD_ADDR=$(IPL_LOAD_ADDR)
CUSTOMDEFINES += -DMENU_LOGO_ENABLE
#CUSTOMDEFINES += -DDEBUG
# 0: UART_A, 1: UART_B.
#CUSTOMDEFINES += -DDEBUG_UART_PORT=0
ARCH := -march=armv4t -mtune=arm7tdmi -mthumb -mthumb-interwork
CFLAGS = $(ARCH) -O2 -nostdlib -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -std=gnu11 -Wall $(CUSTOMDEFINES)
LDFLAGS = $(ARCH) -nostartfiles -lgcc -Wl,--nmagic,--gc-sections
LDFLAGS = $(ARCH) -nostartfiles -lgcc -Wl,--nmagic,--gc-sections -Xlinker --defsym=IPL_LOAD_ADDR=$(IPL_LOAD_ADDR)
MODULEDIRS := $(wildcard modules/*)