Nios® V Processor Software Developer Handbook

ID 743810
Date 10/31/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

2.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.
-i, --incs=<includes directory> Comma separated list of include directories.
-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).