Adapted to the neokylin system.

This commit is contained in:
hemny
2020-08-17 22:33:13 +08:00
parent 3112740754
commit 2f6557c458

View File

@ -36,6 +36,9 @@ then
elif [ -f "/etc/openEuler-release" ]
then
kernel=$(cat /etc/openEuler-release | awk -F ' ' '{print $1}' | tr A-Z a-z)
elif [ -f "/etc/os-release" ]
then
kernel=$(source /etc/os-release; echo $ID)
else
kernel=$(lsb_release -d | awk -F ' ' '{print $2}'| tr A-Z a-z)
fi
@ -132,6 +135,14 @@ then
plat_form_str=openeuler_"$cpu_bit"
fi
##################################################################################
# neokylin platform
# the result form like this: neokylin_aarch64
##################################################################################
if [ "$kernel"x = "neokylin"x ]
then
plat_form_str=neokylin_"$cpu_bit"
fi
##################################################################################
#