]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx6sxsabreauto: Add OP-TEE
authorTom Hochstein <tom.hochstein@nxp.com>
Thu, 3 Dec 2020 21:52:08 +0000 (15:52 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 21 Jan 2021 11:37:58 +0000 (08:37 -0300)
Add OP-TEE support. Add optee to MACHINE_FEATURES to enable OP-TEE
in u-boot-imx. OP-TEE is currently not supported by u-boot-fslc.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
conf/machine/imx6sxsabreauto.conf

index 43cabea2e61a6b39e52334ab6631a9766786a41e..e8fede4ab6568420054ea504d26ec5c7677353ce 100644 (file)
@@ -15,11 +15,17 @@ KERNEL_DEVICETREE_use-mainline-bsp = "imx6sx-sabreauto.dtb"
 PREFERRED_PROVIDER_u-boot = "u-boot-fslc"
 PREFERRED_PROVIDER_virtual/bootloader = "u-boot-fslc"
 
-UBOOT_CONFIG ??= "sd"
-UBOOT_CONFIG[sd] = "mx6sxsabreauto_config,sdcard"
-UBOOT_CONFIG[qspi1] = "mx6sxsabreauto_qspi1_config"
-UBOOT_CONFIG[nand] = "mx6sxsabreauto_nand_config,ubifs"
-UBOOT_CONFIG[mfgtool] = "mx6sxsabreauto_config"
+UBOOT_CONFIG ??= " \
+    sd \
+    ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'sd-optee', '', d)} \
+"
+UBOOT_CONFIG[sd]       = "mx6sxsabreauto_config,sdcard"
+UBOOT_CONFIG[sd-optee] = "mx6sxsabreauto_optee_config,sdcard"
+UBOOT_CONFIG[qspi1]    = "mx6sxsabreauto_qspi1_config"
+UBOOT_CONFIG[nand]     = "mx6sxsabreauto_nand_config,ubifs"
+UBOOT_CONFIG[mfgtool]  = "mx6sxsabreauto_config"
+
+OPTEE_BIN_EXT = "6sxauto"
 
 SERIAL_CONSOLES = "115200;ttymxc3"