Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

3.2.1.2. niosv-app

Usage

niosv-app [OPTIONS]

Description

The niosv-app utility is used to create an application project, and you must run make manually to build the Executable and Linking Format File (.elf) for your application.

Table 6.  Use Cases
Use case Example
Create application project which links to a specified BSP niosv-app -a=<application directory> -b=<bsp directory> -s=<source files directory> [OPTIONS]
Create a user library niosv-app -l=<library directory>

-s=<source files directory>

-p=<public includes directory> [OPTIONS]

Table 7.  Basic Options
Options Description
-a, --app-dir=<application directory> The application directory.
-l, --lib-dir=<library directory> The library directory.
-b, --bsp-dir=<bsp directory> The BSP directory.
-L, --link-lib=<linked library directory> Links the application or library to the specified library directory. Can be specified multiple times.
-e, --elf-name=<.elf output file name> The name of the .elf output file. If omitted, the default .elf name is <application directory>.elf.
-s, --srcs=<source files directory> Comma separated list of sources. Can be files or directories. Directories have direct descendant source files included. Specified sources are not copied. They show up with relative path in the CMakeList.txt.
-S, --srcs-recursive=<directory>
  • Same as --srcs option but recursively search for source files in or under <directory> .
  • Allows multiple --srcs-recursive options and can be freely mixed with --srcs options.
-i, --incs=<includes directory> Comma separated list of include directories.
-I, --incs-recursive=<directory>
  • Same as --incs option but recursively search for source include files in or under <directory>.
  • Allows multiple --incs-recursive options.
-p, --public-incs=<public includes directory> Comma separated list of public include directories. This is for libraries to expose public includes (for dependents to #include).