MATHLIB Build Process

Contents


CCS Build Process

To build any specific kernel for test, benchmarking or to pull in source code changes - just locate the associated project file, load it and run within the CCS environment. The sections below provide all necessary details to get started.

  1. Required Tools
  2. Re-build MATHLIB Library
  3. Build Individual MATHLIB Kernel

The sections that follow detail each item above.

Required Tools

The following tools are required to build MATHLIB using CCS (links provided). Download and install all tools to a single local (C:) directory, for example, c:\ti.

Procedure for MATHLIB

The MATHLIB supports CCSV5.2 & above. The MATHLIB may be built following the procedure below:

  1. Open the CCSv5 application
  2. Import the MATHLIB makefile based project
    • Open the Project menu
    • Select Import Existing Eclipse Project
    • Import from the MATHLIB packages/ti/mathlib/lib directory
  3. Build the project
    • Select Rebuild Active Project from Project menu

Procedure for Individual Kernels

Any individual kernel within MATHLIB may be tested via CCS following the procedure below:

  1. Open the CCSv5 application
  2. Import the MATHLIB kernel unit test project
    • Open the Project menu
    • Select Import Existing Eclipse Project
    • Import from the MATHLIB /packages/ti/mathlib/src/<kernel> directory
  3. Use the Debug profile for debugging kernel unit tests
    • Open the Project menu
    • Select Active Build Configuration and set to Debug/Release
  4. Build and test the project
    • Select Rebuild Active Project from Project menu
    • Test using the proper target configuration

Makefile Build Process

A GNU makefile is also provided for rebuilding MATHLIB via GNU make utility. This file is located in the packages/ti/mathlib folder. The makefile provides a list of all tools, common build utilities and build rules required for generating MATHLIB binary.

Required Tools

The following tools are required to build MATHLIB using GNU make (links provided). Download and install all tools to a single local (C:) directory, for example, c:\ti.

Note
A "My.TI" account is required for download and can be registered at my.ti.com

Procedure for MATHLIB

The MATHLIB may be built using GNU make following the procedure below:

  1. Add cygwin/bin to the environment PATH (Windows only)
  2. Correct the C6x_GEN_INSTALL_DIR path in the makefile (two options)
    • Directly modify the makefile OR
    • Set the C6x_GEN_INSTALL_DIR in the environment with the proper tools path
  3. Build the library
    • Enter make all to build the library
    • Enter make clean to clean all generated object files and artifacts

Copyright 2022, Texas Instruments Incorporated