summaryrefslogtreecommitdiff
path: root/platform/linuxbsd
diff options
context:
space:
mode:
authorDaniel Kolesa <daniel@octaforge.org>2021-11-01 21:23:18 +0100
committerDaniel Kolesa <daniel@octaforge.org>2021-11-01 22:25:53 +0100
commit3a84a64d2fd600e68ee3e54a5fbc12347e9b2f9f (patch)
tree9cf1ede05fcc8089e49743c59fcc8b4d4f7b06b8 /platform/linuxbsd
parent96ce806b2f2797fd27a0d40738ee5be6bc30b0aa (diff)
Add support for PowerPC family
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r--platform/linuxbsd/detect.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index a9e8fb64c3..07e16a982b 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -119,8 +119,16 @@ def configure(env):
if env["bits"] == "default":
env["bits"] = "64" if is64 else "32"
- if env["arch"] == "" and platform.machine() == "riscv64":
- env["arch"] = "rv64"
+ machines = {
+ "riscv64": "rv64",
+ "ppc64le": "ppc64",
+ "ppc64": "ppc64",
+ "ppcle": "ppc",
+ "ppc": "ppc",
+ }
+
+ if env["arch"] == "" and platform.machine() in machines:
+ env["arch"] = machines[platform.machine()]
if env["arch"] == "rv64":
# G = General-purpose extensions, C = Compression extension (very common).