]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: detect linux/blk/zoned support 44410/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 25 Dec 2021 07:47:22 +0000 (15:47 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 25 Dec 2021 08:13:47 +0000 (16:13 +0800)
commit76c35c6dd947a09ad6744a2159ac835958307a0c
tree5328c69266d40040b0d8e532cf9312687a5b1f45
parent2ec4a586a8545518a7e9b294a72ba0c73dbb618d
cmake: detect linux/blk/zoned support

* add find_package() support for detecting the existence of
  linux/blkzoned.h before using it.
* link against Linux::ZNS for adding the compilation definition of
  HAVE_ZNS instead of including it in the global config.h
* move the CMake option closer to where it is used for
  better readability. as this option takes effect only if
  crimson is compiled.
* make WITH_ZNS an option which depends on the value of
  CMAKE_SYSTEM_NAME. it is hidden and off if CMAKE_SYSTEM_NAME
  is not "Linux".

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
CMakeLists.txt
cmake/modules/FindLinuxZNS.cmake [new file with mode: 0644]
src/crimson/os/seastore/CMakeLists.txt
src/include/config-h.in.cmake