OP-TEE / build

Makefiles to use OP-TEE on various platforms
109 stars 218 forks source link

toolchain.mk: add clang-toolchains-build to build Clang from sources #765

Closed jforissier closed 4 months ago

jforissier commented 5 months ago

Add a makefile target to download and build the Clang 18.1.7 sources and install the compiler into /toolchains/clang-18.1.7/bin.

Usage example:

$ make clang-toolchains-build $ PATH=$(pwd)/../toolchains/clang-18.1.7/bin:$PATH \ make -j$(nproc) COMPILER=clang check

The Clang build takes some significant time (about 12 minutes on my machine, a 24-core Intel Core i9-12900K) so may want to store a pre-built package somewhere in the future and have "make clang-toolchains" download that package. In the mean time, this new target allows to test OP-TEE with a recent LLVM toolchain.

jenswi-linaro commented 5 months ago

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>