ocpixml — command-line tool for managing artifact description XML in OpenCPI artifact files
The ocpixml(1) command-line tool is used to manage the artifact
description XML that exists inside an OpenCPI artifact
file generated by the ocpidev(1) build operation.
The artifact description XML describes the contents of
an executable binary (an artifact resulting from building
an RCC or HDL worker or a component unit test)
or a "bitstream" executable (an artifact resulting from
building an HDL assembly)
and is attached during the build process to the generated
executable or bitstream (.bitz or .gz) artifact file.
The ocpixml tool is used to manipulate
the artifact description XML attached to an artifact file.
The verbs supported by ocpixml are:
add
stdin (indicated with a hyphen) to another
named artifact file.
get
stdout.
strip
--help, -h
--log_level=<level>, -l <level>
OCPI_LOG_LEVEL environment
variable. See ENVIRONMENT VARIABLES in
opencpi(1) for a description
of possible values.
Add the content of the artifact file named myartifact2.bitz to
the artifact file named myartifact1.bitz:
ocpixml add myartifact2.bitz myartifact1.bitz
Add standard input to the artifact file named myartifact1.gz:
ocpixml add - myartifact1.gz
Extract the XML metadata from the artifact file named myartifact1.bitz
and write it to stdout:
ocpixml get myartifact1.bitz
Remove the XML metadata from the artifact file named myartifact1.gz
and copy the results to the artifact file named mynewartifact1.gz:
ocpixml strip myartifact1.gz mynewartifact1.gz