@ -73,14 +73,16 @@ elif [[ -f "/etc/kylin-release" ]]; then
|
||||
os_name="Kylin"
|
||||
elif [[ -f "/etc/asianux-release" ]]; then
|
||||
os_name="Asianux"
|
||||
elif [[ -f "/etc/CSIOS-release" ]]; then
|
||||
os_name="CSIOS"
|
||||
else
|
||||
os_name=$(lsb_release -d | awk -F ' ' '{print $2}'| tr A-Z a-z | sed 's/.*/\L&/; s/[a-z]*/\u&/g')
|
||||
fi
|
||||
|
||||
##add platform architecture information
|
||||
if [ "$PLATFORM_ARCH"X == "aarch64"X ] ; then
|
||||
if [ "$os_name" != "openEuler" ] && [ "$os_name" != "EulerOS" ] && [ "$os_name" != "FusionOS" ] && [ "$os_name" != "Kylin" ] && [ "$dist_version" != "Asianux" ]; then
|
||||
echo "We only support NUMA on openEuler(aarch64), EulerOS(aarch64), FusionOS(aarch64), Kylin(aarch64), Asianux platform."
|
||||
if [ "$os_name" != "openEuler" ] && [ "$os_name" != "EulerOS" ] && [ "$os_name" != "FusionOS" ] && [ "$os_name" != "Kylin" ] && [ "$dist_version" != "Asianux" ] && [ "$os_name" != "CSIOS" ]; then
|
||||
echo "We only support NUMA on openEuler(aarch64), EulerOS(aarch64), FusionOS(aarch64), Kylin(aarch64), Asianux, CSIOS(aarch64) platform."
|
||||
exit 1
|
||||
fi
|
||||
GAUSSDB_EXTRA_FLAGS=" -D__USE_NUMA"
|
||||
|
||||
4
configure
vendored
4
configure
vendored
@ -3337,6 +3337,10 @@ if [[ "$(cat /etc/system-release)" =~ ^"openEuler release 22.03".* ]]; then
|
||||
with_openeuler_major=yes
|
||||
fi
|
||||
|
||||
if [[ "$(cat /etc/system-release)" =~ ^"CSIOS release 1.0".* ]]; then
|
||||
with_openeuler_major=yes
|
||||
fi
|
||||
|
||||
#
|
||||
# --enable-coverage enables generation of code coverage metrics with gcov
|
||||
#
|
||||
|
||||
@ -32,6 +32,9 @@ then
|
||||
elif [ -f "/etc/kylin-release" ]
|
||||
then
|
||||
kernel=$(cat /etc/kylin-release | awk -F ' ' '{print $1}' | tr A-Z a-z)
|
||||
elif [ -f "/etc/CSIOS-release" ]
|
||||
then
|
||||
kernel=$(cat /etc/CSIOS-release | awk -F ' ' '{print $1}' | tr A-Z a-z)
|
||||
else
|
||||
kernel=$(lsb_release -d | awk -F ' ' '{print $2}'| tr A-Z a-z)
|
||||
fi
|
||||
@ -177,6 +180,15 @@ then
|
||||
plat_form_str=asianux7.5_"$cpu_bit"
|
||||
fi
|
||||
|
||||
##################################################################################
|
||||
# csios platform
|
||||
# the result form like this: csios_x86_64
|
||||
##################################################################################
|
||||
if [ "$kernel"x = "csios"x ]
|
||||
then
|
||||
plat_form_str=csios_"$cpu_bit"
|
||||
fi
|
||||
|
||||
##################################################################################
|
||||
#
|
||||
# other platform
|
||||
|
||||
Reference in New Issue
Block a user