Back
The sections below provide all necessary details to get started.
- Required Tools
- Build Procedure (Linux Build Machine)
Required Tools
VXLIB is installed as part of a larger SDK, which should include or install all the needed tools, so this section lists the dependencies that is expected to come as part of the SDK so that you have the freedom to override if you need.
- Linux Build Machines
- C6000 DSP Code Generation Tools Version 8.3.7 - For building the C66 DSP target binaries.
- C7000 DSP Code Generation Tools Version 3.0.0 - For building the C7120 C7504 DSP target binaries.
- GNU Make - validated using v4.1
- GCC - validated using v7.5.0
- GCC compiler with 32b mode support is required for using VXLIB in 32bit mode (if building in 64 bit mode, you can ignore below)
- Make sure below linux packages are installed. This is required to use GCC in 32b mode on 64b systems.
sudo apt-get install g++-multilib libc6 libc6-dev
- Note
- A "My.TI" account is required for download and can be registered at my.ti.com
|
Build Procedure (Linux Build Machine)
The makefile may be compiled on a Linux build machine using GNU make following the procedure below.
- Open a linux terminal window in the top folder of vxlib
- This installation assumes it was installed as part of a larger SDK, and so the tools_paths.mak file in the top level is pointing to another file in tiovx. If different tools than what is given in the SDK is used, then this file (or the one it points to) can be updated accordingly.
- Set the following environment variables:
- TARGET_CPU: (supports x86_64, C66, C7120, C7504)
- TARGET_PLATFORM: (supports PC, J721E, J721S2, J784S4, AM62A)
- If TARGET_PLATFORM is PC:
- TARGET_SCPU: (supports C66)
- TARGET_BUILD: (supports release, debug)
- Build the makefile (full list of targets can be found by running "make targets")
- Enter
make all to build all supported versions of the the binaries (libraries, regression tests, individual tests).
- Enter
make vxlib to build only the DSP optimized version of the vxlib library needed to link to an application.
- Enter
make vxlib_cn to build only the natural-c version of the vxlib library.
- Enter
make regress to build the full regression tests.
- Enter
make vx/(kernel name) to build the specific kernel unit test
- Enter
make scrub to clean all generated object files and artifacts.
|