From a9797fe1b5a39d6cbc7295bdea2558daa3d8b3b4 Mon Sep 17 00:00:00 2001 From: Jorge Marques Date: Tue, 10 Dec 2024 10:23:44 -0300 Subject: [PATCH] scripts: make_tb_path: Error for unset ADI_*_DIR Add informative error for mandatory environment variable. Signed-off-by: Jorge Marques --- scripts/make_tb_path.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/make_tb_path.mk b/scripts/make_tb_path.mk index 9f0c5fe4..c1d3707b 100644 --- a/scripts/make_tb_path.mk +++ b/scripts/make_tb_path.mk @@ -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 /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/