• Home
Name Date Size #Lines LOC

..--

README.mdD22-Oct-2025773 2518

README_zh.mdD22-Oct-2025723 2518

aarch64_toolchain.cmakeD22-Oct-20251 KiB2218

arm_toolchain.cmakeD22-Oct-20251 KiB2218

common.cmakeD22-Oct-20251.8 KiB5142

common_flags.cmakeD22-Oct-20252 KiB8178

llvm_toolchain.cmakeD22-Oct-20251.3 KiB3227

security_features.cmakeD22-Oct-2025960 2826

README.md

1# cmake<a name="EN_US_TOPIC_0000001078026808"></a>
2
3## Introduction
4
5SDK cmake support using both LLVM and GCC toolchain to build Trusted Application.
6
7before building Trusted Application please install target toolchain, and add the toolchain path to system environment.<br>
8for example:<br>
9```
10export PATH="/path/to/toolchains/clang+llvm/bin/":$PATH
11```
12or
13```
14export PATH="/path/to/gcc-linaro-aarch64-linux-gnu/bin/":$PATH
15```
16
17
18we suggest to use LLVM as it support more security compile options, in this SDK it assume LLVM is used by default.
19
20if you need to use GCC to build your Trusted Application,
21please use aarch64_toolchain.cmake in your shell script, as:
22```
23cmake -DCMAKE_TOOLCHAIN_FILE=${TEE_BUILD_PATH}/build/cmake/arm_toolchain.cmake CMakeListsFilePath
24```
25

README_zh.md

1# cmake<a name="ZH-CN_TOPIC_0000001078026808"></a>
2
3## 说明
4SDK cmake支持使用LLVM和GCC工具链来构建可信应用程序。
5
6在构建可信应用程序之前,请安装工具链,并将工具链路径添加到系统环境中。<br>
7例如:<br>
8```
9export PATH="/path/to/toolchains/clang+llvm/bin/":$PATH
10```
11或者
12```
13export PATH="/path/to/gcc-linaro-aarch64-linux-gnu/bin/":$PATH
14```
15
16
17建议使用LLVM,因为它支持更多的安全编译选项,在此SDK中,默认使用LLVM。
18
19如果需要使用GCC来构建可信应用程序,请在shell脚本中使用aarch64_toolchain.cmake。<br>
20例如:
21```
22cmake -DCMAKE_TOOLCHAIN_FILE=${TEE_BUILD_PATH}/build/cmake/arm_toolchain.cmake CMakeListsFilePath
23```
24
25