configure.py: Use metroidbuildinfo

Former-commit-id: 799ce41ad0
This commit is contained in:
Luke Street 2022-10-06 23:13:38 -04:00
parent 2bd75275fe
commit 9a638c7d42
2 changed files with 9 additions and 15 deletions

View File

@ -127,17 +127,8 @@ MetroidBuildInfo:
.ascii "!#$MetroidBuildInfo!#$" .ascii "!#$MetroidBuildInfo!#$"
.global BuildString .global BuildString
BuildString: BuildString:
#.asciz "PAD_PAD_PAD_PAD_PAD_PAD_PAD_PAD_PAD" # Replaced after build
.if version == 2 .asciz "PAD_PAD_PAD_PAD_PAD_PAD_PAD_PAD_PAD"
.asciz "Build v1.097 12/19/2002 16:03:43"
.asciz "AD"
.elseif version == 1
.asciz "Build v1.093 11/5/2002 19:50:01"
.asciz "PAD"
.else
.asciz "Build v1.088 10/29/2002 2:21:25"
.asciz "PAD"
.endif
.balign 4 .balign 4
.global lbl_803CC5C4 .global lbl_803CC5C4

View File

@ -1262,9 +1262,12 @@ n.newline()
### ###
n.comment("main.dol") n.comment("main.dol")
n.build("build/elf2dol", "cc", "tools/elf2dol.c") n.build("build/elf2dol", "cc", "tools/elf2dol.c")
n.rule(name="elf2dol", command="build/elf2dol $in $out", description="DOL $out") n.build("build/metroidbuildinfo", "cc", "tools/metroidbuildinfo.c")
n.build("$builddir/main.dol", "elf2dol", n.rule(name="elf2dol",
"$builddir/main.elf", implicit="build/elf2dol") command="build/elf2dol $in $out && build/metroidbuildinfo $out buildstrings/mp1.$version.build",
description="DOL $out")
n.build("$builddir/main.dol", "elf2dol", "$builddir/main.elf",
implicit=["build/elf2dol", "build/metroidbuildinfo"])
n.newline() n.newline()
### ###