Files
OpenLane/docker/current_platform.py
Mohamed Gaber 14b94a6682 Migrate Build System to Match OpenLane 2 (#2115)
+ Repository is now a Nix flake
~ Change all invocations of `openroad -python` to use `run_odbpy_script` for consistency
~ Change build system from ad-hoc to Nix, still producing a Docker image as a final result
~ Update KLayout scripts to use `klayout-pymod` or properly parse commandline arguments
~ `open_pdks` -> `bdc9412` to match OpenLane 2
- Remove local installer; `nix run .` will run OpenLane natively
2024-05-08 15:41:43 +03:00

17 lines
351 B
Python

import platform
def current_docker_platform() -> str:
arch = platform.machine()
if arch in ["x86_64", "amd64"]:
return "amd64"
elif arch in ["aarch64", "arm64"]:
return "arm64v8"
else:
raise ValueError(f"Unsupported platform {arch}")
if __name__ == "__main__":
print(current_docker_platform(), end="")