Nios® II Software Developer Handbook

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

16.4. 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