From 8335e1bd9a9884da57384e76c17a72ec30b7dfa3 Mon Sep 17 00:00:00 2001 From: vladimirnesterov <69502306+vladimirnesterov@users.noreply.github.com> Date: Wed, 24 Mar 2021 13:57:44 +0900 Subject: [PATCH] sysid: Make sure gitbranch_string is always declared Parsing of not existed "gitbranch_string" fails the build process. --- projects/scripts/adi_pd.tcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/scripts/adi_pd.tcl b/projects/scripts/adi_pd.tcl index dae32313c..0dface9f4 100644 --- a/projects/scripts/adi_pd.tcl +++ b/projects/scripts/adi_pd.tcl @@ -119,6 +119,8 @@ proc sysid_gen_sys_init_file {{custom_string {}}} { } else { set gitbranch_string [lindex $gitbranch_string [expr [lsearch -exact $gitbranch_string "*"] + 1]]; } + } else { + set gitbranch_string ""; } set git_clean_hex [hexstr_flip [stringtohex $git_clean_string 4]];