scripts/pkgdep.sh: install DAOS bdev build dependencies

Change-Id: I9b4032656839b5ebc5202b26b97b7882664263ab
Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12393
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Karol Latecki 2022-04-27 14:51:05 +02:00 committed by Tomasz Zawadzki
parent 120382b7ec
commit 777afdf853
2 changed files with 18 additions and 1 deletions

View File

@ -17,6 +17,7 @@ function usage() {
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"
echo " -D --daos Additional dependencies for DAOS"
echo ""
exit 0
}
@ -28,6 +29,7 @@ function install_all_dependencies() {
INSTALL_RDMA=true
INSTALL_DOCS=true
INSTALL_LIBURING=true
INSTALL_DAOS=true
}
INSTALL_CRYPTO=false
@ -37,8 +39,9 @@ INSTALL_FUSE=false
INSTALL_RDMA=false
INSTALL_DOCS=false
INSTALL_LIBURING=false
INSTALL_DAOS=false
while getopts 'abdfhipru-:' optchar; do
while getopts 'abdfhipruD-:' optchar; do
case "$optchar" in
-)
case "$OPTARG" in
@ -50,6 +53,7 @@ while getopts 'abdfhipru-:' optchar; do
rdma) INSTALL_RDMA=true ;;
docs) INSTALL_DOCS=true ;;
uring) INSTALL_LIBURING=true ;;
daos) INSTALL_DAOS=true ;;
*)
echo "Invalid argument '$OPTARG'"
usage
@ -64,6 +68,7 @@ while getopts 'abdfhipru-:' optchar; do
r) INSTALL_RDMA=true ;;
b) INSTALL_DOCS=true ;;
u) INSTALL_LIBURING=true ;;
D) INSTALL_DAOS=true ;;
*)
echo "Invalid argument '$OPTARG'"
usage

View File

@ -145,3 +145,15 @@ if [[ $INSTALL_DOCS == "true" ]]; then
yum install -y mscgen || echo "Warning: couldn't install mscgen via yum. Please install mscgen manually."
yum install -y doxygen graphviz
fi
if [[ $INSTALL_DAOS == "true" ]]; then
if [[ $ID == centos || $ID == rocky ]]; then
if ! hash yum-config-manager &> /dev/null; then
yum install -y yum-utils
fi
yum-config-manager --add-repo "https://packages.daos.io/v2.0/CentOS${VERSION_ID:0:1}/packages/x86_64/daos_packages.repo"
yum-config-manager --enable "daos-packages"
yum install -y daos-devel
else
echo "Skipping installation of DAOS bdev dependencies. It is supported only for CentOS 7, CentOS 8 and Rocky 8"
fi
fi