mirror of
https://github.com/ApacheThunder/NTR_Launcher.git
synced 2025-06-18 11:05:35 -04:00

* Added DSOnei kernel to included nds files for Stage2 menu. * Added N-Card rom dump to included nds files for Stage2 menu. * Added CycloDS, and DSTWo bootloader dumps to included nds files for Stage2 menu. * DSTwo now boots correctly from cart launcher. * R4 SDHC Gold and other similar DEMON time bomb DSTTi clones now boot correctly from cart launcher. * Added back option for enabling/disabling TWL ram. * Added fixes to allow DS only carts to run with TWL ram enabled. * Initial modcrypt code added for TWL carts. Currently works in emulation however TWL carts will fail to boot on hardware (when twl mode, ram, etc is enabled). * If TWL mode and ram is enabled, cart loader will now load the DSi extended binaries into ram. Currently however they will only boot in emulation. Have not resolved why it's not working on hardware yet. * Stage2 menu now allowed to load dsi extended binaries of SRLs if TWL mode and TWL ram is enabled. Booting rom dumps as a method of booting into TWL carts is confirmed working. At least for System Flaw it does. :D * Despite the improvents Acekard 2i still appears to require using the stage2 menu to boot into. * Fixes that allowed Demon timebomb carts to boot from cart launcher/autoboot may allow other non working carts to work. Further testing needed.
82 lines
2.4 KiB
Makefile
Executable File
82 lines
2.4 KiB
Makefile
Executable File
#---------------------------------------------------------------------------------
|
|
.SUFFIXES:
|
|
#---------------------------------------------------------------------------------
|
|
.SECONDARY:
|
|
|
|
ifeq ($(strip $(DEVKITARM)),)
|
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM)
|
|
endif
|
|
|
|
include $(DEVKITARM)/ds_rules
|
|
|
|
export TARGET := NTR_Launcher
|
|
export TOPDIR := $(CURDIR)
|
|
|
|
export VERSION_MAJOR := 3
|
|
export VERSION_MINOR := 2
|
|
export VERSTRING := $(VERSION_MAJOR).$(VERSION_MINOR)
|
|
|
|
# specify a directory which contains the nitro filesystem
|
|
# this is relative to the Makefile
|
|
NITRO_FILES := CartFiles
|
|
|
|
.PHONY: bootloader ndsbootloader clean arm7/$(TARGET).elf arm9/$(TARGET).elf
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# main targets
|
|
# -g KKGP 01 "NTR Launcher" -z 80040000 -u 00030004 -a 00000138 -p 0001 \
|
|
#---------------------------------------------------------------------------------
|
|
all: bootloader ndsbootloader $(TARGET).nds
|
|
|
|
dist: all
|
|
@mkdir -p debug
|
|
@cp $(TARGET).arm7.elf debug/$(TARGET).arm7.elf
|
|
@cp $(TARGET).arm9.elf debug/$(TARGET).arm9.elf
|
|
|
|
$(TARGET).nds: $(TARGET).arm7 $(TARGET).arm9
|
|
ndstool -c $(TARGET).nds -7 $(TARGET).arm7.elf -9 $(TARGET).arm9.elf \
|
|
-b $(CURDIR)/icon.bmp "NTR Launcher v$(VERSTRING);Slot-1 Launcher;Apache Thunder & RocketRobz" \
|
|
-g KKGP 01 "NTR Launcher" -z 80040407 -u 00030004 -a 00000138 -p 0001 \
|
|
-d $(NITRO_FILES)
|
|
@cp $(TARGET).nds 00000000.app
|
|
|
|
$(TARGET).arm7 : arm7/$(TARGET).elf
|
|
cp arm7/$(TARGET).elf $(TARGET).arm7.elf
|
|
$(TARGET).arm9 : arm9/$(TARGET).elf
|
|
cp arm9/$(TARGET).elf $(TARGET).arm9.elf
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm7/$(TARGET).elf:
|
|
$(MAKE) -C arm7
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm9/$(TARGET).elf:
|
|
$(MAKE) -C arm9
|
|
|
|
#---------------------------------------------------------------------------------
|
|
clean:
|
|
@echo clean ...
|
|
@rm -fr debug
|
|
@rm -fr data
|
|
@rm -fr $(BUILD) $(TARGET).elf $(TARGET).nds $(TARGET).nds.orig.nds
|
|
@rm -fr $(TARGET).arm7
|
|
@rm -fr $(TARGET).arm9
|
|
@rm -fr $(TARGET).arm7.elf
|
|
@rm -fr $(TARGET).arm9.elf
|
|
@rm -fr 00000000.app
|
|
@rm -fr $(TARGET).cia
|
|
@$(MAKE) -C bootloader clean
|
|
@$(MAKE) -C ndsbootloader clean
|
|
@$(MAKE) -C arm9 clean
|
|
@$(MAKE) -C arm7 clean
|
|
|
|
data:
|
|
@mkdir -p data
|
|
|
|
bootloader: data
|
|
@$(MAKE) -C bootloader
|
|
|
|
ndsbootloader: data
|
|
@$(MAKE) -C ndsbootloader
|
|
|