diff options
| author | Zelan Zou <zelan.zou@nxp.com> | 2025-09-01 14:14:55 +0800 |
|---|---|---|
| committer | Zelan Zou <zelan.zou@nxp.com> | 2025-09-03 10:57:02 +0800 |
| commit | 6bd8f2a6c2495ca7857aead0578776efa2e165c3 (patch) | |
| tree | 4f58789b5fd1c0da01ba2348d4bdffe24ea9c537 | |
| parent | a31dd5803b84db78663854eade050da5a0cdebec (diff) | |
| download | meta-freescale-6bd8f2a6c2495ca7857aead0578776efa2e165c3.tar.gz | |
optee-os: Upgrade 4.4.0.imx -> 4.6.0.imx
Update from LF6.12.20-2.0.0
Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
9 files changed, 20 insertions, 24 deletions
diff --git a/recipes-security/optee-imx/optee-fslc.inc b/recipes-security/optee-imx/optee-fslc.inc index c89746dc4..599dda522 100644 --- a/recipes-security/optee-imx/optee-fslc.inc +++ b/recipes-security/optee-imx/optee-fslc.inc | |||
| @@ -1,14 +1,16 @@ | |||
| 1 | # Copied from meta-arm/recipes-security/optee/optee.inc. | 1 | # Copied from meta-arm/recipes-security/optee/optee.inc. |
| 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-scarthgap/imx-6.6.52-2.2.0.xml#L30 | 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-walnascar/imx-6.12.20-2.0.0.xml#L30 |
| 3 | 3 | ||
| 4 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" | 4 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" |
| 5 | 5 | ||
| 6 | COMPATIBLE_MACHINE ?= "invalid" | 6 | COMPATIBLE_MACHINE ?= "invalid" |
| 7 | COMPATIBLE_MACHINE:genericarm64 ?= "genericarm64" | ||
| 7 | COMPATIBLE_MACHINE:qemuarm64 ?= "qemuarm64" | 8 | COMPATIBLE_MACHINE:qemuarm64 ?= "qemuarm64" |
| 8 | COMPATIBLE_MACHINE:qemuarm ?= "qemuarm" | 9 | COMPATIBLE_MACHINE:qemuarm ?= "qemuarm" |
| 9 | # Please add supported machines below or set it in .bbappend or .conf | 10 | # Please add supported machines below or set it in .bbappend or .conf |
| 10 | 11 | ||
| 11 | OPTEEMACHINE ?= "${MACHINE}" | 12 | OPTEEMACHINE ?= "${MACHINE}" |
| 13 | OPTEEMACHINE:genericarm64 ?= "vexpress-qemu_armv8a" | ||
| 12 | OPTEEMACHINE:aarch64:qemuall ?= "vexpress-qemu_armv8a" | 14 | OPTEEMACHINE:aarch64:qemuall ?= "vexpress-qemu_armv8a" |
| 13 | OPTEEMACHINE:arm:qemuall ?= "vexpress-qemu_virt" | 15 | OPTEEMACHINE:arm:qemuall ?= "vexpress-qemu_virt" |
| 14 | 16 | ||
diff --git a/recipes-security/optee-imx/optee-os-common-fslc-imx.inc b/recipes-security/optee-imx/optee-os-common-fslc-imx.inc index 941182fe9..ffd217099 100644 --- a/recipes-security/optee-imx/optee-os-common-fslc-imx.inc +++ b/recipes-security/optee-imx/optee-os-common-fslc-imx.inc | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | # Copied from meta-imx/meta-imx-bsp/recipes-security/optee/optee-os-common-imx.inc. | 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 | 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-walnascar/imx-6.12.20-2.0.0.xml#L37 |
| 3 | |||
| 4 | require optee-os-fslc.inc | 3 | require optee-os-fslc.inc |
| 5 | 4 | ||
| 6 | DEPENDS:append:arm = "u-boot-mkimage-native" | 5 | DEPENDS:append:arm = "u-boot-mkimage-native" |
| @@ -38,6 +37,7 @@ OPTEEMACHINE:mx8mnul-nxp-bsp = "imx-mx8mnevk" | |||
| 38 | OPTEEMACHINE:mx8ulp-nxp-bsp = "imx-mx8ulpevk" | 37 | OPTEEMACHINE:mx8ulp-nxp-bsp = "imx-mx8ulpevk" |
| 39 | OPTEEMACHINE:mx91-nxp-bsp = "imx-mx91evk" | 38 | OPTEEMACHINE:mx91-nxp-bsp = "imx-mx91evk" |
| 40 | OPTEEMACHINE:mx93-nxp-bsp = "imx-mx93evk" | 39 | OPTEEMACHINE:mx93-nxp-bsp = "imx-mx93evk" |
| 40 | OPTEEMACHINE:mx943-nxp-bsp = "imx-mx943evk" | ||
| 41 | OPTEEMACHINE:mx95-nxp-bsp = "imx-mx95evk" | 41 | OPTEEMACHINE:mx95-nxp-bsp = "imx-mx95evk" |
| 42 | 42 | ||
| 43 | # Strip the leading imx- | 43 | # Strip the leading imx- |
diff --git a/recipes-security/optee-imx/optee-os-fslc-imx.inc b/recipes-security/optee-imx/optee-os-fslc-imx.inc index 5fe6a75a5..f46f666ee 100644 --- a/recipes-security/optee-imx/optee-os-fslc-imx.inc +++ b/recipes-security/optee-imx/optee-os-fslc-imx.inc | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # Copied from meta-imx/meta-imx-bsp/recipes-security/optee/optee-os-imx.inc. | 1 | # Copied from meta-imx/meta-imx-bsp/recipes-security/optee/optee-os-imx.inc. |
| 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-scarthgap/imx-6.6.52-2.2.0.xml#L37 | 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-walnascar/imx-6.12.20-2.0.0.xml#L37 |
| 3 | 3 | ||
| 4 | require optee-os-common-fslc-imx.inc | 4 | require optee-os-common-fslc-imx.inc |
| 5 | 5 | ||
diff --git a/recipes-security/optee-imx/optee-os-fslc.inc b/recipes-security/optee-imx/optee-os-fslc.inc index 56c0f3e12..4df1617d1 100644 --- a/recipes-security/optee-imx/optee-os-fslc.inc +++ b/recipes-security/optee-imx/optee-os-fslc.inc | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # Copied from meta-arm/recipes-security/optee/optee-os.inc. | 1 | # Copied from meta-arm/recipes-security/optee/optee-os.inc. |
| 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-scarthgap/imx-6.6.52-2.2.0.xml#L30 | 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-walnascar/imx-6.12.20-2.0.0.xml#L30 |
| 3 | 3 | ||
| 4 | SUMMARY = "OP-TEE Trusted OS" | 4 | SUMMARY = "OP-TEE Trusted OS" |
| 5 | DESCRIPTION = "Open Portable Trusted Execution Environment - Trusted side of the TEE" | 5 | DESCRIPTION = "Open Portable Trusted Execution Environment - Trusted side of the TEE" |
| @@ -26,7 +26,7 @@ EXTRA_OEMAKE += " \ | |||
| 26 | CFG_${OPTEE_CORE}_core=y \ | 26 | CFG_${OPTEE_CORE}_core=y \ |
| 27 | CROSS_COMPILE_core=${HOST_PREFIX} \ | 27 | CROSS_COMPILE_core=${HOST_PREFIX} \ |
| 28 | CROSS_COMPILE_ta_${OPTEE_ARCH}=${HOST_PREFIX} \ | 28 | CROSS_COMPILE_ta_${OPTEE_ARCH}=${HOST_PREFIX} \ |
| 29 | NOWERROR=1 \ | 29 | AFLAGS="${CFLAGS}" \ |
| 30 | ta-targets=ta_${OPTEE_ARCH} \ | 30 | ta-targets=ta_${OPTEE_ARCH} \ |
| 31 | O=${B} \ | 31 | O=${B} \ |
| 32 | " | 32 | " |
| @@ -39,7 +39,7 @@ AS[unexport] = "1" | |||
| 39 | LD[unexport] = "1" | 39 | LD[unexport] = "1" |
| 40 | 40 | ||
| 41 | do_compile:prepend() { | 41 | do_compile:prepend() { |
| 42 | PLAT_LIBGCC_PATH=$(${CC} -print-libgcc-file-name) | 42 | PLAT_LIBGCC_PATH=$(${CC} -print-libgcc-file-name) |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | do_compile() { | 45 | do_compile() { |
| @@ -78,8 +78,5 @@ FILES:${PN}-ta = "${nonarch_base_libdir}/optee_armtz/*" | |||
| 78 | 78 | ||
| 79 | # note: "textrel" is not triggered on all archs | 79 | # note: "textrel" is not triggered on all archs |
| 80 | INSANE_SKIP:${PN} = "textrel" | 80 | INSANE_SKIP:${PN} = "textrel" |
| 81 | # Build paths are currently embedded | ||
| 82 | INSANE_SKIP:${PN} += "buildpaths" | ||
| 83 | INSANE_SKIP:${PN}-dev = "staticdev" | 81 | INSANE_SKIP:${PN}-dev = "staticdev" |
| 84 | INHIBIT_PACKAGE_STRIP = "1" | 82 | INHIBIT_PACKAGE_STRIP = "1" |
| 85 | |||
diff --git a/recipes-security/optee-imx/optee-os-tadevkit-fslc-imx.inc b/recipes-security/optee-imx/optee-os-tadevkit-fslc-imx.inc index 18cf9a374..0b02c6908 100644 --- a/recipes-security/optee-imx/optee-os-tadevkit-fslc-imx.inc +++ b/recipes-security/optee-imx/optee-os-tadevkit-fslc-imx.inc | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # Copied from meta-imx/meta-imx-bsp/recipes-security/optee/optee-os-tadevkit-imx.inc. | 1 | # Copied from meta-imx/meta-imx-bsp/recipes-security/optee/optee-os-tadevkit-imx.inc. |
| 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-scarthgap/imx-6.6.52-2.2.0.xml#L37 | 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-walnascar/imx-6.12.20-2.0.0.xml#L37 |
| 3 | 3 | ||
| 4 | require optee-os-common-fslc-imx.inc | 4 | require optee-os-common-fslc-imx.inc |
| 5 | 5 | ||
| @@ -22,6 +22,3 @@ do_deploy() { | |||
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | FILES:${PN} = "${includedir}/optee/" | 24 | FILES:${PN} = "${includedir}/optee/" |
| 25 | |||
| 26 | # Build paths are currently embedded | ||
| 27 | INSANE_SKIP:${PN}-dev += "buildpaths" | ||
diff --git a/recipes-security/optee-imx/optee-os-tadevkit_4.4.0.imx.bb b/recipes-security/optee-imx/optee-os-tadevkit_4.4.0.imx.bb deleted file mode 100644 index bb2e2cf6b..000000000 --- a/recipes-security/optee-imx/optee-os-tadevkit_4.4.0.imx.bb +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | require optee-os-tadevkit-fslc-imx.inc | ||
| 2 | |||
| 3 | SRCBRANCH = "lf-6.6.52_2.2.0" | ||
| 4 | SRCREV = "60beb308810f9561a67fdb435388a64c85eb6dcb" | ||
diff --git a/recipes-security/optee-imx/optee-os-tadevkit_4.6.0.imx.bb b/recipes-security/optee-imx/optee-os-tadevkit_4.6.0.imx.bb new file mode 100644 index 000000000..92bdf00e7 --- /dev/null +++ b/recipes-security/optee-imx/optee-os-tadevkit_4.6.0.imx.bb | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | require optee-os-tadevkit-fslc-imx.inc | ||
| 2 | |||
| 3 | SRCBRANCH = "lf-6.12.20_2.0.0" | ||
| 4 | SRCREV = "87964807d80baf1dcfd89cafc66de34a1cf16bf3" | ||
diff --git a/recipes-security/optee-imx/optee-os_4.4.0.imx.bb b/recipes-security/optee-imx/optee-os_4.4.0.imx.bb deleted file mode 100644 index dc6d3901d..000000000 --- a/recipes-security/optee-imx/optee-os_4.4.0.imx.bb +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | # Copyright 2017-2024 NXP | ||
| 2 | |||
| 3 | require optee-os-fslc-imx.inc | ||
| 4 | |||
| 5 | SRCBRANCH = "lf-6.6.52_2.2.0" | ||
| 6 | SRCREV = "60beb308810f9561a67fdb435388a64c85eb6dcb" | ||
diff --git a/recipes-security/optee-imx/optee-os_4.6.0.imx.bb b/recipes-security/optee-imx/optee-os_4.6.0.imx.bb new file mode 100644 index 000000000..ed2557bcb --- /dev/null +++ b/recipes-security/optee-imx/optee-os_4.6.0.imx.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # Copyright 2017-2024 NXP | ||
| 2 | |||
| 3 | require optee-os-fslc-imx.inc | ||
| 4 | |||
| 5 | SRCBRANCH = "lf-6.12.20_2.0.0" | ||
| 6 | SRCREV = "87964807d80baf1dcfd89cafc66de34a1cf16bf3" | ||
