Build failed
Build runtime library with below command: % export ARM_CPU=cortex-m33 % export COMPILER_TYPE=armclang % cd cryptocell-rt % ./prepare_mbedtls.sh clone % ./prepare_mbedtls.sh lib % cd – % make -C cryptocell-312-runtime/host/src ARM_CPU=$ARM_CPU
We will encounter the following issue:
- prepare_mbedtls.sh: Permission denied
Need add
chmod +x prepare_mbedtls.sh - Cross toolchain not correct
make[1]: Entering directory '/home/qixxu01/workspace/arm/cc312/cryptocell-312-runtime/host/src/cc3x_lib' FE TRNG: CC_CONFIG_TRNG_MODE=0 [CC] cc_lib.c --> build-ppc_4xx/cc_lib.o /bin/bash: ppc_4xx-gcc: command not found
Then add export CROSS_COMPILE=~/tools/arm-m/bin/arm-none-eabi- can't fixed this issue.
Try to add export ARCH=arm and encounter the following issue:
/workspace/arm/cc312/cryptocell-312-runtime/host/../shared/include/pal/linux/cc_pal_types_plat.h:29:10: fatal error: endian.h: No such file or directory #include <endian.h> ^~~~~~~~~~ compilation terminated.
Could you please help to give us more information? Thanks.
Please `export CORTEX=cortex-m33
export CROSS_COMPILE=armclang`
NOTE: If you want to select "armclang" as the compiler, the default TEE OS is Freertos. So you also need arm Freertos source code. If you don't have Freertos, and try to integrate CC312 runtime library to no_os, you can use the command "make -C host/src TEE_OS=no_os" to build it.