]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: WITH_QATLIB/ZIP disabled on aarch64 54624/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 27 Nov 2023 15:42:06 +0000 (10:42 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 7 Feb 2024 16:13:21 +0000 (11:13 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
CMakeLists.txt
cmake/modules/BuildQAT.cmake

index b40a47d4c132d4d3214471727c16502e8e16da4b..d70d471ab81939d38794f5e5f644a1c6a7b77354 100644 (file)
@@ -307,10 +307,12 @@ endif()
 
 option(WITH_BLUEFS "libbluefs library" OFF)
 
-option(WITH_QATLIB "Enable QAT with qatlib" ON)
+CMAKE_DEPENDENT_OPTION(WITH_QATLIB "Enable QAT with qatlib" ON
+  "NOT CMAKE_SYSTEM_PROCESSOR MATCHES aarch64" OFF)
 option(WITH_SYSTEM_QATLIB "Use system packages for qatlib" OFF)
 option(WITH_QATDRV "Enable QAT with out-of-tree driver" OFF)
-option(WITH_QATZIP "Enable QATzip" ON)
+CMAKE_DEPENDENT_OPTION(WITH_QATZIP "Enable QATzip" ON
+  "NOT CMAKE_SYSTEM_PROCESSOR MATCHES aarch64" OFF)
 option(WITH_SYSTEM_QATZIP "Use system packages for QATzip" OFF)
 
 if(WITH_QATDRV)
index 737c63c3ea8ccf56d05b4757e97d8ade6aa9d0cb..d65d07639dc1d4d0acc8a1af24a0d7d90a8bc853 100644 (file)
@@ -13,8 +13,6 @@ function(build_qat)
   set(configure_cmd env CC=${CMAKE_C_COMPILER} ./configure --prefix=${QAT_INSTALL_DIR})
   # disable systemd or 'make install' tries to write /usr/lib/systemd/system/qat.service
   list(APPEND configure_cmd --disable-systemd)
-  # samples don't build on arm64
-  list(APPEND configure_cmd --disable-samples)
   # build a static library with -fPIC that we can link into crypto/compressor plugins
   list(APPEND configure_cmd --with-pic --enable-static --disable-shared)