diff options
Diffstat (limited to 'recipes-security/optee-imx/optee-os-common-fslc-imx.inc')
| -rw-r--r-- | recipes-security/optee-imx/optee-os-common-fslc-imx.inc | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/recipes-security/optee-imx/optee-os-common-fslc-imx.inc b/recipes-security/optee-imx/optee-os-common-fslc-imx.inc new file mode 100644 index 000000000..941182fe9 --- /dev/null +++ b/recipes-security/optee-imx/optee-os-common-fslc-imx.inc | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | # Copied from meta-imx/meta-imx-bsp/recipes-security/optee/optee-os-common-imx.inc. | ||
| 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-scarthgap/imx-6.6.52-2.2.0.xml#L37 | ||
| 3 | |||
| 4 | require optee-os-fslc.inc | ||
| 5 | |||
| 6 | DEPENDS:append:arm = "u-boot-mkimage-native" | ||
| 7 | |||
| 8 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os:" | ||
| 9 | |||
| 10 | SRC_URI:remove = "git://github.com/OP-TEE/optee_os.git;branch=master;protocol=https" | ||
| 11 | SRC_URI:prepend = "${OPTEE_OS_SRC};branch=${SRCBRANCH} " | ||
| 12 | SRC_URI:append = " file://0007-allow-setting-sysroot-for-clang.patch" | ||
| 13 | SRC_URI:remove = "file://0001-allow-setting-sysroot-for-libgcc-lookup.patch \ | ||
| 14 | file://0002-optee-enable-clang-support.patch \ | ||
| 15 | file://0003-core-link-add-no-warn-rwx-segments.patch" | ||
| 16 | |||
| 17 | OPTEE_OS_SRC ?= "git://github.com/nxp-imx/imx-optee-os.git;protocol=https" | ||
| 18 | |||
| 19 | inherit features_check | ||
| 20 | |||
| 21 | REQUIRED_MACHINE_FEATURES = "optee" | ||
| 22 | |||
| 23 | OPTEEMACHINE = "imx-${@d.getVar('MACHINE')[1:]}" | ||
| 24 | OPTEEMACHINE:imx6qpdlsolox = "imx-mx6qsabresd" | ||
| 25 | OPTEEMACHINE:mx6ul-nxp-bsp = "imx-mx6ulevk" | ||
| 26 | OPTEEMACHINE:mx6ull-nxp-bsp = "imx-mx6ullevk" | ||
| 27 | OPTEEMACHINE:mx6ulz-nxp-bsp = "imx-mx6ulzevk" | ||
| 28 | OPTEEMACHINE:mx8mq-nxp-bsp = "imx-mx8mqevk" | ||
| 29 | OPTEEMACHINE:mx8mm-nxp-bsp = "imx-mx8mmevk" | ||
| 30 | OPTEEMACHINE:mx8mn-nxp-bsp = "imx-mx8mnevk" | ||
| 31 | OPTEEMACHINE:mx8mp-nxp-bsp = "imx-mx8mpevk" | ||
| 32 | OPTEEMACHINE:mx8mpul-nxp-bsp = "imx-mx8mpevk" | ||
| 33 | OPTEEMACHINE:mx8qm-nxp-bsp = "imx-mx8qmmek" | ||
| 34 | OPTEEMACHINE:mx8qxp-nxp-bsp = "imx-mx8qxpmek" | ||
| 35 | OPTEEMACHINE:mx8dx-nxp-bsp = "imx-mx8dxmek" | ||
| 36 | OPTEEMACHINE:mx8dxl-nxp-bsp = "imx-mx8dxlevk" | ||
| 37 | OPTEEMACHINE:mx8mnul-nxp-bsp = "imx-mx8mnevk" | ||
| 38 | OPTEEMACHINE:mx8ulp-nxp-bsp = "imx-mx8ulpevk" | ||
| 39 | OPTEEMACHINE:mx91-nxp-bsp = "imx-mx91evk" | ||
| 40 | OPTEEMACHINE:mx93-nxp-bsp = "imx-mx93evk" | ||
| 41 | OPTEEMACHINE:mx95-nxp-bsp = "imx-mx95evk" | ||
| 42 | |||
| 43 | # Strip the leading imx- | ||
| 44 | PLATFORM_FLAVOR = "${@d.getVar('OPTEEMACHINE')[4:]}" | ||
| 45 | |||
| 46 | EXTRA_OEMAKE:append = " \ | ||
| 47 | CFG_TEE_TA_LOG_LEVEL=0 \ | ||
| 48 | CFG_TEE_CORE_LOG_LEVEL=0 \ | ||
| 49 | " | ||
| 50 | |||
| 51 | EXTRA_OEMAKE:append:imx8mq-lpddr4-wevk = " \ | ||
| 52 | CFG_CORE_LARGE_PHYS_ADDR=y \ | ||
| 53 | CFG_CORE_ARM64_PA_BITS=36 \ | ||
| 54 | CFG_DDR_SIZE=0x100000000 \ | ||
| 55 | CFG_TZDRAM_START=0xfe000000 \ | ||
| 56 | " | ||
| 57 | |||
| 58 | EXTRA_OEMAKE:append:imx8dxlb0-fips-lpddr4-evk = " \ | ||
| 59 | CFG_NXP_CAAM=n \ | ||
| 60 | " | ||
| 61 | |||
| 62 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
