Skip to content

Commit

Permalink
scripts: make_tb_path: Error for unset ADI_*_DIR
Browse files Browse the repository at this point in the history
Add informative error for mandatory environment variable.

Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Dec 10, 2024
1 parent a099338 commit a9797fe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/make_tb_path.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
####################################################################################
####################################################################################

ifeq ($(ADI_HDL_DIR),)
$(error Environment variable ADI_HDL_DIR not set, please set it with the absolute path to the hdl repository.)
endif

ifeq ($(ADI_TB_DIR),)
$(error Environment variable ADI_TB_DIR not set, please set it with the absolute path to the testbenches repository.)
endif

# Assumes this file is in <HDL>/testbenches/scripts/make_tb_path.mk
ADI_HDL_DIR := ${ADI_HDL_DIR}
HDL_LIBRARY_PATH := $(ADI_HDL_DIR)/library/
ADI_TB_DIR := ${ADI_TB_DIR}
TB_LIBRARY_PATH := $(ADI_TB_DIR)/library/

0 comments on commit a9797fe

Please sign in to comment.