Specifications
• --remove-src-rdir <directory>: Same as --remove-src-dir option but recursively search for
source files in or under <directory>. Multiple --remove-src-rdir options are allowed and can be
freely mixed with --src-dir options.
• --set <name> <value>: Set the value of a Makefile variable called <name>
• --set-asflags <value>: Set user assembler flags
• --set-bsp-dir <directory>: Set the BSP generated files directory
• --set-debug-level <value>: Set debug level flag
• --set-defined-symbols <value>: Set defined symbols flag
• --set-elf-name <name>: Set the name of .elf file
• --set-optimization <value>: Set optimization flag
• --set-undefined-symbols <value>: Set undefined symbols flag
• --set-user-flags <value>: Set user flags
• --set-warnings <value>: Set warnings flag
• --show-managed-section: Show the managed section in the Makefile
• --show-names: Show name of the variables
• --silent: Suppress information about the command's operation normally sent to stdout.
• --unlock: Unlock the Makefile
• --verbose: Output verbose, and default information about the command's operation to stdout.
• --version: Displays the version of this command and exits with a zero exit status.
Description
The nios2-app-update-makefile command updates an application makefile to add or remove source files.
If no command-line arguments are specified, this command returns an exit value of 1 and sends a help
message to stderr.
Note:
The --add-src-dir, --add-src-rdir, --remove-src-dir, and --remove-src-rdir options add
and remove files found in <directory> at the time the command is executed. Files subsequently
added to or removed from the directory are not reflected in the makefile.
Note: For more information about this command, use the --extended-help option to display
comprehensive usage information.
nios2-lib-update-makefile
Usage
nios2-lib-update-makefile --lib-dir <directory>
[--add-lib-dir <directory>] [--add-public-inc-dir <directory>]
[--add-src-dir <directory>] [--add-src-files <filenames>]
[--add-src-rdir <directory>] [--debug] [--extended-help] [--force]
[--get <name>] [--get-all] [--get-asflags] [--get-bsp-dir]
[--get-debug-level] [--get-defined-symbols] [--get-lib-name]
[--get-optimization] [--get-undefined-symbols] [--get-user-flags]
[--get-warnings] [--help] [--list-lib-dir] [--list-public-inc-dir]
[--list-src-files] [--lock] [--log <filename>] [--no-src]
15-12
nios2-lib-update-makefile
NII5V2
2015.05.14
Altera Corporation
Nios II Software Build Tools Reference
Send Feedback