Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

5.7.3.3. How to Update Your BSP

You can update your BSP at the command line. You have the option to use a Tcl script to control your BSP settings.

From the command line, use the nios2-bsp-update-settings command. You can use the --script option to define the BSP with a Tcl script.

For more information about the nios2-bsp-update-settings command, refer to the " Nios® II Software Build Tools Reference" chapter.

nios2-bsp-update-settings does not reapply default settings unless you explicitly call the top-level default Tcl script with the --script option.

For more information about using the default Tcl script, refer to the “Specifying BSP Defaults” chapter.

Alternatively, you can update your BSP with the nios2-bsp script. nios2-bsp determines that your BSP already exists, and uses the nios2-bsp-update-settings command to update the BSP settings file.

The nios2-bsp script executes the default Tcl script every time it runs, overwriting previous default settings.

For more information about preserving all settings, including the default settings, use the DONT_CHANGE keyword, described in the “Top Level Tcl Script for BSP Defaults” chapter.

Alternatively, you can provide nios2-bsp with command-line options or Tcl scripts to override the default settings.

For more information about using the nios2-bsp script, refer to the " Nios® II Software Build Tools Reference" chapter.