make: x_finalize_helper.firm

To prevent conflict with chainloader
This commit is contained in:
lily 2024-08-14 01:23:20 +02:00 committed by GitHub
parent 2aaa76c18b
commit 356e84f6e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
.PHONY := builds finalize.romfs finalize_helper.firm clean
.PHONY := builds finalize.romfs x_finalize_helper.firm clean
all: builds/finalize_helper.firm
all: builds/x_finalize_helper.firm
builds:
@[ -d builds ] || mkdir -p builds
@ -8,7 +8,7 @@ builds:
builds/finalize.romfs: builds
@3dstool -c -t romfs --romfs-dir romfs --file $@
builds/finalize_helper.firm: builds/finalize.romfs
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