Specifications
• nios2-lib-generate-makefile on page 15-9
• nios2-bsp-editor on page 15-10
• nios2-app-update-makefile on page 15-10
• nios2-lib-update-makefile on page 15-12
• nios2-swexample-create on page 15-14
• nios2-elf-insert on page 15-15
• nios2-elf-query on page 15-16
• nios2-bsp on page 3-2
• nios2-bsp-console on page 15-21
nios2-app-generate-makefile
Usage
nios2-app-generate-makefile [--app-dir <directory>]
--bsp-dir <directory> [--debug]
[--elf-name <filename>] [--extended-help] [--help]
[--log <filename>] [--no-src] [--set <name> <value>]
[--silent] [--src-dir <directory>]
[--src-files <filenames>] [--src-rdir <directory>]
[--use-lib-dir <directory>] [--verbose]
[--version]
Options
• --app-dir <directory>: Directory to place the application makefile and executable and linking
format file (.elf). If omitted, it defaults to the current directory.
• --bsp-dir <directory>: Specifies the path to the BSP generated files directory (populated using the
nios2-bsp-generate-files command).
• --debug: Output debug, exception traces, verbose, and default information about the command's
operation to stdout.
• --elf-name <filename>: Name of the .elf file to create. If omitted, it defaults to the first source file
specified with the file name extension replaced with .elf and placed in the application directory.
• --extended-help: Displays full information about this command and its options.
• --help: Displays basic information about this command and its options.
• --log <filename>: Create a debug log and write to specified file. Also logs debug information to
stdout.
• --no-src: Allows no sources files to be set in the Makefile. You must add source files in manually
before compiling
• --set <name> <value>: Set the makefile variable called <name> to <value>. If the variable exists in
the managed section of the makefile, <value> replaces the default settings. If the variable does not
already exist, it is added. Multiple --set options are allowed.
• --silent: Suppress information about the command's operation normally sent to stdout.
• --src-dir <directory>: Searches for source files in <directory>. Use . to look in the current
directory. Multiple --src-dir options are allowed.
• --src-files <filenames>: Adds a list of space-separated source file names to the makefile. The list of
file names is terminated by the next option or the end of the command line. Multiple --src-files
options are allowed.
• --src-rdir <directory>: Same as --src-dir option but recursively search for source files in or
under <directory>. Multiple --src-rdir options are allowed and can be freely mixed with --src-dir
options.
NII5V2
2015.05.14
nios2-app-generate-makefile
15-3
Nios II Software Build Tools Reference
Altera Corporation
Send Feedback