2020-05-18 13:14:34 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-11-02 15:49:40 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright (C) 2020 Intel Corporation
|
2022-12-01 15:53:24 +00:00
|
|
|
# Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES.
|
2022-11-02 15:49:40 +00:00
|
|
|
# All rights reserved.
|
2023-01-11 07:24:19 +00:00
|
|
|
# Copyright (c) 2022 Dell Inc, or its subsidiaries.
|
2022-11-02 15:49:40 +00:00
|
|
|
#
|
2020-05-18 13:14:34 +00:00
|
|
|
|
2022-05-24 15:52:24 +00:00
|
|
|
apt-get install -y gcc g++ make libcunit1-dev libaio-dev libssl-dev libjson-c-dev libcmocka-dev uuid-dev libiscsi-dev
|
2023-02-24 00:24:50 +00:00
|
|
|
apt-get install -y libncurses5-dev libncursesw5-dev python3 python3-pip python3-dev
|
2020-05-18 13:14:34 +00:00
|
|
|
pip3 install ninja
|
2023-02-24 00:24:50 +00:00
|
|
|
pip3 install meson
|
2021-01-26 14:45:32 +00:00
|
|
|
pip3 install pyelftools
|
2021-06-10 10:35:05 +00:00
|
|
|
pip3 install ijson
|
2021-09-02 10:09:39 +00:00
|
|
|
pip3 install python-magic
|
2022-01-05 09:14:39 +00:00
|
|
|
pip3 install grpcio
|
|
|
|
pip3 install grpcio-tools
|
2022-02-22 13:53:06 +00:00
|
|
|
pip3 install pyyaml
|
2023-02-24 00:24:50 +00:00
|
|
|
# Additional dependencies for SPDK CLI
|
|
|
|
apt-get install -y python3-configshell-fb python3-pexpect
|
2020-05-18 13:14:34 +00:00
|
|
|
|
|
|
|
# Additional dependencies for DPDK
|
2023-02-24 00:24:50 +00:00
|
|
|
apt-get install -y nasm libnuma-dev
|
2020-05-18 13:14:34 +00:00
|
|
|
# Additional dependencies for ISA-L used in compression
|
|
|
|
apt-get install -y autoconf automake libtool help2man
|
usdt: add User Space DTrace support to SPDK
For now, we will keep this disabled by default,
enable with --with-usdt option to the configure
script. Long-term we will want to enable this by
default, and only disable via configure.
Modules can include spdk_internal/usdt.h and add
probes such as:
SPDK_DTRACE_PROBE2(probe_name, ptr, val);
When USDT is enabled, these will translate to
DTRACE_PROBE2(spdk, probe_name, ptr, val). When
USDT is disabled, these will translate to nothing.
Later patches will add some probe points to the
nvmf target, some bpftrace scripts, and instructions
for how to successfully capture data with these
probe points and scripts.
Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Id168e2c800fa5522815a175026386319014cfdaa
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7173
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2021-03-31 22:33:20 +00:00
|
|
|
# Additional dependencies for USDT
|
|
|
|
apt-get install -y systemtap-sdt-dev
|
2020-05-18 13:14:34 +00:00
|
|
|
if [[ $INSTALL_DEV_TOOLS == "true" ]]; then
|
|
|
|
# Tools for developers
|
2023-02-24 00:24:50 +00:00
|
|
|
apt-get install -y git astyle lcov clang sg3-utils pciutils shellcheck \
|
|
|
|
abigail-tools bash-completion ruby-dev pycodestyle
|
2021-11-25 01:40:59 +00:00
|
|
|
# Additional dependencies for nvmf performance test script
|
2020-05-18 13:14:34 +00:00
|
|
|
apt-get install -y python3-paramiko
|
|
|
|
fi
|
|
|
|
if [[ $INSTALL_PMEM == "true" ]]; then
|
|
|
|
# Additional dependencies for building pmem based backends
|
2023-02-24 00:24:50 +00:00
|
|
|
apt-get install -y libpmem-dev libpmemblk-dev libpmemobj-dev
|
2020-05-18 13:14:34 +00:00
|
|
|
fi
|
|
|
|
if [[ $INSTALL_FUSE == "true" ]]; then
|
|
|
|
# Additional dependencies for FUSE and NVMe-CUSE
|
2023-02-24 00:24:50 +00:00
|
|
|
apt-get install -y libfuse3-dev
|
2020-05-18 13:14:34 +00:00
|
|
|
fi
|
2022-01-16 17:09:19 +00:00
|
|
|
if [[ $INSTALL_RBD == "true" ]]; then
|
|
|
|
# Additional dependencies for RBD bdev in NVMe over Fabrics
|
|
|
|
apt-get install -y librados-dev librbd-dev
|
|
|
|
fi
|
2020-05-18 13:14:34 +00:00
|
|
|
if [[ $INSTALL_RDMA == "true" ]]; then
|
|
|
|
# Additional dependencies for RDMA transport in NVMe over Fabrics
|
|
|
|
apt-get install -y libibverbs-dev librdmacm-dev
|
|
|
|
fi
|
|
|
|
if [[ $INSTALL_DOCS == "true" ]]; then
|
|
|
|
# Additional dependencies for building docs
|
|
|
|
apt-get install -y doxygen mscgen graphviz
|
|
|
|
fi
|
2023-01-11 07:24:19 +00:00
|
|
|
# Additional dependencies for Avahi
|
|
|
|
if [[ $INSTALL_AVAHI == "true" ]]; then
|
|
|
|
# Additional dependencies for Avahi
|
|
|
|
apt-get install -y libavahi-client-dev
|
|
|
|
fi
|