From 3a84a64d2fd600e68ee3e54a5fbc12347e9b2f9f Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Mon, 1 Nov 2021 21:23:18 +0100 Subject: Add support for PowerPC family --- platform/linuxbsd/detect.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'platform/linuxbsd') 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). -- cgit v1.2.3