ocpidev-build — compiles OpenCPI assets
The build verb compiles (or performs the equivalent operation for the asset)
the OpenCPI assets specified by the noun used
in the command. If no nouns are provided, ocpidev builds the asset
represented by the current directory. When the plural version of the nouns are used, no name is
specified and all assets of that type under the current directory are built.
Asset types to be specified in the <noun> argument are:
application(s)
applications) or a specific ACI application.
hdl
A prefix to indicate an HDL asset in the hdl subdirectory of a project. Possible HDL assets are:
assembl(y|ies)
device
platform(s)
primitive(s)
Build all HDL primitives or a specified HDL primitive of a specified type. For a specified HDL primitive, possible HDL primitive types are:
core
library
librar(y|ies)
project
test(s)
worker(s)
Unless suppressed by options, the build verb builds
both the assets and their OpenCPI asset documents.
See the OpenCPI Documentation Writer Guide for details on OpenCPI asset documents.
In addition to the options common to all OpenCPI tools (see opencpi(1)),
the options below can be specified for the build verb.
These options are primarily used to limit what is built
(focus the build process on specific assets of interest), or specify the
platforms and targets to build the assets for.
In the following descriptions, a plus sign (+) after the option indicates that it can be specified more than once on the command line.
--doc-only
--no-doc
--hdl-assembly=<hdl-assembly>+
hdl/assemblies/ directory.
--no-assemblies
--hdl
--rcc
--worker=<worker>+
--worker option differs from the
worker noun: the noun is used to build
a single worker, while the --worker option is used
to limit the build to an individual worker (or a list of
workers if --worker option is specified
multiple times) when building a project or library.
If the --worker option is not used,
all workers in a project or library are built.
--hdl-rcc-platform=<platform>+
--rcc-platform
<platform> is also not used), the current development software
platform is used as the single RCC platform used for building.
--rcc-platform=<platform>+
--hdl-rcc-platform=<platform> is also not used),
the current development software platform is used as the single
RCC platform used for building.
--optimimize
--hdl-platform=<hdl-platform>+
--hdl-target=<target>+
-l <library>, --library=<library>
components library. Note that the library noun differs
from the -l option in that the library noun is used when
building the library itself, while the -l option is used when
building an asset inside a library.
Build the current asset or directory and those underneath it, both
assets and asset documents,
for the zed HDL platform and the xilinx19_2_aarch32 RCC platform.
ocpidev build --hdl-platform=zed --rcc-platform=xilinx19_2_aarch32
Build only the asset documents the assets project.
Omit the name assets if inside the assets project.
ocpidev build project assets --doc-only
Inside the assets project, build the complex_mixer.hdl
worker and its asset document in the dsp_comps library
and build the worker for the zed HDL platform.
ocpidev -l dsp_comps build worker complex_mixer.hdl
--hdl-platform=zed
Inside the assets project, build the dsp_comps library
for the zed HDL platform and xilinx19_2_aarch32 RCC platform
and do not build any asset documents.
ocpidev build library dsp_comps --hdl-platform=zed
--rcc-platform=xilinx19_2_aarch32
--no-doc
Inside the assets project, build the dsp_comps library,
but limit the build to the complex_mixer.hdl and
cic_dec.hdl workers.
ocpidev build library dsp_comps --worker=complex_mixer.hdl
--worker=cic_dec.hdl
--hdl-platform=zedSee the main web site: <www.opencpi.org>
See the OpenCPI Application Development Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Application_Development_Guide.pdf
See the OpenCPI Component Development Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Component_Development_Guide.pdf
See the OpenCPI HDL Development Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_HDL_Development_Guide.pdf
See the OpenCPI Platform Development Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Platform_Development_Guide.pdf
See the OpenCPI RCC Development Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_RCC_Development_Guide.pdf
See the OpenCPI Documentation Writer Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Documentation_Writer_Guide.pdf