summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2023-10-15 16:46:19 +0200
committerAetias <aetias@outlook.com>2023-10-15 16:46:19 +0200
commitd7b3836f5e9b9ff8364c3a71fa2d4a9ce643ec20 (patch)
tree9cbad6ade05d081f85f3cc9864afe7153a83570e
parent12a850932d7cd05862d52c1f6c7b2b3eba726ed4 (diff)
Fix checksum verification
-rw-r--r--Makefile3
-rw-r--r--checksum.sha13
-rw-r--r--ph_eur.sha11
-rw-r--r--ph_jpn.sha11
-rw-r--r--ph_usa.sha11
5 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a1ddde98..62f2212c 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,7 @@ OV_LZS = $(OV_BINS:%.bin=%.lz)
NDS_FILE := ph_$(REGION_NAME).nds
BASE_ROM := baserom_$(REGION_NAME).nds
+CHECKSUM := ph_$(REGION_NAME).sha1
MW_VER := 2.0/sp1p5
MW_ASM := $(TOOLS_DIR)/mwccarm/$(MW_VER)/mwasmarm
@@ -39,7 +40,7 @@ LD_FLAGS := -proc arm946e -nostdlib -nointerworking -nodead -m func_02000800 -m
.PHONY: all
all: tools rom
sha1sum $(NDS_FILE)
- sha1sum -c checksum.sha1
+ sha1sum -c $(CHECKSUM)
.PHONY: tools
tools:
diff --git a/checksum.sha1 b/checksum.sha1
deleted file mode 100644
index ad8dc000..00000000
--- a/checksum.sha1
+++ /dev/null
@@ -1,3 +0,0 @@
-02be55db55cf254bd064d2b3eb368b92a5b4156d ph_eur.nds
-4c8f52dd719918bbcd46e73a8bae8628139c1b85 ph_usa.nds
-53e46481deb08237354945bc63ab0b02f4de1ff4 ph_jpn.nds
diff --git a/ph_eur.sha1 b/ph_eur.sha1
new file mode 100644
index 00000000..9dc2d940
--- /dev/null
+++ b/ph_eur.sha1
@@ -0,0 +1 @@
+02be55db55cf254bd064d2b3eb368b92a5b4156d ph_eur.nds \ No newline at end of file
diff --git a/ph_jpn.sha1 b/ph_jpn.sha1
new file mode 100644
index 00000000..993905e7
--- /dev/null
+++ b/ph_jpn.sha1
@@ -0,0 +1 @@
+53e46481deb08237354945bc63ab0b02f4de1ff4 ph_jpn.nds \ No newline at end of file
diff --git a/ph_usa.sha1 b/ph_usa.sha1
new file mode 100644
index 00000000..eef6f174
--- /dev/null
+++ b/ph_usa.sha1
@@ -0,0 +1 @@
+4c8f52dd719918bbcd46e73a8bae8628139c1b85 ph_usa.nds \ No newline at end of file