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

* Can now boot stage2 (in safe block mode) if holding L-Shoulder + R-Shoulder + A + B + DPAD Up on boot. This allows using built in stage2 usb update mode for "bootleg" style N-Cards that have Xulumenu installed. * This button combo will not do anything for regular N-Card users as they already have a proper stage2 section on nand and it will always end up booting to USB update mode with this button combo before xulumenu can boot.
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
#---------------------------------------------------------------------------------
|
|
.SUFFIXES:
|
|
#---------------------------------------------------------------------------------
|
|
ifeq ($(strip $(DEVKITARM)),)
|
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
|
|
endif
|
|
|
|
export TARGET := xulumenu
|
|
export TOPDIR := $(CURDIR)
|
|
|
|
include $(DEVKITARM)/ds_rules
|
|
|
|
.PHONY: data bootloader udiskloader clean
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# main targets
|
|
#---------------------------------------------------------------------------------
|
|
all: $(TARGET).nds
|
|
|
|
#---------------------------------------------------------------------------------
|
|
checkarm7:
|
|
$(MAKE) -C arm7
|
|
|
|
#---------------------------------------------------------------------------------
|
|
checkarm9:
|
|
$(MAKE) -C arm9
|
|
|
|
#---------------------------------------------------------------------------------
|
|
$(TARGET).nds : arm7/$(TARGET).elf arm9/$(TARGET).elf
|
|
@ndstool -c $@ -7 arm7/$(TARGET).elf -9 arm9/$(TARGET).elf \
|
|
-h 0x200 -t nrio-banner.bin
|
|
@dlditool nrio.dldi $@
|
|
|
|
data:
|
|
@mkdir -p data
|
|
|
|
bootloader: data
|
|
$(MAKE) -C bootloader LOADBIN=$(TOPDIR)/data/load.bin
|
|
|
|
udiskloader: data
|
|
$(MAKE) -C udiskloader LOADBIN=$(TOPDIR)/data/udiskloader.bin
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm7/$(TARGET).elf:
|
|
$(MAKE) -C arm7
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm9/$(TARGET).elf: bootloader udiskloader
|
|
$(MAKE) -C arm9
|
|
|
|
#---------------------------------------------------------------------------------
|
|
clean:
|
|
$(MAKE) -C arm9 clean
|
|
$(MAKE) -C arm7 clean
|
|
$(MAKE) -C bootloader clean
|
|
$(MAKE) -C udiskloader clean
|
|
rm -rf data
|
|
rm -f $(TARGET).nds
|