Reference template to start writing a Trusted Application
Switch branches/tags
Nothing to show
Clone or download
jbech-linaro and jforissier Deprecated and redirect users to optee_examples
Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Latest commit 2cdfd7d Jan 3, 2018

README.md

Hello World - **DEPRECATED**

2018-01-01: This standalone Hello World TA has been deprecated

We have just recently created another git called optee_examples. The code from this Hello World application has been moved into that optee_examples git, so Hello World resides there as one standalone example together with a few other standalone example host/ta pairs. We will keep this git here as a reference in case someone needs it for historical reasons (links pointing here etc).

Description

This is a reference template to start writing a Trusted Application

Presentation

This example has been presented at the Linaro Connect USA 2014. The slides are available here.

Manual Build Instructions

  1. Setup the OP-TEE software stack by following: https://github.com/OP-TEE/optee_os#5-repo-manifests

  2. Clone this repository into $HOME/devel/optee

    git clone https://github.com/linaro-swg/hello_world.git
    cd hello_world
    
  3. Define the toolchains and environment variables:

    export TEEC_EXPORT=$PWD/../optee_client/out/export
    

    If normal world user space is 64-bit:

    export HOST_CROSS_COMPILE=$PWD/../toolchains/aarch64/bin/aarch64-linux-gnu-
    

    If normal world user space is 32-bit:

    export HOST_CROSS_COMPILE=$PWD/../toolchains/aarch32/bin/arm-linux-gnueabihf-
    

    If secure world user space is 64-bit:

    export TA_CROSS_COMPILE=$PWD/../toolchains/aarch64/bin/aarch64-linux-gnu-
    export TA_DEV_KIT_DIR=$PWD/../optee_os/out/arm/export-ta_arm64
    

    If secure world user space is 32-bit:

    export TA_CROSS_COMPILE=$PWD/../toolchains/aarch32/bin/arm-linux-gnueabihf-
    export TA_DEV_KIT_DIR=$PWD/../optee_os/out/arm/export-ta_arm32
    
  4. Build it!

     make