pkgdep: add support for openEuler Linux
OpenEuler Linux although is not compatible with RHEL, but it uses the same package manager DNF as RHEL and references the package naming of RHEL. OpenEuler Linux is becoming the mainstream linux distro in China. So adding support for it makes sense. For more details about it see: https://www.openeuler.org/en/. Fixes: #2713 Change-Id: Ife38a1f897bf6170a0c3ed0a5238ceda018a41f2 Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14639 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: wanghailiang <hailiangx.e.wang@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Michal Berger <michal.berger@intel.com>
This commit is contained in:
parent
23ed60ea31
commit
ecbdca493e
1
scripts/pkgdep/openeuler.sh
Symbolic link
1
scripts/pkgdep/openeuler.sh
Symbolic link
@ -0,0 +1 @@
|
||||
rhel.sh
|
@ -124,13 +124,19 @@ yum install -y numactl-devel nasm
|
||||
yum install -y systemtap-sdt-devel
|
||||
if [[ $INSTALL_DEV_TOOLS == "true" ]]; then
|
||||
# Tools for developers
|
||||
devtool_pkgs=(git sg3_utils pciutils libabigail bash-completion ruby-devel)
|
||||
|
||||
if echo "$ID $VERSION_ID" | grep -E -q 'centos 8|rocky 8'; then
|
||||
yum install -y python3-pycodestyle
|
||||
devtool_pkgs+=(python3-pycodestyle astyle)
|
||||
echo "Centos 8 and Rocky 8 do not have lcov and ShellCheck dependencies"
|
||||
elif [[ $ID == openeuler ]]; then
|
||||
devtool_pkgs+=(python3-pycodestyle)
|
||||
echo "openEuler does not have astyle, lcov and ShellCheck dependencies"
|
||||
else
|
||||
yum install -y python-pycodestyle lcov ShellCheck
|
||||
devtool_pkgs+=(python-pycodestyle astyle lcov ShellCheck)
|
||||
fi
|
||||
yum install -y git astyle sg3_utils pciutils libabigail bash-completion ruby-devel
|
||||
|
||||
yum install -y "${devtool_pkgs[@]}"
|
||||
fi
|
||||
if [[ $INSTALL_PMEM == "true" ]]; then
|
||||
# Additional dependencies for building pmem based backends
|
||||
|
Loading…
Reference in New Issue
Block a user