NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Customizing CCS Installation
Contents
Overview[edit]
This topic will show how you can add your own supplemental installers to the CCS installation and have them be automatically installed. This capability is most commonly used by people creating development bundles that include CCS. By using this feature you can have CCS automatically install additional examples, documentation or drivers that are needed for the development kit.
Customizing CCS Installation supports both Windows and Linux platforms. It provides two ways to launch supplemental installers.
CCS Compatible Installer[edit]
If you have an InstallJammer installer built according to TI Code Composer Studio component installer specifications, the main CCS installer will pass /y and /prefix options, and the base directory information to the custom installer. The user will be asked to confirm install destination for each of the supplemental installers. This method is only used by a few closely integrated TI 3rd party partners.
Any executable Installer[edit]
In order to install a custom installer that does not follow the TI Code Composer Studio component installer specifications, you need a custom script for each operating system with a .bat or .sh extension, which will run the installer. The CCS installer exports the following environment variables, which can be used in custom install scripts.
EXTRASDIR:The extras folder on the same level as the CCS installer.
INSTDIR: The install location for CCS. This is the install directory chosen by the user, with ccsv<version> appended. e.g. /opt/ti/ccsv5.
ISACMD: The ISA command options to be turned off (i.e /noc2400 /noc2800 /noc5400 /noc5500 /noc6000 /noarm /npomap /nousb /nopp etc).
Please note, this can also be used to turn off documentation by using the option /nodoc.
UPDATENAME: It is the value passed to /updatename option [for update only]
ECLIPSEDIR: Location where eclipse is installed. For CCS 5.0 and up only.
CCS_BASE: The CCS base directory name where Simulation, Emulation, and Debug Server are installed. For CCS 5.0 and up only. e.g. ccs_base_5.0.2.00015
Note: In order to get the full path to ccs_base, you will need to combine INSTDIR and CCS_BASE e.g. %INSTDIR%\%CCS_BASE% or ${INSTDIR}/${CCS_BASE}
Supplemental Installer Source[edit]
In order to setup custom installation, create an "extras" folder on the same level as the CCS installer and the "install_images" folder.
Supplemental installers created according to CCS component installer specifications, and requiring no additional parameters other than those described above, have to be stored in the "extras" folder.
Supplemental installers not created according to CCS component installer specifications must be stored in a subfolder of the "extras" folder. You must provide a script with a .bat or .sh extension to run the installer. The custom script must be stored in the "extras" folder.
Any installers requiring a script to be installed have to be stored in a subfolder of the "extras" folder. The custom script that runs the installer must be stored in the "extras" folder.
Please ensure that execute permissions are set correctly on all scripts and installers in the "extras" folder.
Structure of the "extras" folder[edit]
| setup_CCS_4.n.n.nnnnn.exe | +---extras | | run1.bat | | run2.sh | | IJcompatible-installer1.exe | | IJcompatible-installer2.bin | | | +---sub1 | | installer1.exe | \---sub2 | installer2.bin | \---install_images | package.properties | README_FIRST.txt +---bios +---ccscore +---cgt +---emulation +---jre +---msp430 +---msvc +---simulation +---xdais \---xdctools |
Writing Custom Install Scripts[edit]
Sample Custom CCS Installation Commands
[edit]
Windows batch file:[edit]
@echo off rem -- Refer to http://processors.wiki.ti.com/index.php/Customizing_CCS_Installation for full details on how to use this folder. rem rem rem -- The main installer will pass the following arguments to component installer as environment variables rem -- EXTRASDIR: The extras folder on the same level as the CCS installer. rem -- Please note, in case the extras folder is on read-only media (e.g. DVD), the main installer will make a copy of it to %TEMP%. This copy will be deleted after the installation is complete. rem -- INSTDIR: The install location for CCS. This is the install directory chosen by the user, with ccsv<version> appended. e.g. c:\program files\TI\ccsv5. rem -- ISACMD: The ISA command options to be turned off (i.e /noc2400 /noc2800 /noc5400 /noc5500 /noc6000 /noarm /npomap /nousb /nopp etc). rem -- Please note, this can also be used to turn off documentation by using the option /nodoc. rem -- UPDATENAME: It is the value passed to /updatename option [for update only] rem -- ECLIPSEDIR: Location where eclipse is installed. For CCS 5.0 and up only. rem -- CCS_BASE: The CCS base directory name where Simulation, Emulation, and Debug Server are installed. For CCS 5.0 and up only. e.g. ccs_base_5.0.2.00015 rem -- Samples of install command with IDE installer rem -- if installer supports ISA installation rem -- if installer does not support ISA use one of commands below. rem -- debug mode install rem -- update install rem -- Eclipse binary location - Only for 5.0 and up. rem -- Base install location for Simulation, Emulation, and Debug Server - Only for 5.0 and up. |
Linux Shell Script:
[edit]
#!/bin/sh # Refer to http://processors.wiki.ti.com/index.php/Customizing_CCS_Installation for full details on how to use this folder.
|
The script templates are just a reference. Users have full flexibility to write their own custom install scripts.
For example, the following command will install a tar file to the specified location on Linux.
tar -xvzf "$EXTRASDIR"/installer.tar.gz -C "${INSTDIR}/{some where}" |
Using Customizing CCS Installation[edit]
Custom installations will start after all CCS install actions are complete and before you see the "CCS Installation Complete" pane.
CCS Compatible Installer[edit]
For InstallJammer installers that are built according to TI Code Composer Studio component installer specifications, with .exe or .bin extension, the main CCS installer will pass /y and /prefix options, and the base directory information to the custom installer. The user will be asked to confirm the install destination for each of the supplemental installers.
Any executable Installer[edit]
For installers that are not built according to TI Code Composer Studio component installer specifications, the CCS installer will run the custom install scripts.
After custom installs are completed, the user will see the "CCS Installation Complete" pane.
Note: If the CCS installer is run in a non-standard mode, CCS installation would still install supplemental installers, but the user would not see any message boxes, or GUI windows.