Nios® II Software Developer Handbook

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

5.4.3.2. Querying Settings

If you need to write a script that gets some information from the BSP settings file, use the nios2-bsp-query-settings utility. To maintain compatibility with future releases of the Nios® II EDS, avoid developing your own code to parse the BSP settings file.

If you want to know the value of one or more settings, run nios2-bsp-query-settings with the appropriate command-line options. This command sends the values of the settings you requested to stdout. Just capture the output of stdout in some variable in your script when you call nios2-bsp-query-settings. By default, the output of nios2-bsp-query-settings is an ordered list of all option values. Use the -show-names option to display the name of the setting with its value.

For more information about the nios2-bsp-query-settings command-line options, refer to the Nios® II Software Build Tools Reference section.