Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP-TEE support for iMX6/7 SoMs #86

Draft
wants to merge 7 commits into
base: scarthgap-7.x.y
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions classes/tdx-optee-apalis-imx6.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UBOOT_CONFIG[optee] = "apalis_imx6_defconfig,,u-boot.itb"
UBOOT_CONFIG = "optee"
UBOOT_SUFFIX = "itb"
3 changes: 3 additions & 0 deletions classes/tdx-optee-colibri-imx6.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UBOOT_CONFIG[optee] = "colibri_imx6_defconfig,,u-boot.itb"
UBOOT_CONFIG = "optee"
UBOOT_SUFFIX = "itb"
9 changes: 9 additions & 0 deletions classes/tdx-optee-colibri-imx7-emmc.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# U-Boot configuration
UBOOT_SUFFIX:forcevariable = "itb"
UBOOT_BINARY:forcevariable = "u-boot.${UBOOT_SUFFIX}"
UBOOT_MAKE_TARGET:forcevariable = ""
SPL_BINARY="SPL"

# Easy Installer configuration
OFFSET_BOOTROM_PAYLOAD="2"
OFFSET_SPL_PAYLOAD="138"
9 changes: 9 additions & 0 deletions classes/tdx-optee.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ TDX_OPTEE_ENABLE = "1"
# disable OP-TEE on R5 firmware for K3 based platforms
TDX_OPTEE_ENABLE:verdin-am62-k3r5 = "0"

# extension to append to optee binary when using the NXP recipes for ARM32 platforms
OPTEE_BIN_EXT = "bin"

# include machine-dependent OP-TEE configuration (if available)
include tdx-optee-${MACHINE}.inc

# required by some vendor BSPs
MACHINE_FEATURES:append = " optee"

Expand Down Expand Up @@ -40,6 +46,9 @@ addhandler validate_optee_support
validate_optee_support[eventmask] = "bb.event.SanityCheck"
python validate_optee_support() {
supported_machines = [
'apalis-imx6',
'colibri-imx6',
'colibri-imx7-emmc',
'verdin-imx8mp',
'verdin-imx8mm',
'verdin-am62',
Expand Down
Loading