arm support (raspberry pi)

This commit is contained in:
Ethan Roseman 2021-01-16 06:34:21 +00:00
parent cb52c63a0a
commit dad8c48dfb
3 changed files with 13 additions and 1 deletions

View File

@ -179,7 +179,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)

BIN
tools/arm/cc1 Executable file

Binary file not shown.

BIN
tools/arm/mips-nintendo-nu64-as Executable file

Binary file not shown.