sysid: Make sure gitbranch_string is always declared

Parsing of not existed "gitbranch_string" fails the build process.
main
vladimirnesterov 2021-03-24 13:57:44 +09:00 committed by sarpadi
parent 6a374ef457
commit 8335e1bd9a
1 changed files with 2 additions and 0 deletions

View File

@ -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]];