Nios® II Software Developer Handbook

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

3.13.10.1. Build Configurations in SBT

Application and library makefile are enhanced to support multiple build configurations. There are new command line options in nios2-app-update-makefile and nios2-lib-update-makefile for creating, deleting and updating build configurations.

These command line options are:

Table 13.  New Command Line Options
Option Description
--add-build-config <config> <base>

Adds a new build configuration with the name <config>, initializes the new build configuration using an existing build configuration named <base>.

<base> is optional and defaults to the active configuration. <base> is always ignored if only one build configuration is available.
--remove-build-config <config>

Removes an existing build configuration.

No effect if only one build configuration is available.
--list-build-config <config>

Returns name of all build configurations.

Returns empty string if only one build configuration is available.
--get-active-build-config

Returns the name of active build configuration.

Returns empty string if only one build configuration is available.
--set-active-build-config <config>

Set the build configuration named <config> active.

No effect if only one build configuration is available.
--build-config <config>

Only use (read or modify) the build configuration named <config> but do not set it as the active build configuration.

No effect if only one build configuration is available.
Note: These new options are optional and can be used together with all existing nios2-app-update-makefile and nios2-lib-update-makefile command line options.
Note: The BSP makefile does not support multiple build configurations.