I have tried
--- a/cmake/defs.cmake
+++ b/cmake/defs.cmake
@@ -25,6 +25,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i486|i586|i686")
set(TARGET_ARCH "i386")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64")
set(TARGET_ARCH "x86_64")
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64")
+ set(TARGET_ARCH "ppc64")
else()
set(TARGET_ARCH "${CMAKE_SYSTEM_PROCESSOR}")
endif()
Yes, this build sources, but I think ppc64
is not equal to ppc64le
. More details at https://codeyarns.com/tech/2020-08-17-difference-between-ppc64-and-ppc64le.html
Also, I see cmake detect architecture
-- OS: Linux
-- OS version: 6.14.9-300.fc42.x86_64
-- Host Processor: ppc64le
-- Target Processor: ppc64le
-- Target Processor Alias: ppc64le
-- Fast lock available: YES
-- Configuring for Linux
-- Cross compile: FALSE
Other arch can be tested
git clone https://github.com/kamailio/kamailio.git
docker run -it \
--user root \
--platform linux/riscv64 \
-v ./kamailio:/usr/src/kamailio \
ghcr.io/sergey-safarov/kamailio-builder:alpine-latest
apk add cmake
For this command cmake output will be
-- Host Processor: riscv64
-- Target Processor: riscv64
-- Target Processor Alias: riscv64
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.