Buildroot
Last modified by Microchip on 2025/03/03 06:21
For OP-TEE the steps for BuildRoot should be followed remembering to select one of the two OP-TEE configs listed below:
configs/sama5d27_som1_ek_optee_graphics_defconfig
configs/sama5d27_som1_ek_optee_headless_defconfig
configs/sama5d27_som1_ek_optee_headless_defconfig
Then to load the OP-TEE config you'll have to do:
$ BR2_EXTERNAL=../buildroot-external-microchip/ make sama5d27_som1_ek_optee_graphics_defconfig
Then you can build the image:
$ make
Advanced Features
Before building the Buildroot image you may want to customize the OP-TEE arguments such as adding debug messages.
Configurations in Kconfig
OP-TEE has multiple extra configurations, as mentioned above, that are not included in the default build configuration.
These can be added by running:
BR2_EXTERNAL=../buildroot-external-microchip/ make menuconfig
and go into Bootloaders menu to find the highlighted portion:
Simply add any additional build variables that you might need as if you are building OP-TEE stand alone.