Hi Avi, Set Up Your Development Environment.
Ensure your Yocto build environment is properly configured and that OP-TEE is included in your image.
Install the required tools for developing Trusted Applications:
Toolchains: OP-TEE uses arm -none-eabi-gcc for building TAs.
Repositories: Clone the OP-TEE repositories, including optee_os, optee_client, and optee_examples from OP-TEE Github.
Create a new TA project directory under optee_examples or similar.
Write your trusted application code.
Create a new TA project directory under optee_examples or similar.
Build the TA using the OP-TEE build system:
Navigate to your Yocto build environment.
Integrate the TA into the Yocto recipe:
After building, you will have the .ta binary in the output folder.
Deploy the TA by copying it to the /lib/optee_armtz/ directory on your target board. Ensure that it matches the UUID defined in your application.
Test and Debug Your TA.
I hope the above instructions helped you, feel free to write & ask me any questions!
BR,
Ashutosh Nama.