forked from huawei/openGauss-server
commit
3e14e85fdf
|
|
@ -72,7 +72,7 @@ select_package_command
|
||||||
export PLAT_FORM_STR=$(sh "${ROOT_DIR}/src/get_PlatForm_str.sh")
|
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 ]
|
if [ "${PLAT_FORM_STR}"x == "Failed"x -o "${PLAT_FORM_STR}"x == ""x ]
|
||||||
then
|
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;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -96,16 +96,21 @@ elif [[ "$PLAT_FORM_STR" =~ "kylin" ]]; then
|
||||||
if [ "$PLATFORM_ARCH"X == "aarch64"X ];then
|
if [ "$PLATFORM_ARCH"X == "aarch64"X ];then
|
||||||
GAUSSDB_EXTRA_FLAGS=" -D__USE_NUMA"
|
GAUSSDB_EXTRA_FLAGS=" -D__USE_NUMA"
|
||||||
fi
|
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
|
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"
|
echo "Kernel is $kernel"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##add platform architecture information
|
##add platform architecture information
|
||||||
if [ "$PLATFORM_ARCH"X == "aarch64"X ] ; then
|
if [ "$PLATFORM_ARCH"X == "aarch64"X ] ; then
|
||||||
if [ "$dist_version" != "openEuler" ] && [ "$dist_version" != "EulerOS" ] && [ "$dist_version" != "Kylin" ] ; then
|
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) platform."
|
echo "We only support NUMA on openEuler(aarch64), EulerOS(aarch64), Kylin(aarch64), Asianux platform."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,29 @@ then
|
||||||
plat_form_str=ubuntu18.04_"$cpu_bit"
|
plat_form_str=ubuntu18.04_"$cpu_bit"
|
||||||
fi
|
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
|
# other platform
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue