-
Notifications
You must be signed in to change notification settings - Fork 156
Travis and TI's AM335x SDK
In order to cross-compile macchina.io on Travis for ARM, we use the TI AM335x SDK (version 8.00), which can be found at http://downloads.ti.com/sitara_linux/esd/AM335xSDK/latest/exports/ti-sdk-am335x-evm-08.00.00.00-Linux-x86-Install.bin. In case you're asking: compiling with Ubuntu's g++-arm-linux-gnueabihf does not work due to a missing header.
However, the original installer is over 1 GB in size and would take about 35 minutes to download and install on Travis, each time a build is started. Therefore, we have extracted the necessary parts from the installed SDK and put them into a gzipped TAR file (160 MB) that is downloaded and extracted by Travis.
In order to create this archive (which may need to be done again if a new version of the SDK comes out, or something in the Travis build directory structure changes), the following steps must be performed.
- On an Ubuntu system, create a user account "travis" with home directory "/home/travis".
- su travis, cd /home/travis
- Download the SDK installer
- Run the installer, and install to "/home/travis/build/macchina-io/macchina.io/ti-am335x-sdk".
- In the ti-am335x-sdk directory, delete everything except "linux-devkit/sysroots/".
- tar cfz ti-am335x-sdk.tgz ti-am335x-sdk
- Publish ti-am335x-sdk.tgz on http://macchina.io/files/travis/ti-am335x-sdk.tgz