commit | 029d583642ed62b833952ccb7125738f06918c8e | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome.forissier@linaro.org> | Fri Apr 20 10:48:13 2018 +0200 |
committer | Jérôme Forissier <jerome.forissier@linaro.org> | Fri Apr 20 11:39:09 2018 +0200 |
tree | 02de605aff02dd0895999cb061b8042364c4f67b | |
parent | 1d7d9ad8565044715a1574818e392a3d8b7e1c85 [diff] |
Use "make --no-builtin-variables" to build client applications Commit 1d7d9ad85650 ("host/Makefiles: Allow CC variable to be derived from env") changed the client application Makfiles so that $(CC) will not be modified if already set. The intent was to take into account the values derived from the environment or the command line. Unfortunately, the "?=" syntax will also consider 'default' (built-in) variables as shown in this example: $ cat Makefile $(info CC=$(CC) origin: $(origin CC)) CC ?= foo $(info CC=$(CC) origin: $(origin CC)) all: $ make CC=cc origin: default CC=cc origin: default make: Nothing to be done for 'all'. As a result, unless CC is specified via the environment or the command line, its value defaults to 'cc' which is not what we want for cross compilation. This commit fixes the issue in a similar way to optee_test, by disabling built-in variables. This in turn requires adding explicit compilation rules (%.o: %.c). Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Fixes: 1d7d9ad85650 ("host/Makefiles: Allow CC variable to be derived from env") Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
This document describes the sample applications that are included in the OP-TEE, that aim to showcase specific functionality and use case.
For sake of simplicity, all OP-TEE example test application are prefixed with optee_example_
.
Directory hello_world/:
optee_example_hello_world
Directory random/:
TEE_GenerateRandom()
).optee_example_random
Directory aes/:
optee_example_aes
TA basics documentation presents the basics for implementing and building an OP-TEE trusted application.
One can also refer to the examples provided: source files and make scripts.