Nios® II Software Developer Handbook

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

16.6.1. Command Arguments

Many Nios® II software build tool commands take file name and directory path arguments. You can provide these arguments in any of several supported cross-platform formats. The Nios® II SBT supports the following path name formats:
  • Quoted Windows—A drive letter followed by a colon, followed by directory names delimited with backslashes, surrounded by double quotes. Example of a quoted Windows absolute path:"c:\altera\72\nios2eds\examples\verilog\niosII_cyclone_1c20\standard"

    Quoted Windows relative paths omit the drive letter, and begin with two periods followed by a backslash. Example:

    "..\niosII_cyclone_1c20\standard"
  • Escaped Windows—The same as quoted Windows, except that each backslash is replaced by a double backslash, and the double quotes are omitted. Examples:c:\\altera\\72\\nios2eds\\examples\\verilog\\niosII_cyclone_1c20\\standard ..\\niosII_cyclone_1c20\\standard
  • Linux—An optional forward slash, followed by directory names delimited with forward slashes. Examples:/altera/72/nios2eds/examples/verilog/niosII_cyclone_1c20/standard
verilog/niosII_cyclone_1c20/standard

    Linux relative paths begin with two periods followed by a forward slash. Example:

    ../niosII_cyclone_1c20/standard
  • Mixed—The same as quoted Windows, except that each backslash is replaced by a forward slash, and the double quotes are omitted. Examples:c:/altera/72/nios2eds/examples/verilog/niosII_cyclone_1c20/standard../niosII_cyclone_1c20/standard
  • Cygwin—An absolute Cygwin path consists of the pseudo-directory name 
"/cygdrive/", followed by the lower case Windows drive name, followed by directory names delimited with forward slashes. Example:/cygdrive/c/altera/72/nios2eds/examples/verilog/niosII_cyclone_1c20/standard

    Cygwin relative paths are the same as Linux relative paths. Example:

    ../niosII_cyclone_1c20/standard

The Nios® II SBT accepts both relative and absolute path names.

Table 65.  Path Name Format Support for Nios® II SBT utilities and makefiles
Context Formats supported on Linux 17 Formats supported on Windows with Cygwin
Utilities and scripts Linux
  • Quoted Windows 18
  • Mixed
  • Escaped Windows
  • Cygwin
Makefiles Linux
  • Mixed19
  • Cygwin
17 These rules apply to any Unix-like platform.
18 These rules apply to other Unix-like shells running on Windows. The Nios® II Command Shell, provided with the Nios® II EDS, is based on Cygwin. Examples in this chapter are designed for the Nios® II Command Shell.
19 The build tools automatically convert path names to Cygwin format.