Makefile should error if BINARY is set incorrectly

This commit is contained in:
Jerry Zhao
2023-05-09 17:38:46 -07:00
parent d8bbc71821
commit ff3b66e2f2

View File

@@ -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))