Nios® II Software Developer Handbook

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

8.8.5.3.5. Setting Generation Name

The setting generationName of add_sw_setting controls the physical name of the setting in the generated BSP files. The physical name corresponds to the definition being created in public.mk and system.h, or the make variable created in the BSP Makefile. The generationName is commonly the text that your software uses in conditionally-compiled code. For example, suppose your software creates a buffer as follows:

unsigned int driver_buffer[MY_DRIVER_BUFFER_SIZE];

You can enter the exact text, MY_DRIVER_BUFFER_SIZE, in the generationName argument.