From 53aaa074aa9042a699ac6eed2e563238bbb306c8 Mon Sep 17 00:00:00 2001 From: Thomas Perrot Date: Wed, 4 Sep 2024 10:55:50 +0200 Subject: [PATCH] imx-secure-enclave: add the lf-6.6.3-1.0.0 recipe This library allows the use of the EdgeLock secure Enclave (ELE) from Linux userspace. Moreover, this library is a build dependency of i.MX Security Middleware Library. Signed-off-by: Thomas Perrot (cherry picked from commit 639ca90853f694cde2a15093127bf3a3c1b6d9f1) --- .../imx-secure-enclave_git.bb | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 recipes-bsp/imx-secure-enclave/imx-secure-enclave_git.bb diff --git a/recipes-bsp/imx-secure-enclave/imx-secure-enclave_git.bb b/recipes-bsp/imx-secure-enclave/imx-secure-enclave_git.bb new file mode 100644 index 000000000..b065fc55b --- /dev/null +++ b/recipes-bsp/imx-secure-enclave/imx-secure-enclave_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "NXP i.MX Secure Enclave Userspace Library" +DESCRIPTION = "NXP i.MX Secure Enclave Userspace Library" +SECTION = "base" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8636bd68fc00cc6a3809b7b58b45f982" + +DEPENDS = "openssl" + +inherit systemd + +SRC_URI = "git://github.com/NXP/imx-secure-enclave.git;protocol=https;branch=lf-6.6.3_1.0.0" +SRCREV = "964affa2cb3f9f7fc85a6a18db60f9213f744495" + +PV = "lf-6.6.3_1.0.0" + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE += "PLAT=ele" + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_install () { + oe_runmake DESTDIR=${D} install + rm -rf ${D}/usr/share +} + +SYSTEMD_AUTO_ENABLE = "disable" +SYSTEMD_SERVICE:${PN} = "nvm_daemon.service" + +COMPATIBLE_MACHINE = "(mx8ulp-nxp-bsp|mx9-nxp-bsp)"