xref: /spdk/scripts/pkgdep/sles.sh (revision 2796687d54c4dc0e1babf5422057239612e9a10c)
1#!/usr/bin/env bash
2#  SPDX-License-Identifier: BSD-3-Clause
3#  Copyright (C) 2020 Intel Corporation
4#  All rights reserved.
5#  Copyright (c) 2022 Dell Inc, or its subsidiaries.
6#
7# Minimal install
8zypper install -y gcc gcc-c++ make cunit-devel libaio-devel libopenssl-devel \
9	libuuid-devel python-base ncurses-devel libjson-c-devel libcmocka-devel \
10	ninja meson python3-pyelftools
11# Additional dependencies for DPDK
12zypper install -y libnuma-devel nasm
13# Additional dependencies for ISA-L used in compression
14zypper install -y autoconf automake libtool help2man
15if [[ $INSTALL_DEV_TOOLS == "true" ]]; then
16	# Tools for developers
17	zypper install -y git-core lcov python3-pycodestyle sg3_utils \
18		pciutils ShellCheck bash-completion
19fi
20if [[ $INSTALL_PMEM == "true" ]]; then
21	# Additional dependencies for building pmem based backends
22	zypper install -y libpmemblk-devel
23	zypper install -y libpmemobj-devel
24fi
25if [[ $INSTALL_FUSE == "true" ]]; then
26	# Additional dependencies for FUSE and NVMe-CUSE
27	zypper install -y fuse3-devel
28fi
29if [[ $INSTALL_RBD == "true" ]]; then
30	# Additional dependencies for RBD bdev in NVMe over Fabrics
31	zypper install -y librados-devel librbd-devel
32fi
33if [[ $INSTALL_RDMA == "true" ]]; then
34	# Additional dependencies for RDMA transport in NVMe over Fabrics
35	zypper install -y rdma-core-devel
36fi
37if [[ $INSTALL_DOCS == "true" ]]; then
38	# Additional dependencies for building docs
39	zypper install -y doxygen mscgen graphviz
40fi
41if [[ $INSTALL_DAOS == "true" ]]; then
42	zypper ar https://packages.daos.io/v2.0/Leap15/packages/x86_64/ daos_packages
43	rpm --import https://packages.daos.io/RPM-GPG-KEY
44	zypper --non-interactive refresh
45	zypper install -y daos-client daos-devel
46fi
47if [[ $INSTALL_AVAHI == "true" ]]; then
48	# Additional dependencies for Avahi
49	zypper install -y avahi-devel
50fi
51