Hello,
I am following the instructions listed here: https://software-dl.ti.com/processor-sdk-linux/esd/AM64X/08_02_00_14/exports/docs/linux/Foundational_Components_OPTEE.html to build optee.
The build command is incorrect:
it should be
on GP $ make CROSS_COMPILE64=aarch64-none-linux-gnu- PLATFORM=k3-am65x CFG_ARM64_core=y #CROSS_COMPILE64 value is missing -none-
The build process fails further down the path with this error:
CHK out/arm-plat-k3/conf.mk
CHK out/arm-plat-k3/include/generated/conf.h
CHK out/arm-plat-k3/core/include/generated/asm-defines.h
GEN out/arm-plat-k3/core/ta_pub_key.c
Traceback (most recent call last):
File "scripts/pem_to_pub_c.py", line 71, in <module>
main()
File "scripts/pem_to_pub_c.py", line 24, in main
from cryptography.hazmat.backends import default_backend
ModuleNotFoundError: No module named 'cryptography'
make: *** [mk/subdir.mk:183: out/arm-plat-k3/core/ta_pub_key.c] Error 1
I have made sure that the cryptography module is installed on my Ubuntu 20.04 machine. If I open another console window and run "python3 pem_to_pub_c.py", I do not get the import error.
For some reason, the makefile is corrupting the environment.
Help will be appreciated
Regards