mirror of
https://github.com/openharmony/tee_tee_dev_kit.git
synced 2026-08-24 19:13:10 -04:00
538d316fa5
Signed-off-by: liyuxuan_hw <447978021@qq.com>
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