diff --git a/build/script/utils/common.sh b/build/script/utils/common.sh index 0cf96f8c8..bda0fb8d6 100644 --- a/build/script/utils/common.sh +++ b/build/script/utils/common.sh @@ -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" diff --git a/configure b/configure index 4e99559d1..77be00108 100755 --- a/configure +++ b/configure @@ -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 # diff --git a/src/get_PlatForm_str.sh b/src/get_PlatForm_str.sh index 2a19edfb0..2e6e14afc 100755 --- a/src/get_PlatForm_str.sh +++ b/src/get_PlatForm_str.sh @@ -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