1.overwrite the sources/meta-freescale/recipes-security/optee-imx with optee-imx.zip
2.add below code to conf/local.conf
DISTRO_FEATURES_append += " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
MACHINE_FEATURES_append += "optee"
DISTRO_FEATURES_append += "optee"
IMAGE_INSTALL_append += "optee-test optee-os optee-client optee-examples"
3.bitbake optee-examples or bitbake imx-image-xxx
You can directly install optee-examples_3.11.0-r0_arm64.deb in your device.