Skip to content

Commit 57fae16

Browse files
sarpadiSRaus
authored andcommitted
sysid: Fix mem init file path
Signed-off-by: sarpadi <[email protected]> (cherry picked from commit 27e9e1b)
1 parent 7a9f710 commit 57fae16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/scripts/adi_pd.tcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
###############################################################################
2-
## Copyright (C) 2020-2023 Analog Devices, Inc. All rights reserved.
2+
## Copyright (C) 2020-2024 Analog Devices, Inc. All rights reserved.
33
### SPDX short identifier: ADIBSD
44
###############################################################################
55

66
## Initialize global variables
77

88
set mem_init_sys_file_path [pwd]
99
if {[info exists ::env(ADI_PROJECT_DIR)]} {
10-
set mem_init_sys_file_path $::env(ADI_PROJECT_DIR)
10+
set mem_init_sys_file_path [string trimright [pwd]/$::env(ADI_PROJECT_DIR) "/"]
1111
}
1212

1313
## Converts a string input to hex and adds whitespace as padding to obtain the size defined by
@@ -212,7 +212,7 @@ proc sysid_gen_sys_init_file {{custom_string {}} {address_bits {9}}} {
212212
set sys_mem_hex [format %0-${memory_size}s [concat $comh_hex$verh_hex$projname_hex$boardname_hex$custom_hex]];
213213

214214
if {[info exists ::env(ADI_PROJECT_DIR)]} {
215-
set mem_init_sys_file_path $::env(ADI_PROJECT_DIR)mem_init_sys.txt
215+
set mem_init_sys_file_path [pwd]/$::env(ADI_PROJECT_DIR)mem_init_sys.txt
216216
} else {
217217
set mem_init_sys_file_path "mem_init_sys.txt"
218218
}

0 commit comments

Comments
 (0)