From f7532e8f7bd5bfc1d04acea0a683fd0d1d2464bb Mon Sep 17 00:00:00 2001 From: Samuel Aubertin Date: Thu, 27 Jan 2022 15:48:18 +0100 Subject: [PATCH] Do not rely on lscpu for vulns info --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"