Skip to content

Commit

Permalink
cmake: WITH_QATLIB/ZIP disabled on aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Casey Bodley <[email protected]>
  • Loading branch information
cbodley committed Feb 7, 2024
1 parent 5d25607 commit 84af835
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions cmake/modules/BuildQAT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 84af835

Please sign in to comment.