summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/machine/include/imx-base.inc6
-rw-r--r--recipes-bsp/firmware-imx/firmware-imx-8.18.inc (renamed from recipes-bsp/firmware-imx/firmware-imx-8.17.inc)4
-rw-r--r--recipes-bsp/firmware-imx/firmware-imx-8_8.18.bb (renamed from recipes-bsp/firmware-imx/firmware-imx-8_8.17.bb)0
-rw-r--r--recipes-bsp/firmware-imx/firmware-imx-8m_8.18.bb (renamed from recipes-bsp/firmware-imx/firmware-imx-8m_8.17.bb)0
-rw-r--r--recipes-bsp/firmware-imx/firmware-imx_8.18.bb (renamed from recipes-bsp/firmware-imx/firmware-imx_8.17.bb)0
-rw-r--r--recipes-bsp/imx-atf/imx-atf_2.6.bb2
-rw-r--r--recipes-bsp/imx-lib/imx-lib_git.bb2
-rw-r--r--recipes-bsp/imx-mkimage/imx-mkimage_git.inc4
-rw-r--r--recipes-bsp/imx-seco/imx-seco-libs/0001-Fix-return-value-of-void-functions.patch57
-rw-r--r--recipes-bsp/imx-seco/imx-seco-libs_git.bb9
-rw-r--r--recipes-bsp/imx-seco/imx-seco_5.9.0.bb (renamed from recipes-bsp/imx-seco/imx-seco_5.8.7.1.bb)6
-rw-r--r--recipes-security/optee-imx/optee-client_3.19.0.imx.bb (renamed from recipes-security/optee-imx/optee-client_3.17.0.imx.bb)8
-rw-r--r--recipes-security/optee-imx/optee-os/0008-no-warn-rwx-segments.patch64
-rw-r--r--recipes-security/optee-imx/optee-os_3.19.0.imx.bb (renamed from recipes-security/optee-imx/optee-os_3.17.0.imx.bb)29
-rw-r--r--recipes-security/optee-imx/optee-test_3.19.0.imx.bb (renamed from recipes-security/optee-imx/optee-test_3.17.0.imx.bb)6
15 files changed, 92 insertions, 105 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index de695d78..718f6b30 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -500,9 +500,9 @@ PREFERRED_VERSION_vulkan-loader:imxvulkan ??= "1.2.182.0"
500PREFERRED_VERSION_vulkan-tools:imxvulkan ??= "1.2.182.0" 500PREFERRED_VERSION_vulkan-tools:imxvulkan ??= "1.2.182.0"
501 501
502# Use i.MX optee Version 502# Use i.MX optee Version
503PREFERRED_VERSION_optee-os:mx8-nxp-bsp ??= "3.17.0.imx" 503PREFERRED_VERSION_optee-os:mx8-nxp-bsp ??= "3.19.0.imx"
504PREFERRED_VERSION_optee-client:mx8-nxp-bsp ??= "3.17.0.imx" 504PREFERRED_VERSION_optee-client:mx8-nxp-bsp ??= "3.19.0.imx"
505PREFERRED_VERSION_optee-test:mx8-nxp-bsp ??= "3.17.0.imx" 505PREFERRED_VERSION_optee-test:mx8-nxp-bsp ??= "3.19.0.imx"
506 506
507#Use i.MX opencv Version for mx8 507#Use i.MX opencv Version for mx8
508PREFERRED_VERSION_opencv:mx8-nxp-bsp ??= "4.6.0.imx" 508PREFERRED_VERSION_opencv:mx8-nxp-bsp ??= "4.6.0.imx"
diff --git a/recipes-bsp/firmware-imx/firmware-imx-8.17.inc b/recipes-bsp/firmware-imx/firmware-imx-8.18.inc
index 78f03c25..24829370 100644
--- a/recipes-bsp/firmware-imx/firmware-imx-8.17.inc
+++ b/recipes-bsp/firmware-imx/firmware-imx-8.18.inc
@@ -9,8 +9,8 @@ SRC_URI = " \
9 ${FSL_MIRROR}/firmware-imx-${PV}.bin;fsl-eula=true \ 9 ${FSL_MIRROR}/firmware-imx-${PV}.bin;fsl-eula=true \
10" 10"
11 11
12SRC_URI[md5sum] = "63eac7b400d711c668458ec4bf5d0c60" 12SRC_URI[md5sum] = "436501f8e67c10eed6bba88457e701a2"
13SRC_URI[sha256sum] = "1ee3c49ad8749867487f09d6e4472536fb809b667c1bb3c56511175b8974e3c6" 13SRC_URI[sha256sum] = "f050f60351a54fd75954fdeb133ddd014a5576040c72616e216b63db0e242dd4"
14 14
15S = "${WORKDIR}/firmware-imx-${PV}" 15S = "${WORKDIR}/firmware-imx-${PV}"
16 16
diff --git a/recipes-bsp/firmware-imx/firmware-imx-8_8.17.bb b/recipes-bsp/firmware-imx/firmware-imx-8_8.18.bb
index 18ce14d3..18ce14d3 100644
--- a/recipes-bsp/firmware-imx/firmware-imx-8_8.17.bb
+++ b/recipes-bsp/firmware-imx/firmware-imx-8_8.18.bb
diff --git a/recipes-bsp/firmware-imx/firmware-imx-8m_8.17.bb b/recipes-bsp/firmware-imx/firmware-imx-8m_8.18.bb
index 152ef0b5..152ef0b5 100644
--- a/recipes-bsp/firmware-imx/firmware-imx-8m_8.17.bb
+++ b/recipes-bsp/firmware-imx/firmware-imx-8m_8.18.bb
diff --git a/recipes-bsp/firmware-imx/firmware-imx_8.17.bb b/recipes-bsp/firmware-imx/firmware-imx_8.18.bb
index f84ea1fa..f84ea1fa 100644
--- a/recipes-bsp/firmware-imx/firmware-imx_8.17.bb
+++ b/recipes-bsp/firmware-imx/firmware-imx_8.18.bb
diff --git a/recipes-bsp/imx-atf/imx-atf_2.6.bb b/recipes-bsp/imx-atf/imx-atf_2.6.bb
index f86318b6..2c21fce1 100644
--- a/recipes-bsp/imx-atf/imx-atf_2.6.bb
+++ b/recipes-bsp/imx-atf/imx-atf_2.6.bb
@@ -13,7 +13,7 @@ SRC_URI = " \
13 file://rwx-segments.patch \ 13 file://rwx-segments.patch \
14" 14"
15SRCBRANCH = "lf_v2.6" 15SRCBRANCH = "lf_v2.6"
16SRCREV = "9202efc9aaf65085def9a747ee32aed628449901" 16SRCREV = "3c1583ba0a5d11e5116332e91065cb3740153a46"
17 17
18S = "${WORKDIR}/git" 18S = "${WORKDIR}/git"
19 19
diff --git a/recipes-bsp/imx-lib/imx-lib_git.bb b/recipes-bsp/imx-lib/imx-lib_git.bb
index 6d7f1579..3bb1dcaf 100644
--- a/recipes-bsp/imx-lib/imx-lib_git.bb
+++ b/recipes-bsp/imx-lib/imx-lib_git.bb
@@ -13,7 +13,7 @@ PE = "1"
13PV = "5.9+${SRCPV}" 13PV = "5.9+${SRCPV}"
14 14
15SRC_URI = "git://github.com/nxp-imx/imx-lib.git;protocol=https;branch=${SRCBRANCH}" 15SRC_URI = "git://github.com/nxp-imx/imx-lib.git;protocol=https;branch=${SRCBRANCH}"
16SRCBRANCH = "lf-5.15.52_2.1.0" 16SRCBRANCH = "lf-5.15.71_2.2.0"
17SRCREV = "87ddd80953835eb29027d1d5a12044a08e809e40" 17SRCREV = "87ddd80953835eb29027d1d5a12044a08e809e40"
18 18
19S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
diff --git a/recipes-bsp/imx-mkimage/imx-mkimage_git.inc b/recipes-bsp/imx-mkimage/imx-mkimage_git.inc
index 453ef0ed..4a4bc4c9 100644
--- a/recipes-bsp/imx-mkimage/imx-mkimage_git.inc
+++ b/recipes-bsp/imx-mkimage/imx-mkimage_git.inc
@@ -5,8 +5,8 @@ DEPENDS = "zlib-native openssl-native"
5SRC_URI = "git://github.com/nxp-imx/imx-mkimage.git;protocol=https;branch=${SRCBRANCH} \ 5SRC_URI = "git://github.com/nxp-imx/imx-mkimage.git;protocol=https;branch=${SRCBRANCH} \
6 file://0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch \ 6 file://0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch \
7" 7"
8SRCBRANCH = "lf-5.15.52_2.1.0" 8SRCBRANCH = "lf-5.15.71_2.2.0"
9SRCREV = "37648c8ba5094420faa8206d8cb8e0c6f17d72fc" 9SRCREV = "3bfcfccb71ddf894be9c402732ccb229fe72099e"
10 10
11S = "${WORKDIR}/git" 11S = "${WORKDIR}/git"
12 12
diff --git a/recipes-bsp/imx-seco/imx-seco-libs/0001-Fix-return-value-of-void-functions.patch b/recipes-bsp/imx-seco/imx-seco-libs/0001-Fix-return-value-of-void-functions.patch
new file mode 100644
index 00000000..656469c2
--- /dev/null
+++ b/recipes-bsp/imx-seco/imx-seco-libs/0001-Fix-return-value-of-void-functions.patch
@@ -0,0 +1,57 @@
1From 2eff97fe2345d8255869224404322d23193f1115 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 7 Jan 2023 21:59:15 -0800
4Subject: [PATCH] Fix return value of void* functions
5
6This is found with clang
7
8Fixes
9error: non-void function does not return a value [-Werror,-Wreturn-type]
10
11Upstream-Status: Pending
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 test/hsm/hsm_test.c | 1 +
15 test/she/src/she_test_storage_manager.c | 1 +
16 test/v2x/v2x_test.c | 1 +
17 3 files changed, 3 insertions(+)
18
19diff --git a/test/hsm/hsm_test.c b/test/hsm/hsm_test.c
20index 9f29ca9..01820b8 100644
21--- a/test/hsm/hsm_test.c
22+++ b/test/hsm/hsm_test.c
23@@ -391,6 +391,7 @@ static uint32_t nvm_status;
24 static void *hsm_storage_thread(void *arg)
25 {
26 seco_nvm_manager(NVM_FLAGS_HSM, &nvm_status);
27+ return 0;
28 }
29
30
31diff --git a/test/she/src/she_test_storage_manager.c b/test/she/src/she_test_storage_manager.c
32index 32a4cb9..68cdba7 100644
33--- a/test/she/src/she_test_storage_manager.c
34+++ b/test/she/src/she_test_storage_manager.c
35@@ -28,6 +28,7 @@ static uint32_t nvm_status;
36 static void *she_storage_thread(void *arg)
37 {
38 seco_nvm_manager(NVM_FLAGS_SHE, &nvm_status);
39+ return 0;
40 }
41
42
43diff --git a/test/v2x/v2x_test.c b/test/v2x/v2x_test.c
44index aeb3d2a..5f02354 100644
45--- a/test/v2x/v2x_test.c
46+++ b/test/v2x/v2x_test.c
47@@ -181,6 +181,7 @@ static uint32_t nvm_status;
48 static void *v2x_hsm_storage_thread(void *arg)
49 {
50 seco_nvm_manager(NVM_FLAGS_V2X | NVM_FLAGS_HSM, &nvm_status);
51+ return 0;
52 }
53
54
55--
562.39.0
57
diff --git a/recipes-bsp/imx-seco/imx-seco-libs_git.bb b/recipes-bsp/imx-seco/imx-seco-libs_git.bb
index 625834b7..b0296e97 100644
--- a/recipes-bsp/imx-seco/imx-seco-libs_git.bb
+++ b/recipes-bsp/imx-seco/imx-seco-libs_git.bb
@@ -8,19 +8,20 @@ LIC_FILES_CHKSUM = "file://EULA.txt;md5=d3c315c6eaa43e07d8c130dc3a04a011"
8 8
9DEPENDS = "zlib" 9DEPENDS = "zlib"
10 10
11SRCBRANCH = "imx_5.4.70_2.3.9" 11SRCBRANCH = "imx_5.4.70_2.3.11"
12SRC_URI = "git://github.com/NXP/imx-seco-libs.git;protocol=https;branch=${SRCBRANCH} \ 12SRC_URI = "git://github.com/NXP/imx-seco-libs.git;protocol=https;branch=${SRCBRANCH} \
13 file://0001-Makefile-Fix-LIBDIR-for-multilib.patch \ 13 file://0001-Makefile-Fix-LIBDIR-for-multilib.patch \
14 file://0002-Makefile-Fix-install-to-clear-host-user-contaminated.patch \ 14 file://0002-Makefile-Fix-install-to-clear-host-user-contaminated.patch \
15 file://0001-add-v2x_test-to-the-installed-binaries.patch" 15 file://0001-add-v2x_test-to-the-installed-binaries.patch \
16SRCREV = "b2550476388e1d1453bddbf356844301467c7bfa" 16 file://0001-Fix-return-value-of-void-functions.patch"
17SRCREV = "aa8d62900c41cc779c11fe4e6f58b40c3c9f82f0"
17 18
18S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
19 20
20TARGET_CC_ARCH += "${LDFLAGS}" 21TARGET_CC_ARCH += "${LDFLAGS}"
21 22
22do_install () { 23do_install () {
23 oe_runmake DESTDIR=${D} install 24 oe_runmake DESTDIR=${D} BINDIR=${bindir} LIBDIR=${libdir} install
24} 25}
25 26
26COMPATIBLE_MACHINE = "(mx8qm-nxp-bsp|mx8qxp-nxp-bsp|mx8dxl-nxp-bsp|mx8dx-nxp-bsp)" 27COMPATIBLE_MACHINE = "(mx8qm-nxp-bsp|mx8qxp-nxp-bsp|mx8dxl-nxp-bsp|mx8dx-nxp-bsp)"
diff --git a/recipes-bsp/imx-seco/imx-seco_5.8.7.1.bb b/recipes-bsp/imx-seco/imx-seco_5.9.0.bb
index d37c1c98..712be23a 100644
--- a/recipes-bsp/imx-seco/imx-seco_5.8.7.1.bb
+++ b/recipes-bsp/imx-seco/imx-seco_5.9.0.bb
@@ -4,14 +4,14 @@ SUMMARY = "NXP i.MX SECO firmware"
4DESCRIPTION = "Firmware for i.MX Security Controller Subsystem" 4DESCRIPTION = "Firmware for i.MX Security Controller Subsystem"
5SECTION = "base" 5SECTION = "base"
6LICENSE = "Proprietary" 6LICENSE = "Proprietary"
7LIC_FILES_CHKSUM = "file://COPYING;md5=d3c315c6eaa43e07d8c130dc3a04a011" 7LIC_FILES_CHKSUM = "file://COPYING;md5=5a0bf11f745e68024f37b4724a5364fe"
8 8
9inherit fsl-eula-unpack use-imx-security-controller-firmware deploy 9inherit fsl-eula-unpack use-imx-security-controller-firmware deploy
10 10
11SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" 11SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true"
12 12
13SRC_URI[md5sum] = "f5c6737b42275e513d4e0cc2efa91d6a" 13SRC_URI[md5sum] = "b722a534c4d3cc90270e05eaa812514d"
14SRC_URI[sha256sum] = "03fa16ebc0633505bd02dae1c58602e278a8a28c8205c758fa3936477d51d0e0" 14SRC_URI[sha256sum] = "c3bd761f457e939035b01a0ab36e79064a2a1bc6c3cdb3cd847f7f38df0964df"
15 15
16 16
17do_compile[noexec] = "1" 17do_compile[noexec] = "1"
diff --git a/recipes-security/optee-imx/optee-client_3.17.0.imx.bb b/recipes-security/optee-imx/optee-client_3.19.0.imx.bb
index 6f0435fe..b0fb9178 100644
--- a/recipes-security/optee-imx/optee-client_3.17.0.imx.bb
+++ b/recipes-security/optee-imx/optee-client_3.19.0.imx.bb
@@ -8,13 +8,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b"
8SRC_URI = " \ 8SRC_URI = " \
9 git://github.com/nxp-imx/imx-optee-client.git;protocol=https;branch=${SRCBRANCH} \ 9 git://github.com/nxp-imx/imx-optee-client.git;protocol=https;branch=${SRCBRANCH} \
10 file://tee-supplicant.service" 10 file://tee-supplicant.service"
11SRCBRANCH = "lf-5.15.52_2.1.0" 11SRCBRANCH = "lf-5.15.71_2.2.0"
12SRCREV = "9d8f1903bbea3a1e631c8d26ee51c37020569312" 12SRCREV = "644022f8970c832a40be00747fcec70c7b5d488c"
13 13
14S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
15B = "${WORKDIR}/build" 15B = "${WORKDIR}/build"
16 16
17inherit python3native systemd features_check 17inherit python3native systemd features_check pkgconfig
18
19DEPENDS = "util-linux-libuuid"
18 20
19REQUIRED_MACHINE_FEATURES = "optee" 21REQUIRED_MACHINE_FEATURES = "optee"
20 22
diff --git a/recipes-security/optee-imx/optee-os/0008-no-warn-rwx-segments.patch b/recipes-security/optee-imx/optee-os/0008-no-warn-rwx-segments.patch
deleted file mode 100644
index 1dd70b31..00000000
--- a/recipes-security/optee-imx/optee-os/0008-no-warn-rwx-segments.patch
+++ /dev/null
@@ -1,64 +0,0 @@
1Signed-off-by: Anton Antonov <Anton.Antonov@arm.com>
2Upstream-Status: Backport [https://github.com/OP-TEE/optee_os/pull/5474]
3
4From 0b8a917fa51a366806edc0f04b88cd23b24098c4 Mon Sep 17 00:00:00 2001
5From: Jerome Forissier <jerome.forissier@linaro.org>
6Date: Fri, 5 Aug 2022 09:48:03 +0200
7Subject: [PATCH] core: link: add --no-warn-rwx-segments
8
9binutils ld.bfd generates one RWX LOAD segment by merging several sections
10with mixed R/W/X attributes (.text, .rodata, .data). After version 2.38 it
11also warns by default when that happens [1], which breaks the build due to
12--fatal-warnings. The RWX segment is not a problem for the TEE core, since
13that information is not used to set memory permissions. Therefore, silence
14the warning.
15
16Link: [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107
17Link: https://sourceware.org/bugzilla/show_bug.cgi?id=29448
18Reported-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
19Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
20Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
21---
22 core/arch/arm/kernel/link.mk | 8 ++++++--
23 1 file changed, 6 insertions(+), 2 deletions(-)
24
25diff --git a/core/arch/arm/kernel/link.mk b/core/arch/arm/kernel/link.mk
26index 7eed333a32..c39d43cbfc 100644
27--- a/core/arch/arm/kernel/link.mk
28+++ b/core/arch/arm/kernel/link.mk
29@@ -31,6 +31,7 @@ link-ldflags += -T $(link-script-pp) -Map=$(link-out-dir)/tee.map
30 link-ldflags += --sort-section=alignment
31 link-ldflags += --fatal-warnings
32 link-ldflags += --gc-sections
33+link-ldflags += $(call ld-option,--no-warn-rwx-segments)
34
35 link-ldadd = $(LDADD)
36 link-ldadd += $(ldflags-external)
37@@ -55,6 +56,7 @@ link-script-cppflags := \
38 $(cppflagscore))
39
40 ldargs-all_objs := -T $(link-script-dummy) --no-check-sections \
41+ $(call ld-option,--no-warn-rwx-segments) \
42 $(link-objs) $(link-ldadd) $(libgcccore)
43 cleanfiles += $(link-out-dir)/all_objs.o
44 $(link-out-dir)/all_objs.o: $(objs) $(libdeps) $(MAKEFILE_LIST)
45@@ -67,7 +69,8 @@ $(link-out-dir)/unpaged_entries.txt: $(link-out-dir)/all_objs.o
46 $(q)$(NMcore) $< | \
47 $(AWK) '/ ____keep_pager/ { printf "-u%s ", $$3 }' > $@
48
49-unpaged-ldargs = -T $(link-script-dummy) --no-check-sections --gc-sections
50+unpaged-ldargs := -T $(link-script-dummy) --no-check-sections --gc-sections \
51+ $(call ld-option,--no-warn-rwx-segments)
52 unpaged-ldadd := $(objs) $(link-ldadd) $(libgcccore)
53 cleanfiles += $(link-out-dir)/unpaged.o
54 $(link-out-dir)/unpaged.o: $(link-out-dir)/unpaged_entries.txt
55@@ -95,7 +98,8 @@ $(link-out-dir)/init_entries.txt: $(link-out-dir)/all_objs.o
56 $(q)$(NMcore) $< | \
57 $(AWK) '/ ____keep_init/ { printf "-u%s ", $$3 }' > $@
58
59-init-ldargs := -T $(link-script-dummy) --no-check-sections --gc-sections
60+init-ldargs := -T $(link-script-dummy) --no-check-sections --gc-sections \
61+ $(call ld-option,--no-warn-rwx-segments)
62 init-ldadd := $(link-objs-init) $(link-out-dir)/version.o $(link-ldadd) \
63 $(libgcccore)
64 cleanfiles += $(link-out-dir)/init.o
diff --git a/recipes-security/optee-imx/optee-os_3.17.0.imx.bb b/recipes-security/optee-imx/optee-os_3.19.0.imx.bb
index f759e40c..f5e727b3 100644
--- a/recipes-security/optee-imx/optee-os_3.17.0.imx.bb
+++ b/recipes-security/optee-imx/optee-os_3.19.0.imx.bb
@@ -6,15 +6,12 @@ HOMEPAGE = "http://www.optee.org/"
6LICENSE = "BSD-2-Clause" 6LICENSE = "BSD-2-Clause"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173" 7LIC_FILES_CHKSUM = "file://LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173"
8 8
9DEPENDS = "python3-cryptography-native python3-pyelftools-native u-boot-mkimage-native" 9DEPENDS = "python3-pyelftools-native u-boot-mkimage-native \
10 python3-cryptography-native"
10 11
11SRC_URI = "git://github.com/nxp-imx/imx-optee-os.git;protocol=https;branch=${SRCBRANCH}" 12SRC_URI = "git://github.com/nxp-imx/imx-optee-os.git;protocol=https;branch=${SRCBRANCH}"
12SRCBRANCH = "lf-5.15.52_2.1.0" 13SRCBRANCH = "lf-5.15.71_2.2.0"
13SRCREV = "9e86c8b6b102efa09ada451d0383ea3d11f8fad6" 14SRCREV = "00919403f040fad4f8603e605932281ff8451b1d"
14
15SRC_URI:append = " \
16 file://0008-no-warn-rwx-segments.patch \
17 "
18 15
19S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
20B = "${WORKDIR}/build" 17B = "${WORKDIR}/build"
@@ -42,6 +39,7 @@ PLATFORM_FLAVOR:mx8qxp-nxp-bsp = "mx8qxpmek"
42PLATFORM_FLAVOR:mx8dx-nxp-bsp = "mx8dxmek" 39PLATFORM_FLAVOR:mx8dx-nxp-bsp = "mx8dxmek"
43PLATFORM_FLAVOR:mx8dxl-nxp-bsp = "mx8dxlevk" 40PLATFORM_FLAVOR:mx8dxl-nxp-bsp = "mx8dxlevk"
44PLATFORM_FLAVOR:mx8ulp-nxp-bsp = "mx8ulpevk" 41PLATFORM_FLAVOR:mx8ulp-nxp-bsp = "mx8ulpevk"
42PLATFORM_FLAVOR:mx93-nxp-bsp = "mx93evk"
45 43
46OPTEE_ARCH:arm = "arm32" 44OPTEE_ARCH:arm = "arm32"
47OPTEE_ARCH:aarch64 = "arm64" 45OPTEE_ARCH:aarch64 = "arm64"
@@ -90,17 +88,14 @@ do_install () {
90 install -d ${D}${nonarch_base_libdir}/firmware/ 88 install -d ${D}${nonarch_base_libdir}/firmware/
91 install -m 644 ${B}/core/*.bin ${D}${nonarch_base_libdir}/firmware/ 89 install -m 644 ${B}/core/*.bin ${D}${nonarch_base_libdir}/firmware/
92 90
91 # Install embedded TAs
92 install -d ${D}${nonarch_base_libdir}/optee_armtz/
93 install -m 444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/
94
93 # Install the TA devkit 95 # Install the TA devkit
94 install -d ${D}${includedir}/optee/export-user_ta_${OPTEE_ARCH}/ 96 install -d ${D}${includedir}/optee/export-user_ta_${OPTEE_ARCH}/
95 for f in ${B}/export-ta_${OPTEE_ARCH}/*; do 97 cp -aR ${B}/export-ta_${OPTEE_ARCH}/* \
96 cp -aR $f ${D}${includedir}/optee/export-user_ta_${OPTEE_ARCH}/ 98 ${D}${includedir}/optee/export-user_ta_${OPTEE_ARCH}/
97 done
98
99 # Install embedded TAs
100 install -d ${D}${nonarch_base_libdir}/optee_armtz
101 find ${B}/ta -name '*.ta' | while read name; do
102 install -m 444 $name ${D}${nonarch_base_libdir}/optee_armtz/
103 done
104} 99}
105 100
106addtask deploy after do_compile before do_install 101addtask deploy after do_compile before do_install
@@ -111,5 +106,3 @@ RDEPENDS:${PN}-dev += "${PN}-staticdev"
111 106
112PACKAGE_ARCH = "${MACHINE_ARCH}" 107PACKAGE_ARCH = "${MACHINE_ARCH}"
113COMPATIBLE_MACHINE = "(imx-nxp-bsp)" 108COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
114
115TOOLCHAIN = "gcc"
diff --git a/recipes-security/optee-imx/optee-test_3.17.0.imx.bb b/recipes-security/optee-imx/optee-test_3.19.0.imx.bb
index e1b831f1..fa418b87 100644
--- a/recipes-security/optee-imx/optee-test_3.17.0.imx.bb
+++ b/recipes-security/optee-imx/optee-test_3.19.0.imx.bb
@@ -9,8 +9,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa"
9DEPENDS = "python3-cryptography-native optee-os optee-client openssl" 9DEPENDS = "python3-cryptography-native optee-os optee-client openssl"
10 10
11SRC_URI = "git://github.com/nxp-imx/imx-optee-test.git;protocol=https;branch=${SRCBRANCH}" 11SRC_URI = "git://github.com/nxp-imx/imx-optee-test.git;protocol=https;branch=${SRCBRANCH}"
12SRCBRANCH = "lf-5.15.52_2.1.0" 12SRCBRANCH = "lf-5.15.71_2.2.0"
13SRCREV = "41222c4b8df1adc0f0bdc737e5cb824becd25f63" 13SRCREV = "5c1dbb531b304f7ae100958f6261b6cefea49b62"
14 14
15S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
16B = "${WORKDIR}/build" 16B = "${WORKDIR}/build"
@@ -58,5 +58,3 @@ FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ ${libdir}/tee-supplicant/plu
58RDEPENDS:${PN} = "optee-os" 58RDEPENDS:${PN} = "optee-os"
59 59
60COMPATIBLE_MACHINE = "(imx-nxp-bsp)" 60COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
61
62TOOLCHAIN = "gcc"