Telematics SDK - User Guide  v1.43.0
Building Yocto Platform SDK

This section has instructions to build a yocto platform SDK using code aurora forum (CAF) / open source

  • These instructions are applicable for QTI Processor builds only, For external APs the platform SDK corresponding to specific external AP would have to be used.

NOTE: This is not to be confused with the Telematics SDK. The Yocto platform SDK, includes the tool chain, and libraries necessary to be able to develop any program for a given device. It also includes the stub open source libraries for the Telematics SDK, allowing one to develop application using the Telematics SDK's APIs as well.

You need to have the following in order to proceed:

  • Linux Ubuntu 14.04
  • Install required packages
    1 $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
    2 build-essential chrpath socat libsdl1.2-dev xterm

Get Started

  • Sync the CAF build

    repo init and sync the sources

    1 $ repo init -q -u git://codeaurora.org/quic/le/le/manifest.git -b release -m <caf_ insert label here. xml>
    2 $ repo sync -j 32

    For example: Using AU label
    repo init -q -u git://codeaurora.org/quic/le/le/manifest.git -b release -m caf_AU_LINUX_EMBEDDED_LE.UM.4.1.1_RB1_TARGET_ALL.01.147.055.xml
    or using CRM build-id label
    repo init -q -u git://codeaurora.org/quic/le/le/manifest.git -b release -m LE.UM.4.1.1-05510-sa515m.xml

    NOTE: AU_LINUX_EMBEDDED_LE.UM.4.1.1_RB1_TARGET_ALL.01.147.055 should be replaced to the AU tag corresponding to the desired device build. "caf_" needs to be prefixed to the AU label.

    The tags are listed here - https://source.codeaurora.org/quic/le/le/manifest/refs/tags

  • Update Telux and Telematics SDK

    Add the following lines at the end of poky/build/conf/local.conf:

    For all targets except LE.UM.1.3.r5, use

    1 CORE_IMAGE_EXTRA_INSTALL += "telux"
    2 CORE_IMAGE_EXTRA_INSTALL += "telux-lib"

    NOTE: For LE.UM.1.3.r5 target, use below.

    1 CORE_IMAGE_EXTRA_INSTALL += "telux"
    2 CORE_IMAGE_EXTRA_INSTALL += "telephony-lib"
  • Setup the build environment

    Source the bitbake environment

    1 $ cd poky/
    2 $ source build/conf/set_bb_env.sh

    Set MACHINE and DISTRO values
    For LE.UM.3.2.1, Use:

    1 $ export MACHINE=sa415m
    2 $ export DISTRO=auto

    For LE.UM.4.1.1, Use:

    1 $ export MACHINE=sa515m
    2 $ export DISTRO=auto

    For LE.UM.3.2.3, Use:

    1 $ export MACHINE=sa2150p
    2 $ export DISTRO=msm
  • Build and install the Yocto Platform SDK

    Run the following command to create a yocto platform sdk

    1 $ bitbake core-image-minimal -c do_populate_sdk

    NOTE: core-image-minimal provides least number of packages including telematics sdk, sufficient for allowing one to develop application using the telematics sdk API's. Any additional packages necessary for application development might need to be added in yocto platform (bitbake) before the build.

  • Location of Yocto Platform SDK

    After successful compilation, you will have have sdk installer on this location

    1 poky/build/tmp-glibc/deploy/sdk/oecore-x86_64-<arch_name_here>-toolchain-nodistro.0.sh

    For LE.UM.3.2.1, it will be generated with name poky/build/tmp-glibc/deploy/sdk/oecore-x86_64-armv7at2hf-neon-toolchain-nodistro.0.sh