Environment Variables used in Component Development
All OpenCPI environment variables start with the prefix OCPI_. While some defined variables apply only to certain authoring models or targets, a master list is kept here. Some may be described as documented elsewhere.
There also may be environment variables starting with OCPI_ that are used internal to OpenCPI and not documented for users.
In the table below, environment variables that are boolean options have the value 0 or 1. When they are unset, or set to the empty string, it is equivalent to the value 0.
In the table below a list means a white-space-separated list of items. A path means a colon-separated list of directories. All these variables have commonly used defaults so that most users have very few settings.
Most of the items are set at installation time, several are simply convenience variables derived from others. The ones that a developer might actually set during development are shaded.
Name |
When set? |
Data type |
Description |
|
install |
directory |
Top level directory for all Altera tools.
Default: |
|
install |
directory |
Directory under |
|
install |
directory |
Directory for using Altera tools.
Default:
|
|
install |
file |
Altera license file. Default:
|
|
install |
directory |
Directory for Altera development kits.
Default is
|
|
build |
boolean |
Enable assertions in any language (when
!= 1, for C and C++, sets NDEBUG).
Default: |
install |
directory |
The root of the installed CDK. Default:
|
|
|
build |
list |
Flags when compiling C code. Default set per target, but may be overridden. |
|
build |
list |
Flags when compiling C++ code. Default set per target, but may be overridden. |
|
build |
boolean |
Controls debug logging, etc. For C and
C++, enables “-g” also, or if not set,
-O2.
Is defined as a preprocessor macro for
core software or executables. Default:
|
|
build |
boolean |
For main programs and software libraries:
use dynamic linking and dynamic
libraries. For software components, build
for use in dynamic executables. Currently
only |
run |
path |
Runtime search path for binary artifacts. Default: for applications in projects: current and depended-on project artifacts Default: for unit tests: a unit test’s own generated artifacts and the core project’s artifacts |
|
|
install |
directory |
Location for using prerequisites, default
locations for building and installing
prerequisites.
Default: |
build |
directory |
Location of current project registry, overriding the default in the OpenCPI installation. |
|
run |
number |
To override size in bytes of data plane
endpoints. Default: |
|
|
build |
string |
The platform on which the current
environment is executing.
Automatically determined by the
|
|
build |
String |
The default target software platform to build for. |
|
install |
directory |
Top level directory for all Xilinx tools.
Default is from Xilinx: |
|
install |
directory |
Directory under |
|
install |
directory |
Directory for using Xilinx tools.
Default:
|
|
install |
file |
Xilinx tool license file. Default is:
|
|
Install |
directory |
Where a Xilinx Lab Tools installation is,
default is |