In the following instructions, keep in mind that I'm using an
install prefix of ~/ti
as a placeholder while I attempt to bring on
OpenCL by hand. That, and some other paths will be replaced with
Buildroot-specific install directories later on.
wget http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/8.2.2/ti_cgt_c6000_8.2.2_linux_installer_x86.bin
chmod +x ti_cgt_c6000_8.2.2_linux_installer_x86.bin
# NOTE: this will not terminate due to some bug in TI's installer.
# Run without --mode unattended' so you can see when it's safe to kill the process.
./ti_cgt_c6000_8.2.2_linux_installer_x86.bin --prefix ~/ti --mode unattended
wget http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/3_50_07_20/exports/xdccore/xdctools_3_50_07_20_core_linux.zip
unzip xdctools_3_50_07_20_core_linux.zip -d ~/ti
wget http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/16.9.2.LTS/ti_cgt_tms470_16.9.2.LTS_linux_installer_x86.bin
chmod +x ti_cgt_tms470_16.9.2.LTS_linux_installer_x86.bin
./ti_cgt_tms470_16.9.2.LTS_linux_installer_x86.bin --prefix ~/ti --mode unattended
mkdir ti-llvm
cd ti-llvm
git clone --single-branch --branch release_36_ti --depth 1 git://git.ti.com/opencl/llvm.git
git clone --single-branch --branch release_36_ti --depth 1 git://git.ti.com/opencl/clang.git llvm/tools/clang
# Keep the j[obs] number low here or you'll incure the wrath of Linux's OOM killer
make -j4 -f llvm/Makefile.ti all.x86
make -j4 -f llvm/Makefile.ti all.arm
git clone git://git.ti.com/opencl/ti-opencl.git
cd ti-opencl
git checkout v01.01.17.01
PATH=$PATH:~/nextgate/rootfs/output/host/bin \
USE_EXTERNAL_FW_REPO=1 \
BUILD_EVE_FIRMWARE=0 \
XDC_DIR=~/ti/xdctools_3_50_07_20_core \
TI_OCL_CGT_INSTALL=~/ti/ti-cgt-c6000_8.2.3 \
TI_OCL_M4_CGT_INSTALL=~/ti/ti-cgt-arm_16.9.2.LTS \
LINUX_DEVKIT_ROOT=~/nextgate/rootfs/output/host \
X86_LLVM_DIR=~/repos/ti-llvm/install.x86 \
ARM_LLVM_DIR=~/repos/ti-llvm/install.arm \
DESTDIR=~/ti/ocl-build \
make BUILD_AM57=1