From a7bfb82159a71af0dda227075e8d01d4b8d95649 Mon Sep 17 00:00:00 2001 From: hyc520 Date: Thu, 11 Aug 2022 09:51:33 +0800 Subject: [PATCH] add support for FusionOS platform --- build/get_PlatForm_str.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build/get_PlatForm_str.sh b/build/get_PlatForm_str.sh index c002940..e445435 100644 --- a/build/get_PlatForm_str.sh +++ b/build/get_PlatForm_str.sh @@ -23,6 +23,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/FusionOS-release" ] +then + kernel=$(cat /etc/FusionOS-release | awk -F ' ' '{print $1}' | tr A-Z a-z) elif [ -f "/etc/centos-release" ] then kernel=$(cat /etc/centos-release | awk -F ' ' '{print $1}' | tr A-Z a-z) @@ -123,6 +126,16 @@ then fi +################################################################################## +# FusionOS platform +# the result form like this: fusionos_x86_64 +################################################################################## +if [ "$kernel"x = "fusionos"x ] +then + plat_form_str=fusionos_"$cpu_bit" +fi + + ################################################################################## # kylin platform # the result form like this: kylin_aarch64