add loongarch64 cpu support

Signed-off-by: Han Gao <gaohan@uniontech.com>
This commit is contained in:
Han Gao 2022-06-26 00:11:47 +00:00 committed by GitHub
parent ccd5d9f526
commit d876efec64

View file

@ -2206,6 +2206,10 @@ get_cpu() {
[[ -z "$cpu" ]] && cpu="$(awk -F':' '/family/ {printf $2; exit}' "$cpu_file")"
;;
"loongarch64")
cpu="$(awk -F':' '/Model/ {print $2; exit}' "$cpu_file")"
;;
*)
cpu="$(awk -F '\\s*: | @' \
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {