diff --git a/Makefile b/Makefile index cba4a94..da5f64f 100644 --- a/Makefile +++ b/Makefile @@ -46,8 +46,8 @@ UCODE:= $(shell grep microcode /proc/cpuinfo | sort | uniq | awk '{print $$NF}' KERN:= $(shell uname -svm) CLANGV:= $(shell clang -v 2>&1 | head -n 1) GCCV:= $(shell gcc -v 2>&1 | grep 'gcc version') -VULN1:= $(strip $(shell LC_ALL=en_US.UTF-8 lscpu | grep 'Spectre v1' | cut -d":" -f 2-)) -VULN2:= $(strip $(shell LC_ALL=en_US.UTF-8 lscpu | grep 'Spectre v2' | cut -d":" -f 2-)) +VULN1:= $(shell cat /sys/devices/system/cpu/vulnerabilities/spectre_v1) +VULN2:= $(shell cat /sys/devices/system/cpu/vulnerabilities/spectre_v2) ifndef PROGRESS HIT_TOTAL != ${MAKE} ${MAKECMDGOALS} --dry-run PROGRESS="HIT_MARK" | grep -c "HIT_MARK"