Merge pull request #2 in PROC_LIBS/mathlib from CATREQ-2702 to master
[ep-processor-libraries/mathlib.git] / readme.txt
1 Instructions to build MATHLIB from source:
3 1. Clone MATHLIB from git://git.ti.com/ep-processor-libraries/mathlib.git 
4    Clone SWTOOLS from git://git.ti.com/ep-processor-libraries/swtools.git
6 2. Make sure following Proc-SDK components are installed:
7    - SYSBIOS
8    - XDC
9    - Code Gen Tools
10    - CCS
12 3. Setup following environment variables (exact version numbers may be different):
13 export SYSBIOS_INSTALL_DIR="<COMPONENTS_INSTALLATION_ROOT>/bios_6_52_00_12"
14 export XDC_INSTALL_DIR="<COMPONENTS_INSTALLATION_ROOT>/xdctools_3_50_03_33_core/"
15 export XDCCGROOT="<COMPONENTS_INSTALLATION_ROOT>/ti-cgt-c6000_8.2.2"
16 export CGTROOT="<COMPONENTS_INSTALLATION_ROOT>/ti-cgt-c6000_8.2.2"
17 export C64PCODEGENTOOL="${CGTROOT}"
18 export C674CODEGENTOOL="${CGTROOT}"
19 export C66CODEGENTOOL="${CGTROOT}"
21 export CCSVERSION="CCSV8"
22 export CCS_INSTALL_DIR="<COMPONENTS_INSTALLATION_ROOT>/ccsv8"
24 export SWTOOLS_INSTALL_DIR="<SWTOOLS git clone root>"
25 export SWTOOLS_PATH="<SWTOOLS git clone root>/ti/mas/swtools"
26 export MATHLIB_ROOT_DIR="<MATHLIB git clone root>"
27 export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
29 export PATH="${XDC_INSTALL_DIR}:${PATH}"
31 export XDCPATH="${XDC_INSTALL_DIR}/packages;${SWTOOLS_INSTALL_DIR};${MATHLIB_ROOT_DIR};${SYSBIOS_INSTALL_DIR}/packages;"
33 4. Build SWTOOLS and then MATHLIB
34    - Go to directory <SWTOOLS_PATH> and issue command "xdc"
35    - Go to directory <MATHLIB_ROOT_DIR>/ti/mathlib and issue one of following commands:
36        - xdc XDCARGS="c66x bundle"
37        - xdc XDCARGS="c674x bundle"