Files
liyuxuan_hw 538d316fa5 导出musl库依赖
Signed-off-by: liyuxuan_hw <447978021@qq.com>
2025-07-15 21:21:57 +08:00
..
2022-03-18 14:18:38 +08:00
2022-03-18 14:18:38 +08:00
2025-07-03 14:33:44 +08:00
2025-07-15 21:21:57 +08:00
2022-03-18 14:18:38 +08:00
2022-04-04 10:33:49 +08:00
2022-04-04 10:33:49 +08:00
2025-07-03 14:33:44 +08:00

cmake

Introduction

SDK cmake support using both LLVM and GCC toolchain to build Trusted Application.

before building Trusted Application please install target toolchain, and add the toolchain path to system environment.
for example:

export PATH="/path/to/toolchains/clang+llvm/bin/":$PATH

or

export PATH="/path/to/gcc-linaro-aarch64-linux-gnu/bin/":$PATH

we suggest to use LLVM as it support more security compile options, in this SDK it assume LLVM is used by default.

if you need to use GCC to build your Trusted Application, please use aarch64_toolchain.cmake in your shell script, as:

cmake -DCMAKE_TOOLCHAIN_FILE=${TEE_BUILD_PATH}/build/cmake/arm_toolchain.cmake CMakeListsFilePath