Specifications
hal.stdin
• Identifier: STDIN
• Type: Unquoted string
• Default Value: none
• Destination File: system.h
• Description: Slave descriptor of STDIN character-mode device. This setting is used by the
ALT_STDIN family of defines in system.h.
hal.stdout
• Identifier: STDOUT
• Type: Unquoted string
• Default Value: none
• Destination File: system.h
• Description: Slave descriptor of STDOUT character-mode device. This setting is used by the
ALT_STDOUT family of defines in system.h.
hal.thread_stack_size
• Identifier: ALT_THREAD_STACK_SIZE
• Type: Decimal number
• Default Value: The default value of lwhal.thread_stack_size is selected by the default Tcl script
launched when a LWHAL BSP is created. lwhal.thread_stack_size is set to 3/4 of the size of the
memory region to which the .stack section is assigned, if the region is shared with other sections (the
default case).
• Destination File: system.h
• Description: Defines stack size for a thread (in bytes). This setting defines the value of
ALT_THREAD_STACK_SIZE in system.h.
• Restriction: none
Application and User Library Makefile Variables
The Nios II SBT constructs application and makefile libraries for you, inserting makefile variables
appropriate to your project configuration. You can control project build characteristics by manipulating
makefile variables at the time of project generation. You control a variable with the --set command line
option, as in the following example:
nios2-bsp hal my_bsp --set APP_CFLAGS_WARNINGS "-Wall"r
The following utilities and scripts support modifying makefile variables with the --set option:
• nios2-app-generate-makefile
• nios2-lib-generate-makefile
• nios2-app-update-makefile
• nios2-lib-update-makefile
• nios2-bsp
Application Makefile Variables
You can modify the following application makefile variables on the command line:
NII5V2
2015.05.14
Application and User Library Makefile Variables
15-61
Nios II Software Build Tools Reference
Altera Corporation
Send Feedback