21.3.8 change_all_links

Description

This Tcl command changes the source of all the linked files in your project.

change_all_links -current_path {current source path} \
                 -new_path {new source path}

Arguments

ParameterTypeDescription
current_pathstringCurrent source path of linked files. It is mandatory.
new_pathstringNew source path of linked files. It is mandatory.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneNo files are linked in the project from the specified current path. Please check the path.
NoneParam 'new_path' should not be empty.
NoneParameter 'new_path' has illegal value.
NoneRequired parameter 'new_path' is missing.
NoneParameter 'current_path' has illegal value.
NoneRequired parameter 'new_path' is missing.
NoneParameter 'param_name' is not defined. Valid command formatting is 'change_all_links -current_path "current_path" -new_path "new_path"'.

Supported Families

Supported Families
PolarFire®
PolarFire SoC
RTG4
SmartFusion® 2
IGLOO® 2

Example

Change the source of all the link files in project from “./src/link_source_old” to “./src/link_source_new”

change_all_links -current_path {./src/link_source_old} \
                 -new_path {./src/link_source_new }