mirror of
https://github.com/hacks-guide/finalize.git
synced 2024-11-23 09:09:40 +00:00
356e84f6e5
To prevent conflict with chainloader
21 lines
639 B
Makefile
21 lines
639 B
Makefile
.PHONY := builds finalize.romfs x_finalize_helper.firm clean
|
|
|
|
all: builds/x_finalize_helper.firm
|
|
|
|
builds:
|
|
@[ -d builds ] || mkdir -p builds
|
|
|
|
builds/finalize.romfs: builds
|
|
@3dstool -c -t romfs --romfs-dir romfs --file $@
|
|
|
|
builds/x_finalize_helper.firm: builds/finalize.romfs
|
|
@cp finalize_helper.gm9 GodMode9/data/autorun.gm9
|
|
@sed -i s/FINALIZE_SHA256SUM/$(shell sha256sum $< | awk '{print $$1}')/g GodMode9/data/autorun.gm9
|
|
@$(MAKE) -C GodMode9 SCRIPT_RUNNER=1
|
|
@cp GodMode9/output/GodMode9.firm $@
|
|
@printf '\001' | dd conv=notrunc bs=1 seek=16 of=$@
|
|
clean:
|
|
@rm -rf builds
|
|
@$(MAKE) -C GodMode9 clean
|
|
@rm GodMode9/data/autorun.gm9
|