From ff3b66e2f2a0658e5e4fed8c89017c63174eb2f2 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Tue, 9 May 2023 17:38:46 -0700 Subject: [PATCH] Makefile should error if BINARY is set incorrectly --- common.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common.mk b/common.mk index a8e2e9a8..2dce97ec 100644 --- a/common.mk +++ b/common.mk @@ -292,6 +292,11 @@ check-binary: ifeq (,$(BINARY)) $(error BINARY variable is not set. Set it to the simulation binary) endif +ifneq (none,$(BINARY)) +ifeq ("$(wildcard $(BINARY))","") + $(error BINARY=$(BINARY) not found) +endif +endif # allow you to override sim prereq ifeq (,$(BREAK_SIM_PREREQ))