]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/configure
7 echo "'configure' configures SPDK to compile on supported platforms."
9 echo "Usage: ./configure [OPTION]..."
11 echo "Defaults for the options are specified in brackets."
14 echo " -h, --help Display this help and exit"
15 echo " --enable-debug Configure for debug builds"
16 echo " --enable-werror Treat compiler warnings as errors"
17 echo " --enable-asan Enable address sanitizer"
18 echo " --enable-ubsan Enable undefined behavior sanitizer"
19 echo " --enable-coverage Enable code coverage tracking"
20 echo " --with-env=path Use an alternate environment implementation"
22 echo "Specifying Dependencies:"
23 echo "--with-DEPENDENCY[=path] Use the given dependency. Optionally, provide the"
25 echo "--without-DEPENDENCY Do not link to the given dependency. This may"
26 echo " disable features and components."
28 echo "Valid dependencies are listed below."
29 echo " dpdk Required unless providing an alternate env implementation."
30 echo " example: /usr/share/dpdk/x86_64-default-linuxapp-gcc"
31 echo " fio Required to build fio_plugin."
32 echo " example: /usr/src/fio"
33 echo " rbd [disabled]"
34 echo " No path required."
35 echo " rdma [disabled]"
36 echo " No path required."
92 CONFIG_DPDK_DIR
="${i#*=}"
98 FIO_SOURCE_DIR
="${i#*=}"
109 echo "Unrecognized option $i"
115 if [ -z "$CONFIG_ENV" ]; then
116 if [ -z "$CONFIG_DPDK_DIR" ]; then
117 echo "You must specify the path to dpdk using --with-dpdk=path."
122 if [ "$CONFIG_FIO_PLUGIN" = "y" ]; then
123 if [ -z "$FIO_SOURCE_DIR" ]; then
124 echo "When fio is enabled, you must specify the fio directory using --with-fio=path"
129 echo -n "Creating CONFIG.local..."
131 # Write the configuration file
133 if [ -n "$CONFIG_DEBUG" ]; then
134 echo "CONFIG_DEBUG?=$CONFIG_DEBUG" >> CONFIG.
local
136 if [ -n "$CONFIG_WERROR" ]; then
137 echo "CONFIG_WERROR?=$CONFIG_WERROR" >> CONFIG.
local
139 if [ -n "$CONFIG_COVERAGE" ]; then
140 echo "CONFIG_COVERAGE?=$CONFIG_COVERAGE" >> CONFIG.
local
142 if [ -n "$CONFIG_ASAN" ]; then
143 echo "CONFIG_ASAN?=$CONFIG_ASAN" >> CONFIG.
local
145 if [ -n "$CONFIG_UBSAN" ]; then
146 echo "CONFIG_UBSAN?=$CONFIG_UBSAN" >> CONFIG.
local
148 if [ -n "$CONFIG_ENV" ]; then
149 echo "CONFIG_ENV?=$CONFIG_ENV" >> CONFIG.
local
151 if [ -n "$CONFIG_DPDK_DIR" ]; then
152 echo "CONFIG_DPDK_DIR?=$CONFIG_DPDK_DIR" >> CONFIG.
local
154 if [ -n "$CONFIG_FIO_PLUGIN" ]; then
155 echo "CONFIG_FIO_PLUGIN?=$CONFIG_FIO_PLUGIN" >> CONFIG.
local
157 if [ -n "$FIO_SOURCE_DIR" ]; then
158 echo "FIO_SOURCE_DIR?=$FIO_SOURCE_DIR" >> CONFIG.
local
160 if [ -n "$CONFIG_RDMA" ]; then
161 echo "CONFIG_RDMA?=$CONFIG_RDMA" >> CONFIG.
local
163 if [ -n "$CONFIG_RBD" ]; then
164 echo "CONFIG_RBD?=$CONFIG_RBD" >> CONFIG.
local
168 echo "Type 'make' to build."