Amazon linux 2 support (#14412)

* Use prebuilt cmake in install-dependencies steps

* Removed building of custom python to save Azure CI time

* Adjusted conditions in cmake

* Download VPU custom kernels compiler only for x86

* Removed -pyver argument

* Improvements

* Detect glibc version

* Usage of new glic variable

* Fixed typo

* Increased glibc version for MYRIAD case

* Made OpenVINO cmake Linux flavors agnostic

* Detect glibc version on RedHat

* Use clcompiler only since ubuntu 18.04

* Universal way to detect glibc version

* Revert some changes

* Added support of AmaZon Linux 2

* Amazon Linux 2 support
This commit is contained in:
Ilya Lavrenov 2022-12-05 21:38:52 +04:00 committed by GitHub
parent afa95b87f7
commit fcc4e60441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 6 deletions

View File

@ -109,7 +109,7 @@ if [ -f /etc/lsb-release ] || [ -f /etc/debian_version ] ; then
else
apt-get install -y nlohmann-json-dev
fi
elif [ -f /etc/redhat-release ]; then
elif [ -f /etc/redhat-release ] || grep -q "rhel" /etc/os-release ; then
# RHEL 8 / CentOS 7
yum update
yum install -y centos-release-scl epel-release

View File

@ -88,7 +88,7 @@ if [ "$os" == "auto" ] ; then
fi
case $os in
centos7|centos8|rhel8|rhel9.1|\
almalinux8.7|\
almalinux8.7|amzn2|\
fedora34|fedora35|fedora36|fedora37|fedora38|\
raspbian9|debian9|ubuntu18.04|\
raspbian10|debian10|ubuntu20.04|ubuntu20.10|ubuntu21.04|\
@ -182,9 +182,14 @@ elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] ||
[ "$os" == "rhel8" ] || [ "$os" == "rhel9.1" ] ||
[ "$os" == "fedora34" ] || [ "$os" == "fedora35" ] || [ "$os" == "fedora36" ] ||
[ "$os" == "fedora36" ] || [ "$os" == "fedora38" ] ||
[ "$os" == "almalinux8.7" ] ; then
[ "$os" == "almalinux8.7" ] || [ "$os" == "amzn2" ] ; then
arch=$(uname -m)
if [ "$os" == "amzn2" ] ; then
amazon-linux-extras install epel python3.8
fi
pkgs_dev=(gcc gcc-c++ make glibc libstdc++ libgcc cmake3 json-devel.$arch zlib-devel.$arch sudo)
if [ "$os" == "rhel9.1" ] ; then
@ -203,7 +208,7 @@ elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] ||
pkgs_myriad=(libusbx.$arch)
fi
if [ "$os" == "centos7" ] ; then
if [ "$os" == "centos7" ] || [ "$os" == "amzn2" ] ; then
pkgs_core=(tbb.$arch pugixml.$arch gflags.$arch)
pkgs_dev+=(gflags-devel.$arch)
pkgs_opencv_opt=(
@ -323,7 +328,7 @@ elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] ||
[ "$os" == "rhel8" ] || [ "$os" == "rhel9.1" ] ||
[ "$os" == "fedora34" ] || [ "$os" == "fedora35" ] || [ "$os" == "fedora36" ] ||
[ "$os" == "fedora36" ] || [ "$os" == "fedora38" ] ||
[ "$os" == "almalinux8.7" ] ; then
[ "$os" == "almalinux8.7" ] || [ "$os" == "amzn2" ] ; then
[ -z "$interactive" ] && iopt="--assumeyes"
[ -n "$dry" ] && iopt="--downloadonly"

View File

@ -92,7 +92,7 @@ if(THREADING MATCHES "^(TBB|TBB_AUTO)$" AND
set(tbb_custom ON)
endif()
if(OV_GLIBC_VERSION VERSION_LESS_EQUAL 2.24)
if(OV_GLIBC_VERSION VERSION_LESS_EQUAL 2.26)
set(_ov_system_tbb_is_obsolete ON)
endif()