Fix build issues

This commit is contained in:
dengxuyue
2020-12-31 02:09:42 +08:00
parent 905707ec6c
commit f8b8207f45
2 changed files with 1 additions and 5 deletions

View File

@ -51,8 +51,7 @@ NOTICE_FILE='Copyright Notice.doc'
plat=$(uname -p)
if [ x$kernel$version$plat != x"eulerossp5x86_64" ] && [ x$kernel$version$plat != x"eulerossp8aarch64" ] && [ x$kernel$version$plat != x"eulerossp2x86_64" ]
then
echo "Only support to build unixODBC on EulerOS_SP5_x86_64 and EulerOS_SP8_aarch64"
exit 1
echo "WARN: Building unixODBC platform other than EulerOS_SP5_x86_64 and EulerOS_SP8_aarch64 is experimental"
fi

View File

@ -85,9 +85,6 @@ INSTALL_COMPOENT_PATH_NAME="${ROOT_DIR}/${COMPONENT_TYPE}/${COMPONENT_NAME}"
function build_component()
{
cd ${LOCAL_DIR}
rm -rf ${TAR_FILE_NAME%.tar.gz}
rm -rf ${TAR_FILE_NAME}
cp ${TAR_FILE_NAME%.tar.gz}.file ${TAR_FILE_NAME}
tar -xvf ${TAR_FILE_NAME}
cd ${LOCAL_DIR}/${SOURCE_CODE_PATH}