From 7d0c68a20bcbc2e336cb5abd03b33093bed6a938 Mon Sep 17 00:00:00 2001 From: Michal Koutný Date: Apr 05 2024 14:18:24 +0000 Subject: mass-cve: Fail nicely if env is not set --- diff --git a/scripts/cve_tools/Makefile b/scripts/cve_tools/Makefile index ada2a55..146e398 100644 --- a/scripts/cve_tools/Makefile +++ b/scripts/cve_tools/Makefile @@ -1,5 +1,9 @@ -# Expects VULNS_GIT environment variable with a clone of https://git.kernel.org/pub/scm/linux/security/vulns.git -# Expects KSOURCE_GIT environment variable +ifndef VULNS_GIT +$(error Please set VULNS_GIT to a clone of https://git.kernel.org/pub/scm/linux/security/vulns.git) +endif +ifndef KSOURCE_GIT +$(error Please set KSOURCE_GIT to a clone of kernel-source) +endif mk_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) # URL of upstream vulns