diff options
| author | Zelan Zou <zelan.zou@nxp.com> | 2026-03-17 11:40:44 +0800 |
|---|---|---|
| committer | Zelan Zou <zelan.zou@nxp.com> | 2026-03-17 11:48:52 +0800 |
| commit | e472f25e61564b20922eb41b0fc6bf8c37f9d7cc (patch) | |
| tree | 015a3977f8864b4ad95dc0263a7654dc801d2d12 | |
| parent | a53628c37255a3da2913d29abd1b9d50d43b2507 (diff) | |
| download | meta-freescale-e472f25e61564b20922eb41b0fc6bf8c37f9d7cc.tar.gz | |
imx-secure-enclave: Update to lf-6.18.2-1.0.0
Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
4 files changed, 71 insertions, 20 deletions
diff --git a/recipes-bsp/imx-secure-enclave/imx-secure-enclave-prime_git.bb b/recipes-bsp/imx-secure-enclave/imx-secure-enclave-prime_git.bb new file mode 100644 index 000000000..1bd72d118 --- /dev/null +++ b/recipes-bsp/imx-secure-enclave/imx-secure-enclave-prime_git.bb | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | require imx-secure-enclave.inc | ||
| 2 | |||
| 3 | SUMMARY += "PRIME" | ||
| 4 | DESCRIPTION += "PRIME" | ||
| 5 | |||
| 6 | PLAT = "prime" | ||
| 7 | |||
| 8 | do_install:append() { | ||
| 9 | # Remove common content that is to be installed by imx-secure-enclave | ||
| 10 | rm ${D}${datadir}/se/README | ||
| 11 | } | ||
| 12 | |||
| 13 | COMPATIBLE_MACHINE = "(mx943-nxp-bsp|mx952-nxp-bsp)" | ||
diff --git a/recipes-bsp/imx-secure-enclave/imx-secure-enclave-seco_git.bb b/recipes-bsp/imx-secure-enclave/imx-secure-enclave-seco_git.bb new file mode 100644 index 000000000..803cbeffe --- /dev/null +++ b/recipes-bsp/imx-secure-enclave/imx-secure-enclave-seco_git.bb | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | require imx-secure-enclave.inc | ||
| 2 | |||
| 3 | SUMMARY += "SECO" | ||
| 4 | DESCRIPTION += "SECO" | ||
| 5 | |||
| 6 | PLAT = "seco" | ||
| 7 | |||
| 8 | EXTRA_OEMAKE:append:mx8x-nxp-bsp = " COMPATIBLE_MACHINE=mx8dxl-nxp-bsp" | ||
| 9 | |||
| 10 | do_install:append:mx9-nxp-bsp() { | ||
| 11 | # Remove common content that is to be installed by imx-secure-enclave | ||
| 12 | for i in common hsm nvm.h; do | ||
| 13 | rm -rf ${D}${includedir}/$i | ||
| 14 | done | ||
| 15 | rm ${D}${datadir}/se/README | ||
| 16 | rm ${D}${bindir}/nvmd_conf_setup.sh | ||
| 17 | rm ${D}${bindir}/se_tools | ||
| 18 | } | ||
| 19 | |||
| 20 | COMPATIBLE_MACHINE = "(mx8x-nxp-bsp|mx943-nxp-bsp|mx95-nxp-bsp|mx952-nxp-bsp)" | ||
diff --git a/recipes-bsp/imx-secure-enclave/imx-secure-enclave.inc b/recipes-bsp/imx-secure-enclave/imx-secure-enclave.inc new file mode 100644 index 000000000..bb045b6fb --- /dev/null +++ b/recipes-bsp/imx-secure-enclave/imx-secure-enclave.inc | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | # Copyright 2021-2025 NXP | ||
| 2 | |||
| 3 | SUMMARY = "NXP i.MX SECURE ENCLAVE library" | ||
| 4 | DESCRIPTION = "NXP IMX SECURE ENCLAVE library" | ||
| 5 | SECTION = "base" | ||
| 6 | LICENSE = "BSD-3-Clause" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8636bd68fc00cc6a3809b7b58b45f982" | ||
| 8 | |||
| 9 | DEPENDS = " mbedtls openssl" | ||
| 10 | |||
| 11 | SRC_URI = "${SECURE_ENCLAVE_LIB_SRC};branch=${SRCBRANCH}" | ||
| 12 | SECURE_ENCLAVE_LIB_SRC ?= "git://github.com/NXP/imx-secure-enclave.git;protocol=https" | ||
| 13 | SRCBRANCH = "lf-6.18.2_1.0.0" | ||
| 14 | SRCREV = "24fdfb728fff1644878f5ab4a5557decf0769959" | ||
| 15 | |||
| 16 | PLAT ?= "UNDEFINED" | ||
| 17 | |||
| 18 | EXTRA_OEMAKE = "PLAT=${PLAT} OPENSSL_PATH=${STAGING_INCDIR} MBEDTLS_PATH=${STAGING_DIR_HOST}${datadir}/mbedtls-source" | ||
| 19 | |||
| 20 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | oe_runmake -C ${S} DESTDIR=${D} install_tests | ||
| 24 | } | ||
| 25 | |||
| 26 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||
| 27 | |||
| 28 | FILES:${PN} += "${datadir}/se" | ||
| 29 | RDEPENDS:${PN}:append = " bash" | ||
diff --git a/recipes-bsp/imx-secure-enclave/imx-secure-enclave_git.bb b/recipes-bsp/imx-secure-enclave/imx-secure-enclave_git.bb index 525824f79..647a9d768 100644 --- a/recipes-bsp/imx-secure-enclave/imx-secure-enclave_git.bb +++ b/recipes-bsp/imx-secure-enclave/imx-secure-enclave_git.bb | |||
| @@ -1,29 +1,18 @@ | |||
| 1 | SUMMARY = "NXP i.MX Secure Enclave Userspace Library" | 1 | require imx-secure-enclave.inc |
| 2 | DESCRIPTION = "NXP i.MX Secure Enclave Userspace Library" | ||
| 3 | SECTION = "base" | ||
| 4 | |||
| 5 | LICENSE = "BSD-3-Clause" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8636bd68fc00cc6a3809b7b58b45f982" | ||
| 7 | |||
| 8 | DEPENDS = "openssl" | ||
| 9 | 2 | ||
| 10 | inherit systemd | 3 | inherit systemd |
| 11 | 4 | ||
| 12 | SRC_URI = "git://github.com/NXP/imx-secure-enclave.git;protocol=https;branch=lf-6.6.52_2.2.0" | 5 | SYSTEMD_AUTO_ENABLE = "disable" |
| 13 | SRCREV = "dffbb844e86f4a49058ffbb40548474059969c27" | 6 | SYSTEMD_SERVICE:${PN} = "nvm_daemon.service" |
| 14 | |||
| 15 | PV = "lf-6.6.52_2.2.0" | ||
| 16 | 7 | ||
| 17 | EXTRA_OEMAKE += "PLAT=ele" | 8 | PLAT = "ele" |
| 18 | 9 | ||
| 19 | TARGET_CC_ARCH += "${LDFLAGS}" | 10 | PACKAGES =+ "${PN}-crrm" |
| 20 | 11 | ||
| 21 | do_install () { | 12 | RDEPENDS:${PN} = "${@bb.utils.contains('UBOOT_CONFIG', 'crrm', '${PN}-crrm', '', d)}" |
| 22 | oe_runmake DESTDIR=${D} install | ||
| 23 | rm -rf ${D}/usr/share | ||
| 24 | } | ||
| 25 | 13 | ||
| 26 | SYSTEMD_AUTO_ENABLE = "disable" | 14 | FILES:${PN}-crrm = " \ |
| 27 | SYSTEMD_SERVICE:${PN} = "nvm_daemon.service" | 15 | ${bindir}/ele_crrm_test \ |
| 16 | ${libdir}/lib*crrm${SOLIBS}" | ||
| 28 | 17 | ||
| 29 | COMPATIBLE_MACHINE = "(mx8ulp-nxp-bsp|mx9-nxp-bsp)" | 18 | COMPATIBLE_MACHINE = "(mx8ulp-nxp-bsp|mx9-nxp-bsp)" |
