blob: 7bde9fd09aa49bb89736a22777184808c33fc5f6 [file] [log] [blame]
#!/bin/bash -e
# pmdk v1.9.1 release
PMDK_VERSION=1.9.1
WORKDIR=$(pwd)
#
# The '/bin/sh' shell used by PMDK's 'make install'
# does not know the exact localization of clang
# and fails with:
# /bin/sh: 1: clang: not found
# if CC is not set to the full path of clang.
#
CC=$(type -P "$CC")
export CC
# Install PMDK libraries, because PMDK's libpmem
# is a dependency of the librpma fio engine.
# Install it from a release package
# with already generated documentation,
# in order to not install 'pandoc'.
wget https://github.com/pmem/pmdk/releases/download/${PMDK_VERSION}/pmdk-${PMDK_VERSION}.tar.gz
tar -xzf pmdk-${PMDK_VERSION}.tar.gz
cd pmdk-${PMDK_VERSION}
make -j"$(nproc)" NDCTL_ENABLE=n
sudo make -j"$(nproc)" install prefix=/usr NDCTL_ENABLE=n
cd "$WORKDIR"
rm -rf pmdk-${PMDK_VERSION}