Bläddra i källkod

add meta-optee-patch

Nicolas Winkler 5 månader sedan
förälder
incheckning
ba97deb349

+ 12 - 0
build/meta-optee-patch/conf/layer.conf

@@ -0,0 +1,12 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+            ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "optee-patch"
+BBFILE_PATTERN_optee-patch = "^${LAYERDIR}/"
+BBFILE_PRIORITY_optee-patch = "5"
+LAYERVERSION_optee-patch = "4"
+LAYERSERIES_COMPAT_optee-patch = "mickledore"

+ 23 - 0
build/meta-optee-patch/recipes-security/optee/optee-os-stm32mp/0001-modify-optee-dt.patch

@@ -0,0 +1,23 @@
+From 97d80bc3425886a0c9f119d02c2eee00b2769e04 Mon Sep 17 00:00:00 2001
+From: Nicolas Winkler <nicolas.winkler@noser.com>
+Date: Fri, 8 Nov 2024 12:24:55 +0100
+Subject: [PATCH] modify optee dt
+
+---
+ core/arch/arm/dts/stm32mp257f-ev1.dts | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/core/arch/arm/dts/stm32mp257f-ev1.dts b/core/arch/arm/dts/stm32mp257f-ev1.dts
+index 66cf62cb7..3acb2901a 100644
+--- a/core/arch/arm/dts/stm32mp257f-ev1.dts
++++ b/core/arch/arm/dts/stm32mp257f-ev1.dts
+@@ -361,6 +361,9 @@
+ };
+ 
+ &m33_rproc {
++	/* müsst da konfigurierbar si */
++	/* https://wiki.st.com/stm32mpu/wiki/OP-TEE_remoteproc_framework_overview */
++	compatible = "st,stm32mp2-m33";
+ 	status = "okay";
+ };
+ 

+ 4 - 0
build/meta-optee-patch/recipes-security/optee/optee-os-stm32mp_%.bbappend

@@ -0,0 +1,4 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "file://0001-modify-optee-dt.patch"
+