summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-11-20 08:42:09 +0100
committerKefu Chai <kchai@redhat.com>2017-11-20 08:45:03 +0100
commit89a48189ea7b9bd58db1bc95ccd7b3d9fb9b1bb3 (patch)
tree880ad2a9905633701026c96ca476d75b9538e8e9 /etc
parentMerge pull request #18980 from shinobu-x/os_filestore_filestore_nit_cleanup (diff)
downloadceph-89a48189ea7b9bd58db1bc95ccd7b3d9fb9b1bb3.tar.xz
ceph-89a48189ea7b9bd58db1bc95ccd7b3d9fb9b1bb3.zip
cmake: only create sysctl file on linux
and check 64bit platform by using the sizeof(void*) Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'etc')
-rw-r--r--etc/sysctl/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/sysctl/CMakeLists.txt b/etc/sysctl/CMakeLists.txt
index 93cd7771538..682541b058e 100644
--- a/etc/sysctl/CMakeLists.txt
+++ b/etc/sysctl/CMakeLists.txt
@@ -1,8 +1,9 @@
-if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i686|arm|ARM")
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
# 4194304 is the maximum limit possible on 64-bit CONFIG_BASE_FULL kernels.
# Keep the default for 32-bit systems.
set(sysctl_pid_max "kernel.pid_max = 4194304")
endif()
configure_file(90-ceph-osd.conf.in
- ${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf @ONLY)
+ ${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf
+ @ONLY)