| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| README.md | D | 22-Oct-2025 | 773 | 25 | 18 | |
| README_zh.md | D | 22-Oct-2025 | 723 | 25 | 18 | |
| aarch64_toolchain.cmake | D | 22-Oct-2025 | 1 KiB | 22 | 18 | |
| arm_toolchain.cmake | D | 22-Oct-2025 | 1 KiB | 22 | 18 | |
| common.cmake | D | 22-Oct-2025 | 1.8 KiB | 51 | 42 | |
| common_flags.cmake | D | 22-Oct-2025 | 2 KiB | 81 | 78 | |
| llvm_toolchain.cmake | D | 22-Oct-2025 | 1.3 KiB | 32 | 27 | |
| security_features.cmake | D | 22-Oct-2025 | 960 | 28 | 26 |
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