Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

5.2.2.2. Copying, Moving, or Renaming a BSP

BSP CMakeLists.txt has only relative path references to project source files. Therefore, you are free to copy, move, or rename the entire BSP. If you specify a relative path to the Platform Designer system file when you create the BSP, you must ensure that the .qsys file is still accessible from the new location of the BSP. This file path is stored in the BSP settings file.

You must rebuild the BSP when copying, moving, or renaming a BSP before linking an application with the BSP.

Another way to copy a BSP is to run the niosv-bsp --generate command to populate an empty BSP directory and pass it the path to the BSP settings file of the BSP that you want to copy.

If you rename or move a BSP, you must manually revise any references to the BSP name or location in the application or user library CMakeLists.txt.