forked from jasondellaluce/arm9loaderhax
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from AuroraWright/master
Reorganized screen init functions, removed all delays (thanks to disa…
- Loading branch information
Showing
100 changed files
with
260 additions
and
42,607 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
.idea | ||
CMakeLists.txt | ||
|
||
data_output | ||
data_input/*.bin | ||
data_input/*.firm | ||
|
||
*.bat | ||
screen_init/obj | ||
out | ||
payload_stage1/build | ||
payload_stage2/build | ||
payload_stage2/data | ||
*.elf | ||
*.bin | ||
*.o | ||
*.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,27 @@ | ||
.PHONY : all hax firm0 firm1 sector screen_init stage2 installer clean | ||
.PHONY : stage1 arm11 stage2 | ||
|
||
TARGET = arm9loaderhax | ||
PYTHON = python | ||
INDIR = data_input | ||
OUTDIR = data_output | ||
OUTDIR = out | ||
|
||
all : $(OUTDIR) hax installer | ||
|
||
hax : $(OUTDIR) firm0 firm1 sector screen_init stage2 | ||
all : $(OUTDIR) stage1 arm11 stage2 | ||
|
||
$(OUTDIR): | ||
@[ -d $(OUTDIR) ] || mkdir -p $(OUTDIR) | ||
|
||
firm0: | ||
@cd payload_stage1 && make | ||
@cp $(INDIR)/new3ds90.firm $(OUTDIR)/firm0.bin | ||
@dd if=payload_stage1/payload_stage1.bin of=$(OUTDIR)/firm0.bin bs=512 seek=1922 conv=notrunc | ||
@echo FIRM0 done! | ||
|
||
firm1: | ||
@cp $(INDIR)/new3ds10.firm $(OUTDIR)/firm1.bin | ||
@echo FIRM1 done! | ||
|
||
sector: | ||
@$(PYTHON) common/sector_generator.py $(INDIR)/secret_sector.bin $(INDIR)/otp.bin $(OUTDIR)/sector.bin | ||
@echo SECTOR done! | ||
arm11: | ||
@$(MAKE) -C arm11 | ||
|
||
screen_init: | ||
@[ -d payload_stage2/data ] || mkdir -p payload_stage2/data | ||
$(MAKE) -C screen_init | ||
@cp screen_init/screen_init.bin payload_stage2/data/ | ||
stage1: | ||
@$(MAKE) -C payload_stage1 | ||
@mv payload_stage1/payload_stage1.bin $(OUTDIR) | ||
|
||
stage2: | ||
@cp screen_init/screen_init.bin payload_stage2/data | ||
@[ -d payload_stage2/data ] || mkdir -p payload_stage2/data | ||
@mv arm11/arm11.bin payload_stage2/data | ||
@$(MAKE) -C payload_stage2 | ||
@cp payload_stage2/payload_stage2.bin $(OUTDIR)/stage0x5C000.bin | ||
|
||
installer: | ||
@cp $(OUTDIR)/sector.bin payload_installer/brahma2/data/sector.bin | ||
@cp $(OUTDIR)/firm0.bin payload_installer/brahma2/data/firm0.bin | ||
@cp $(OUTDIR)/firm1.bin payload_installer/brahma2/data/firm1.bin | ||
@cp $(OUTDIR)/stage0x5C000.bin payload_installer/brahma2/data/stage2.bin | ||
@cd payload_installer && make TARGET=../$(OUTDIR)/$(TARGET) | ||
@echo INSTALLER done! | ||
@mv payload_stage2/payload_stage2.bin $(OUTDIR) | ||
|
||
clean: | ||
@echo clean... | ||
@$(MAKE) -C payload_stage1 clean | ||
@$(MAKE) -C screen_init clean | ||
@$(MAKE) -C arm11 clean | ||
@$(MAKE) -C payload_stage2 clean | ||
@$(MAKE) -C payload_installer clean TARGET=../$(TARGET) | ||
@rm -rf $(OUTDIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
%rename link old_link | ||
|
||
*link: | ||
%(old_link) -T ../common/arm11.ld%s |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.