From 5e1d9b79f6dc1605ec4317a81b9ae4f8275816bb Mon Sep 17 00:00:00 2001 From: zhangminjie1997 <1010169419@qq.com> Date: Mon, 25 Apr 2022 17:23:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9asianux=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/script/utils/common.sh | 13 +++++++++---- src/get_PlatForm_str.sh | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/build/script/utils/common.sh b/build/script/utils/common.sh index b86890210..c855e132f 100644 --- a/build/script/utils/common.sh +++ b/build/script/utils/common.sh @@ -72,7 +72,7 @@ select_package_command export PLAT_FORM_STR=$(sh "${ROOT_DIR}/src/get_PlatForm_str.sh") if [ "${PLAT_FORM_STR}"x == "Failed"x -o "${PLAT_FORM_STR}"x == ""x ] then - echo "We only support openEuler(aarch64), EulerOS(aarch64), CentOS, Kylin(aarch64) platform." + echo "We only support openEuler(aarch64), EulerOS(aarch64), CentOS, Kylin(aarch64), Asianux platform." exit 1; fi @@ -96,16 +96,21 @@ elif [[ "$PLAT_FORM_STR" =~ "kylin" ]]; then if [ "$PLATFORM_ARCH"X == "aarch64"X ];then GAUSSDB_EXTRA_FLAGS=" -D__USE_NUMA" fi +elif [[ "$PLAT_FORM_STR" =~ "asianux" ]]; then + dist_version="Asianux" + if [ "$PLATFORM_ARCH"X == "aarch64"X ];then + GAUSSDB_EXTRA_FLAGS=" -D__USE_NUMA" + fi else - echo "We only support openEuler(aarch64), EulerOS(aarch64), CentOS, Kylin(aarch64) platform." + echo "We only support openEuler(aarch64), EulerOS(aarch64), CentOS, Kylin(aarch64), Asianux platform." echo "Kernel is $kernel" exit 1 fi ##add platform architecture information if [ "$PLATFORM_ARCH"X == "aarch64"X ] ; then - if [ "$dist_version" != "openEuler" ] && [ "$dist_version" != "EulerOS" ] && [ "$dist_version" != "Kylin" ] ; then - echo "We only support NUMA on openEuler(aarch64), EulerOS(aarch64), Kylin(aarch64) platform." + if [ "$dist_version" != "openEuler" ] && [ "$dist_version" != "EulerOS" ] && [ "$dist_version" != "Kylin" ] && [ "$dist_version" != "Asianux" ]; then + echo "We only support NUMA on openEuler(aarch64), EulerOS(aarch64), Kylin(aarch64), Asianux platform." exit 1 fi fi diff --git a/src/get_PlatForm_str.sh b/src/get_PlatForm_str.sh index fe29f94ed..625b717ef 100755 --- a/src/get_PlatForm_str.sh +++ b/src/get_PlatForm_str.sh @@ -145,6 +145,29 @@ then plat_form_str=ubuntu18.04_"$cpu_bit" fi +################################################################################## +# the modification here will also lead to the synchronous modification of the 3rd-party compilation library path +# PR link : https://gitee.com/opengauss/openGauss-third_party/pulls/130 +# redflag platform +# the result form like this: asianux_x86_64 +################################################################################## +if [ "$kernel"x = "redflag"x ] +then + plat_form_str=asianux7.6_"$cpu_bit" +fi + + +################################################################################## +# the modification here will also lead to the synchronous modification of the 3rd-party compilation library path +# PR link : https://gitee.com/opengauss/openGauss-third_party/pulls/130 +# asianux platform +# the result form like this: asianux_aarch64 +################################################################################## +if [ "$kernel"x = "asianux"x ] +then + plat_form_str=asianux7.5_"$cpu_bit" +fi + ################################################################################## # # other platform