Move the kext outside Rosalina

- Stability (tm)
- Boots 1s faster on N3DS
- (∩ ͡° ͜ʖ ͡°)⊃━☆゚
This commit is contained in:
TuxSH
2017-06-13 02:00:41 +02:00
parent ae8ea7da16
commit e1d0602f25
78 changed files with 357 additions and 605 deletions

View File

@@ -17,7 +17,6 @@ dir_source := source
dir_include := include
dir_build := build
dir_out := ../../$(dir_build)
dir_kernel_extension := kernel_extension
LIBS := -lctru
LIBDIRS := $(CTRULIB)
@@ -42,21 +41,14 @@ all: $(dir_out)/$(name).cxi
.PHONY: clean
clean:
@$(MAKE) -C $(dir_kernel_extension) clean
@rm -rf $(dir_build)
.PHONY: $(dir_kernel_extension)
$(dir_out)/$(name).cxi: $(dir_build)/$(name).elf
@makerom -f ncch -rsf rosalina.rsf -nocodepadding -o $@ -elf $<
$(dir_build)/$(name).elf: $(objects)
$(LINK.o) $(OUTPUT_OPTION) $^ $(LIBPATHS) $(LIBS)
$(dir_build)/kernel_extension.bin: $(dir_kernel_extension)
@mkdir -p "$(@D)"
@$(MAKE) -C $<
$(dir_build)/xml_data.h: $(xml_files)
@ echo "" > $(@)
@$(foreach f, $(xml_files),\
@@ -66,7 +58,6 @@ $(dir_build)/xml_data.h: $(xml_files)
)
$(dir_build)/gdb/xfer.o: $(dir_build)/xml_data.h
$(dir_build)/memory.o : CFLAGS += -O3
$(dir_build)/kernel_extension.o: $(dir_build)/kernel_extension.bin
$(dir_build)/%.o: $(dir_source)/%.c
@mkdir -p "$(@D)"