sergey-safarov left a comment (kamailio/kamailio#4333)

I have tried
```diff
--- 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
```sh
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 or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4333#issuecomment-3102420961
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/4333/3102420...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to