diff --git a/platform/xilinx/util.tcl b/platform/xilinx/util.tcl index 8cf4fd8..b8bc9c1 100644 --- a/platform/xilinx/util.tcl +++ b/platform/xilinx/util.tcl @@ -166,7 +166,7 @@ proc _update_app_mem_layout {app_name mem_layout} { proc _update_app_build_config {app_name build_type build_config is_vitis} { set build_types {"debug" "release"} if {[lsearch $build_types $build_type] == -1} { - _error "Invalid config type: $build_type" "available types: $build_types" + _error "Invalid config type: $build_type" "available types: $build_types" } set cmd [list] @@ -183,7 +183,8 @@ proc _update_app_build_config {app_name build_type build_config is_vitis} { switch -exact -- $param { "include-path" { foreach path $value { - eval $cmd $app_name include-path "../$path" + set path_str [format "\"\${workspace_loc:/%s/%s}\"" $app_name $path] + eval $cmd $app_name include-path [list $path_str] _info "Append included path: $path for $app_name." } }