diff --git a/configure.py b/configure.py index 73705e3cf6..f531f60762 100755 --- a/configure.py +++ b/configure.py @@ -185,7 +185,19 @@ async def main(): n.variable("target", TARGET) n.variable("cross", "mips-linux-gnu-") n.variable("python", sys.executable) - n.variable("os", "mac" if sys.platform == "darwin" else "linux") + + if sys.platform == "darwin": + os_dir = "mac" + elif sys.platform == "linux": + if os.uname()[4] == "aarch64": + os_dir = "arm" + else: + os_dir = "linux" + else: + print(f"Unsupported platform {sys.platform}") + sys.exit(1) + + n.variable("os", os_dir) n.variable("iconv", "tools/iconv.py UTF-8 SHIFT-JIS" if sys.platform == "darwin" else "iconv --from UTF-8 --to SHIFT-JIS") n.variable("cppflags", f"{cppflags} -Wcomment") n.variable("cflags", "-O2 -quiet -G 0 -mcpu=vr4300 -mfix4300 -mips3 -mgp32 -mfp32 -Wuninitialized -Wshadow " + args.cflags) diff --git a/tools/arm/cc1 b/tools/arm/cc1 new file mode 100755 index 0000000000..9278b36b1b Binary files /dev/null and b/tools/arm/cc1 differ diff --git a/tools/arm/mips-nintendo-nu64-as b/tools/arm/mips-nintendo-nu64-as new file mode 100755 index 0000000000..cfb7ac94dc Binary files /dev/null and b/tools/arm/mips-nintendo-nu64-as differ