Commit 8a5d487d authored by Mykola Golub's avatar Mykola Golub Committed by Tomasz Zawadzki
Browse files

scripts/pkgdep: add RBD support



Adds "--rbd" option to install build dependencies for the rbd bdev.

This will be used by the Ceph NVMe-oF gateway.

Signed-off-by: default avatarMykola Golub <mykola.golub@clyso.com>
Change-Id: I7926433aaa398873133dfffea3c401ce3c1f7813
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11134


Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
parent 17538bdc
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ function usage() {
	echo "  -d --developer-tools        Install tools for developers (code styling, code coverage, etc.)"
	echo "  -p --pmem                   Additional dependencies for reduce, pmdk and pmdkobj"
	echo "  -f --fuse                   Additional dependencies for FUSE and NVMe-CUSE"
	echo "  -R --rbd                    Additional dependencies for RBD"
	echo "  -r --rdma                   Additional dependencies for RDMA transport in NVMe over Fabrics"
	echo "  -b --docs                   Additional dependencies for building docs"
	echo "  -u --uring                  Additional dependencies for io_uring"
@@ -26,6 +27,7 @@ function install_all_dependencies() {
	INSTALL_DEV_TOOLS=true
	INSTALL_PMEM=true
	INSTALL_FUSE=true
	INSTALL_RBD=true
	INSTALL_RDMA=true
	INSTALL_DOCS=true
	INSTALL_LIBURING=true
@@ -36,12 +38,13 @@ INSTALL_CRYPTO=false
INSTALL_DEV_TOOLS=false
INSTALL_PMEM=false
INSTALL_FUSE=false
INSTALL_RBD=false
INSTALL_RDMA=false
INSTALL_DOCS=false
INSTALL_LIBURING=false
INSTALL_DAOS=false

while getopts 'abdfhipruD-:' optchar; do
while getopts 'abdfhipruDR-:' optchar; do
	case "$optchar" in
		-)
			case "$OPTARG" in
@@ -50,6 +53,7 @@ while getopts 'abdfhipruD-:' optchar; do
				developer-tools) INSTALL_DEV_TOOLS=true ;;
				pmem) INSTALL_PMEM=true ;;
				fuse) INSTALL_FUSE=true ;;
				rbd) INSTALL_RBD=true ;;
				rdma) INSTALL_RDMA=true ;;
				docs) INSTALL_DOCS=true ;;
				uring) INSTALL_LIBURING=true ;;
@@ -65,6 +69,7 @@ while getopts 'abdfhipruD-:' optchar; do
		d) INSTALL_DEV_TOOLS=true ;;
		p) INSTALL_PMEM=true ;;
		f) INSTALL_FUSE=true ;;
		R) INSTALL_RBD=true ;;
		r) INSTALL_RDMA=true ;;
		b) INSTALL_DOCS=true ;;
		u) INSTALL_LIBURING=true ;;
+4 −0
Original line number Diff line number Diff line
@@ -53,6 +53,10 @@ if [[ $INSTALL_FUSE == "true" ]]; then
	# Additional dependencies for FUSE and NVMe-CUSE
	pacman -Sy --needed --noconfirm fuse3
fi
if [[ $INSTALL_RBD == "true" ]]; then
	echo "Arch Linux does not have librados-devel and librbd-devel in mainline repositories."
	echo "You can install them manually"
fi
if [[ $INSTALL_RDMA == "true" ]]; then
	# Additional dependencies for RDMA transport in NVMe over Fabrics
	if [[ -n "$http_proxy" ]]; then
+4 −0
Original line number Diff line number Diff line
@@ -23,6 +23,10 @@ if [[ $INSTALL_FUSE == "true" ]]; then
	# Additional dependencies for FUSE and NVMe-CUSE
	swupd bundle-add -y devpkg-fuse
fi
if [[ $INSTALL_RBD == "true" ]]; then
	# Additional dependencies for RBD bdev in NVMe over Fabrics
	swupd bundle-add -y librados-devel librbd-devel
fi
if [[ $INSTALL_RDMA == "true" ]]; then
	# Additional dependencies for RDMA transport in NVMe over Fabrics
	swupd bundle-add -y devpkg-rdma-core network-basic-dev
+4 −0
Original line number Diff line number Diff line
@@ -66,6 +66,10 @@ if [[ $INSTALL_FUSE == "true" ]]; then
		apt-get install -y libfuse3-dev
	fi
fi
if [[ $INSTALL_RBD == "true" ]]; then
	# Additional dependencies for RBD bdev in NVMe over Fabrics
	apt-get install -y librados-dev librbd-dev
fi
if [[ $INSTALL_RDMA == "true" ]]; then
	# Additional dependencies for RDMA transport in NVMe over Fabrics
	apt-get install -y libibverbs-dev librdmacm-dev
+5 −0
Original line number Diff line number Diff line
@@ -26,3 +26,8 @@ if [[ $INSTALL_LIBURING == "true" ]]; then
		"$(freebsd-version)"
	INSTALL_LIBURING=false
fi

if [[ $INSTALL_RBD == "true" ]]; then
	# Additional dependencies for RBD bdev in NVMe over Fabrics
	pkg install -y ceph
fi
Loading