1、preloader
(vendor\mediatek\proprietary\bootable\bootloader\preloader\custom${PROJECT}${PROJECT}.mk)
MTK_TEE_SUPPORT = yes
TRUSTONIC_TEE_SUPPORT = yes
MICROTRUST_TEE_SUPPORT = no
MTK_GOOGLE_TRUSTY_SUPPORT = no
export MTK_TEE_SUPPORT TRUSTONIC_TEE_SUPPORT MICROTRUST_TEE_SUPPORT MTK_GOOGLE_TRUSTY_SUPPORT
2、kernel
(${KERNEL_VER}\arch\arm\configs${PROJECT}_debug_defconfig)
(${KERNEL_VER}\arch\arm\configs${PROJECT}_defconfig)
(${KERNEL_VER}\arch\arm64\configs${PROJECT}_debug_defconfig)
(${KERNEL_VER}\arch\arm64\configs${PROJECT}_defconfig)
CONFIG_TRUSTONIC_TEE_SUPPORT=y
CONFIG_MTK_TEE_GP_SUPPORT=y
3、projectConfig
(device\mediatekprojects${PROJECT}\ProjectConfig.mk)
MTK_ATF_SUPPORT=yes
MTK_TEE_SUPPORT=yes
TRUSTONIC_TEE_SUPPORT=yes
MTK_TEE_GP_SUPPORT=yes
4、trustzone
(vendor\mediatek\proprietary\trustzone\custom\build\project${PROJECT}.mk)
MTK_ATF_SUPPORT=yes
MTK_TEE_SUPPORT=yes
TRUSTONIC_TEE_SUPPORT=yes
MTK_TEE_DRAM_SIZE=0x1740000(根据你自己的TA来调整)
500A
CONFIG_TEE=y 否则无法编译到gud driver