summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2022-05-12 20:39:29 -0300
committerGitHub <noreply@github.com>2022-05-12 20:39:29 -0300
commit6f27a6fb2511bc1ac206efe8196f6e73b33b1dce (patch)
tree1ca28b3b1b58a3b4a0ce082315144639763dcf2f
parent804916e7fd0d5fda38f3c6771fa3a8ede6784ac2 (diff)
parent5b110699e2e7e84bebda0051637992ca0b392ccb (diff)
downloadmeta-freescale-6f27a6fb2511bc1ac206efe8196f6e73b33b1dce.tar.gz
Merge pull request #1086 from Freescale/backport-1085-to-kirkstone
[Backport kirkstone] Optee imx
-rw-r--r--recipes-security/optee-imx/optee-client_3.15.0.imx.bb2
-rw-r--r--recipes-security/optee-imx/optee-os/0001-arm-imx-fix-RPMB-header-include.patch29
-rw-r--r--recipes-security/optee-imx/optee-os_3.15.0.imx.bb14
-rw-r--r--recipes-security/optee-imx/optee-test_3.15.0.imx.bb12
4 files changed, 12 insertions, 45 deletions
diff --git a/recipes-security/optee-imx/optee-client_3.15.0.imx.bb b/recipes-security/optee-imx/optee-client_3.15.0.imx.bb
index 6e8f1e54..53ee5bc4 100644
--- a/recipes-security/optee-imx/optee-client_3.15.0.imx.bb
+++ b/recipes-security/optee-imx/optee-client_3.15.0.imx.bb
@@ -5,7 +5,7 @@ HOMEPAGE = "http://www.optee.org/"
5LICENSE = "BSD-2-Clause" 5LICENSE = "BSD-2-Clause"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b"
7 7
8SRCBRANCH = "lf-5.10.72_2.2.0" 8SRCBRANCH = "lf-5.15.5_1.0.0"
9SRC_URI = " \ 9SRC_URI = " \
10 git://source.codeaurora.org/external/imx/imx-optee-client.git;protocol=https;branch=${SRCBRANCH} \ 10 git://source.codeaurora.org/external/imx/imx-optee-client.git;protocol=https;branch=${SRCBRANCH} \
11 file://tee-supplicant.service \ 11 file://tee-supplicant.service \
diff --git a/recipes-security/optee-imx/optee-os/0001-arm-imx-fix-RPMB-header-include.patch b/recipes-security/optee-imx/optee-os/0001-arm-imx-fix-RPMB-header-include.patch
deleted file mode 100644
index 469802e8..00000000
--- a/recipes-security/optee-imx/optee-os/0001-arm-imx-fix-RPMB-header-include.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From d965393256e32a93dae41765543523598fca5d00 Mon Sep 17 00:00:00 2001
2From: Clement Faure <clement.faure@nxp.com>
3Date: Mon, 7 Mar 2022 10:21:04 -0600
4Subject: [PATCH] arm: imx: fix RPMB header include
5
6Replace <drivers/imx_snvs.h> by <drivers/nxp_snvs.h>
7
8Upstream-Status: Backport from NXP 5.15.5-1.0.0
9Signed-off-by: Clement Faure <clement.faure@nxp.com>
10---
11 core/arch/arm/plat-imx/imx_rpmb.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/core/arch/arm/plat-imx/imx_rpmb.c b/core/arch/arm/plat-imx/imx_rpmb.c
15index 9f0eb384d..2dd41105e 100644
16--- a/core/arch/arm/plat-imx/imx_rpmb.c
17+++ b/core/arch/arm/plat-imx/imx_rpmb.c
18@@ -2,7 +2,7 @@
19 /*
20 * Copyright 2020 Pengutronix, Rouven Czerwinski <entwicklung@pengutronix.de>
21 */
22-#include <drivers/imx_snvs.h>
23+#include <drivers/nxp_snvs.h>
24 #include <imx.h>
25 #include <tee/tee_fs.h>
26
27--
282.17.1
29
diff --git a/recipes-security/optee-imx/optee-os_3.15.0.imx.bb b/recipes-security/optee-imx/optee-os_3.15.0.imx.bb
index 3fca3dbf..15244c45 100644
--- a/recipes-security/optee-imx/optee-os_3.15.0.imx.bb
+++ b/recipes-security/optee-imx/optee-os_3.15.0.imx.bb
@@ -8,13 +8,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173"
8 8
9DEPENDS = "python3-pycryptodomex-native python3-pyelftools-native u-boot-mkimage-native" 9DEPENDS = "python3-pycryptodomex-native python3-pyelftools-native u-boot-mkimage-native"
10 10
11SRCBRANCH = "lf-5.10.72_2.2.0" 11SRCBRANCH = "lf-5.15.5_1.0.0"
12SRC_URI = "\ 12SRC_URI = "git://source.codeaurora.org/external/imx/imx-optee-os.git;protocol=https;branch=${SRCBRANCH}"
13 git://source.codeaurora.org/external/imx/imx-optee-os.git;protocol=https;branch=${SRCBRANCH} \
14 file://0001-arm-imx-fix-RPMB-header-include.patch \
15"
16 13
17SRCREV = "c939619d64dea014ad1b8382356eee4d1cbfbb22" 14SRCREV = "807629a0889ad5e888f1fd187932ab7f701ddf8c"
18 15
19S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
20 17
@@ -34,11 +31,14 @@ PLATFORM_FLAVOR:imx6ulz = "mx6ulzevk"
34PLATFORM_FLAVOR:mx8mq-nxp-bsp = "mx8mqevk" 31PLATFORM_FLAVOR:mx8mq-nxp-bsp = "mx8mqevk"
35PLATFORM_FLAVOR:mx8mm-nxp-bsp = "mx8mmevk" 32PLATFORM_FLAVOR:mx8mm-nxp-bsp = "mx8mmevk"
36PLATFORM_FLAVOR:mx8mn-nxp-bsp = "mx8mnevk" 33PLATFORM_FLAVOR:mx8mn-nxp-bsp = "mx8mnevk"
34PLATFORM_FLAVOR:mx8mnul-nxp-bsp = "mx8mnevk"
37PLATFORM_FLAVOR:mx8mp-nxp-bsp = "mx8mpevk" 35PLATFORM_FLAVOR:mx8mp-nxp-bsp = "mx8mpevk"
36PLATFORM_FLAVOR:mx8mpul-nxp-bsp = "mx8mpevk"
38PLATFORM_FLAVOR:mx8qm-nxp-bsp = "mx8qmmek" 37PLATFORM_FLAVOR:mx8qm-nxp-bsp = "mx8qmmek"
39PLATFORM_FLAVOR:mx8qxp-nxp-bsp = "mx8qxpmek" 38PLATFORM_FLAVOR:mx8qxp-nxp-bsp = "mx8qxpmek"
40PLATFORM_FLAVOR:mx8dx-nxp-bsp = "mx8dxmek" 39PLATFORM_FLAVOR:mx8dx-nxp-bsp = "mx8dxmek"
41PLATFORM_FLAVOR:mx8dxl-nxp-bsp = "mx8dxlevk" 40PLATFORM_FLAVOR:mx8dxl-nxp-bsp = "mx8dxlevk"
41PLATFORM_FLAVOR:mx8ulp-nxp-bsp = "mx8ulpevk"
42 42
43OPTEE_ARCH ?= "arm32" 43OPTEE_ARCH ?= "arm32"
44OPTEE_ARCH:armv7a = "arm32" 44OPTEE_ARCH:armv7a = "arm32"
@@ -97,7 +97,7 @@ addtask deploy after do_compile before do_install
97 97
98 98
99FILES:${PN} = "${nonarch_base_libdir}/firmware/ ${nonarch_base_libdir}/optee_armtz/" 99FILES:${PN} = "${nonarch_base_libdir}/firmware/ ${nonarch_base_libdir}/optee_armtz/"
100FILES:${PN}-staticdev = "/usr/include/optee/" 100FILES:${PN}-staticdev = "${includedir}/optee/"
101RDEPENDS:${PN}-dev += "${PN}-staticdev" 101RDEPENDS:${PN}-dev += "${PN}-staticdev"
102 102
103PACKAGE_ARCH = "${MACHINE_ARCH}" 103PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes-security/optee-imx/optee-test_3.15.0.imx.bb b/recipes-security/optee-imx/optee-test_3.15.0.imx.bb
index 1d6de243..a44454a7 100644
--- a/recipes-security/optee-imx/optee-test_3.15.0.imx.bb
+++ b/recipes-security/optee-imx/optee-test_3.15.0.imx.bb
@@ -8,14 +8,14 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa"
8 8
9DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native optee-os optee-client openssl" 9DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native optee-os optee-client openssl"
10 10
11SRCBRANCH = "lf-5.10.72_2.2.0" 11SRCBRANCH = "lf-5.15.5_1.0.0"
12 12
13SRC_URI = "git://source.codeaurora.org/external/imx/imx-optee-test.git;protocol=https;branch=${SRCBRANCH}" 13SRC_URI = "git://source.codeaurora.org/external/imx/imx-optee-test.git;protocol=https;branch=${SRCBRANCH}"
14 14
15S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
16B = "${WORKDIR}/build" 16B = "${WORKDIR}/build"
17 17
18SRCREV = "4d81b964a72e89a62d04187b3f055d8346b383c9" 18SRCREV = "e9d8bf6ee121d6686e6e409c727caee76496bb86"
19 19
20inherit python3native features_check 20inherit python3native features_check
21 21
@@ -34,7 +34,7 @@ CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}"
34EXTRA_OEMAKE = " \ 34EXTRA_OEMAKE = " \
35 TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \ 35 TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
36 ARCH=${OPTEE_ARCH} \ 36 ARCH=${OPTEE_ARCH} \
37 OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}/usr \ 37 OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}${exec_prefix} \
38 CROSS_COMPILE_HOST=${HOST_PREFIX} \ 38 CROSS_COMPILE_HOST=${HOST_PREFIX} \
39 CROSS_COMPILE_TA=${HOST_PREFIX} \ 39 CROSS_COMPILE_TA=${HOST_PREFIX} \
40 CROSS_COMPILE=${HOST_PREFIX} \ 40 CROSS_COMPILE=${HOST_PREFIX} \
@@ -42,11 +42,7 @@ EXTRA_OEMAKE = " \
42" 42"
43 43
44do_compile() { 44do_compile() {
45 cd ${S} 45 oe_runmake all
46 # Top level makefile doesn't seem to handle parallel make gracefully
47 oe_runmake xtest
48 oe_runmake ta
49 oe_runmake test_plugin
50} 46}
51do_compile[cleandirs] = "${B}" 47do_compile[cleandirs] = "${B}"
52 48