Skip to contentSkip to conversation

arm-bsp/optee-os: add 3.10 recipe for corstone1000

PATCH Applied Jon Mason 2 participants 4 messages Sep 8, 2022 – Sep 9, 2022

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/3 arm-bsp/optee-os: add 3.10 recipe for corstone1000

A optee-os v3.10 recipe is necessary for corstone100, as it is actually using 3.10 SHA and then trying to apply patches for 3.14 (which is causing fuzz errors). Create this and use it to avoid these issues.

---
 ...ow-setting-sysroot-for-libgcc-lookup.patch | 35 ++++++++++
 ...0007-allow-setting-sysroot-for-clang.patch | 30 +++++++++
 .../files/0008-no-warn-rwx-segments.patch     | 65 +++++++++++++++++++
 ...rstone1000-add-corstone1000-platform.patch | 22 +++++--
 ...000-reserve-3MB-CVM-memory-for-optee.patch | 15 +++--
 ...0-add-a-rule-in-Makefile-to-SP_MAKEF.patch | 15 +++--
 ...ne1000-increase-OPTEE-core-heap-size.patch | 15 +++--
 ...d-missing-error-check-during-SP-init.patch | 15 +++--
 ...ow-setting-sysroot-for-libgcc-lookup.patch | 35 ++++++++++
 ...0007-allow-setting-sysroot-for-clang.patch | 30 +++++++++
 .../0008-no-warn-rwx-segments.patch           | 65 +++++++++++++++++++
 .../recipes-security/optee/optee-os_3.10.0.bb |  3 +
 .../optee/optee-os_3.10.0.bbappend            |  6 ++
 .../optee/optee-os_3.14.0.bbappend            |  1 -
 14 files changed, 316 insertions(+), 36 deletions(-)
 create mode 100644 meta-arm-bsp/recipes-security/optee/files/0006-allow-setting-sysroot-for-libgcc-lookup.patch
 create mode 100644 meta-arm-bsp/recipes-security/optee/files/0007-allow-setting-sysroot-for-clang.patch
 create mode 100644 meta-arm-bsp/recipes-security/optee/files/0008-no-warn-rwx-segments.patch
 create mode 100644 meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0006-allow-setting-sysroot-for-libgcc-lookup.patch
 create mode 100644 meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0007-allow-setting-sysroot-for-clang.patch
 create mode 100644 meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0008-no-warn-rwx-segments.patch
 create mode 100644 meta-arm-bsp/recipes-security/optee/optee-os_3.10.0.bb
 create mode 100644 meta-arm-bsp/recipes-security/optee/optee-os_3.10.0.bbappend
meta-arm-bsp/recipes-security/optee/files/0006-allow-setting-sysroot-for-libgcc-lookup.patch new file +35 -0
new file mode 100644
index 00000000..b838335e
@@ -0,0 +1,35 @@
+From 4b2c1a31efe0c5514ae27e696e75659b55e41259 Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Tue, 26 May 2020 14:38:02 -0500
+Subject: [PATCH] allow setting sysroot for libgcc lookup
+
+Explicitly pass the new variable LIBGCC_LOCATE_CFLAGS variable when searching
+for the compiler libraries as there's no easy way to reliably pass --sysroot
+otherwise.
+
+Upstream-Status: Pending [https://github.com/OP-TEE/optee_os/issues/4188]
+Signed-off-by: Ross Burton <[email protected]>
+
+---
+ mk/gcc.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/mk/gcc.mk b/mk/gcc.mk
+index adc77a24..81bfa78a 100644
+--- a/mk/gcc.mk
++++ b/mk/gcc.mk
+@@ -13,11 +13,11 @@ nostdinc$(sm)	:= -nostdinc -isystem $(shell $(CC$(sm)) \
+ 			-print-file-name=include 2> /dev/null)
+ 
+ # Get location of libgcc from gcc
+-libgcc$(sm)  	:= $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) \
++libgcc$(sm)  	:= $(shell $(CC$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CFLAGS$(arch-bits-$(sm))) \
+ 			-print-libgcc-file-name 2> /dev/null)
+-libstdc++$(sm)	:= $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
++libstdc++$(sm)	:= $(shell $(CXX$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
+ 			-print-file-name=libstdc++.a 2> /dev/null)
+-libgcc_eh$(sm)	:= $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
++libgcc_eh$(sm)	:= $(shell $(CXX$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
+ 			-print-file-name=libgcc_eh.a 2> /dev/null)
+ 
+ # Define these to something to discover accidental use
meta-arm-bsp/recipes-security/optee/files/0007-allow-setting-sysroot-for-clang.patch new file +30 -0
new file mode 100644
index 00000000..d5e36948
@@ -0,0 +1,30 @@
+From 992bed8a62c75aab034fe53d6329fa7c15cf06ee Mon Sep 17 00:00:00 2001
+From: Brett Warren <[email protected]>
+Date: Wed, 23 Sep 2020 09:27:34 +0100
+Subject: [PATCH] optee: enable clang support
+
+When compiling with clang, the LIBGCC_LOCATE_CFLAG variable used
+to provide a sysroot wasn't included, which results in not locating
+compiler-rt. This is mitigated by including the variable as ammended.
+
+Upstream-Status: Pending
+ChangeId: 8ba69a4b2eb8ebaa047cb266c9aa6c2c3da45701
+Signed-off-by: Brett Warren <[email protected]>
+
+---
+ mk/clang.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mk/clang.mk b/mk/clang.mk
+index 0f48c836..47465523 100644
+--- a/mk/clang.mk
++++ b/mk/clang.mk
+@@ -27,7 +27,7 @@ comp-cflags-warns-clang := -Wno-language-extension-token \
+ 
+ # Note, use the compiler runtime library (libclang_rt.builtins.*.a) instead of
+ # libgcc for clang
+-libgcc$(sm)	:= $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) \
++libgcc$(sm)	:= $(shell $(CC$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CFLAGS$(arch-bits-$(sm))) \
+ 			-rtlib=compiler-rt -print-libgcc-file-name 2> /dev/null)
+ 
+ # Core ASLR relies on the executable being ready to run from its preferred load
meta-arm-bsp/recipes-security/optee/files/0008-no-warn-rwx-segments.patch new file +65 -0

65 lines not on this page · raw message

meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0001-plat-corstone1000-add-corstone1000-platform.patch +15 -7
index 7666486d..b2d9f03c 100644
@@ -1,15 +1,26 @@
-Upstream-Status: Pending [Not submitted to upstream yet]
-Signed-off-by: Arpita S.K <[email protected]>
-
-From 439a87df6a9f60f2b29afd988ad58a67e6f0b603 Mon Sep 17 00:00:00 2001
+From 617e3a116178559fb6e148553b1cd56fb13ed7aa Mon Sep 17 00:00:00 2001
 From: Vishnu Banavath <[email protected]>
 Date: Tue, 22 Jun 2021 22:09:28 +0100
 Subject: [PATCH] plat-corstone1000: add corstone1000 platform
 
+Upstream-Status: Pending [Not submitted to upstream yet]
+Signed-off-by: Arpita S.K <[email protected]>
+
 These changes are to add corstone1000 platform to optee core
 
 Signed-off-by: Vishnu Banavath <[email protected]>
 
+---
+ core/arch/arm/plat-corstone1000/conf.mk       | 37 +++++++++
+ core/arch/arm/plat-corstone1000/main.c        | 77 +++++++++++++++++++
+ .../arm/plat-corstone1000/platform_config.h   | 46 +++++++++++
+ core/arch/arm/plat-corstone1000/sub.mk        |  2 +
+ 4 files changed, 162 insertions(+)
+ create mode 100644 core/arch/arm/plat-corstone1000/conf.mk
+ create mode 100644 core/arch/arm/plat-corstone1000/main.c
+ create mode 100644 core/arch/arm/plat-corstone1000/platform_config.h
+ create mode 100644 core/arch/arm/plat-corstone1000/sub.mk
+
 diff --git a/core/arch/arm/plat-corstone1000/conf.mk b/core/arch/arm/plat-corstone1000/conf.mk
 new file mode 100644
 index 00000000..b14dd442
@@ -196,6 +207,3 @@ index 00000000..8ddc2fd4
 @@ -0,0 +1,2 @@
 +global-incdirs-y += .
 +srcs-y += main.c
--- 
-2.17.1
-
meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0002-plat-corstone1000-reserve-3MB-CVM-memory-for-optee.patch +8 -7
index ea60fee2..69cd1913 100644
@@ -1,16 +1,20 @@
-Upstream-Status: Pending [Not submitted to upstream yet]
-Signed-off-by: Arpita S.K <[email protected]>
-
-From dbaf7a11e686d362eb09e63841eb718ea777dd03 Mon Sep 17 00:00:00 2001
+From 63469ad63866d07012fc98214ce2bfb84093f9bb Mon Sep 17 00:00:00 2001
 From: Vishnu Banavath <[email protected]>
 Date: Wed, 1 Sep 2021 16:46:42 +0100
 Subject: [PATCH] plat-corstone1000: reserve 3MB CVM memory for optee
 
+Upstream-Status: Pending [Not submitted to upstream yet]
+Signed-off-by: Arpita S.K <[email protected]>
+
 optee requires 3MB CVM memory to include SecurePartition's into
 it's image
 
 Signed-off-by: Vishnu Banavath <[email protected]>
 
+---
+ core/arch/arm/plat-corstone1000/conf.mk | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
 diff --git a/core/arch/arm/plat-corstone1000/conf.mk b/core/arch/arm/plat-corstone1000/conf.mk
 index b14dd442..7a4aa13c 100644
 --- a/core/arch/arm/plat-corstone1000/conf.mk
@@ -25,6 +29,3 @@ index b14dd442..7a4aa13c 100644
  CFG_SHMEM_START  ?= 0x86000000
  CFG_SHMEM_SIZE   ?= 0x00200000
  
--- 
-2.17.1
-
meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0003-plat-corstone1000-add-a-rule-in-Makefile-to-SP_MAKEF.patch +8 -7
index 9aec829c..296cad30 100644
@@ -1,17 +1,21 @@
-Upstream-Status: Pending [Not submitted to upstream yet]
-Signed-off-by: Vishnu Banavath <[email protected]>
-
-From 327290faefe16440c4975c9539b11d43c92bcf48 Mon Sep 17 00:00:00 2001
+From 66df8edb433ad11face32e4f6aab90e64222d38c Mon Sep 17 00:00:00 2001
 From: Vishnu Banavath <[email protected]>
 Date: Thu, 25 Nov 2021 06:20:48 +0000
 Subject: [PATCH] plat-corstone1000: add a rule in Makefile to SP_MAKEFILE_PATH
 
+Upstream-Status: Pending [Not submitted to upstream yet]
+Signed-off-by: Vishnu Banavath <[email protected]>
+
 This change is to provide an option to user to include
 secure manifest into optee-os Makefile so that the secure
 partition is part of optee-os image
 
 Signed-off-by: Vishnu Banavath <[email protected]>
 
+---
+ Makefile | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
 diff --git a/Makefile b/Makefile
 index f6fcea8b..21722939 100644
 --- a/Makefile
@@ -33,6 +37,3 @@ index f6fcea8b..21722939 100644
  include mk/checkconf.mk
  
  .PHONY: all
--- 
-2.17.1
-
meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0004-plat-corstone1000-increase-OPTEE-core-heap-size.patch +8 -7
index 42babb16..8c4178e2 100644
@@ -1,17 +1,21 @@
-Upstream-Status: Pending [Not submitted to upstream yet]
-Signed-off-by: Vishnu Banavath <[email protected]>
-
-From 5fdf7792ead29784718d30d8a8a5383a994e2fef Mon Sep 17 00:00:00 2001
+From a9b5146200935c53f3bb1f4d03ef6a674b194b92 Mon Sep 17 00:00:00 2001
 From: Vishnu Banavath <[email protected]>
 Date: Thu, 2 Dec 2021 12:51:11 +0000
 Subject: [PATCH] plat-corstone1000: increase OPTEE core heap size
 
+Upstream-Status: Pending [Not submitted to upstream yet]
+Signed-off-by: Vishnu Banavath <[email protected]>
+
 This change is to increase optee core heap size to 131072
 from its default value to fit openAMP and smm-gateway
 in SEL0
 
 Signed-off-by: Vishnu Banavath <[email protected]>
 
+---
+ core/arch/arm/plat-corstone1000/conf.mk | 1 +
+ 1 file changed, 1 insertion(+)
+
 diff --git a/core/arch/arm/plat-corstone1000/conf.mk b/core/arch/arm/plat-corstone1000/conf.mk
 index 7a4aa13c..65d652a4 100644
 --- a/core/arch/arm/plat-corstone1000/conf.mk
@@ -24,6 +28,3 @@ index 7a4aa13c..65d652a4 100644
  $(call force,CFG_PSCI_ARM64,y)
  $(call force,CFG_DT,y)
  $(call force,CFG_EXTERNAL_DTB_OVERLAY,y)
--- 
-2.17.1
-
meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0005-Fix-add-missing-error-check-during-SP-init.patch +8 -7
index 852067bc..dfdf56f8 100644
@@ -1,11 +1,11 @@
-Upstream-Status: Pending [Not submitted to upstream yet]
-Signed-off-by: Vishnu Banavath <[email protected]>
-
-From 4617f85b70c7e4206b244f3eaffdc62ac3744a17 Mon Sep 17 00:00:00 2001
+From 9ec42a39ba4b14bc99f66b3fb9fc227e4e25d0ed Mon Sep 17 00:00:00 2001
 From: Jelle Sels <[email protected]>
 Date: Mon, 10 May 2021 11:37:23 +0200
 Subject: [PATCH] Fix: add missing error check during SP init
 
+Upstream-Status: Pending [Not submitted to upstream yet]
+Signed-off-by: Vishnu Banavath <[email protected]>
+
 Error checking during SP initialization (sp_init_uuid()) was lacking.
 As a result an out of CORE HEAP situation resulted in a panic. This was
 due to lack of memory in the inflate() function of zlib.
@@ -13,6 +13,10 @@ due to lack of memory in the inflate() function of zlib.
 Signed-off-by: Jelle Sels <[email protected]>
 Change-Id: I287e2e2dd507feb45991b32ed264b3b6ad6fcd39
 
+---
+ core/arch/arm/kernel/sp.c | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
 diff --git a/core/arch/arm/kernel/sp.c b/core/arch/arm/kernel/sp.c
 index 4acbc2e2..23532a01 100644
 --- a/core/arch/arm/kernel/sp.c
@@ -35,6 +39,3 @@ index 4acbc2e2..23532a01 100644
  
  	return res;
  }
--- 
-2.25.1
-
meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0006-allow-setting-sysroot-for-libgcc-lookup.patch new file +35 -0
new file mode 100644
index 00000000..b838335e
@@ -0,0 +1,35 @@
+From 4b2c1a31efe0c5514ae27e696e75659b55e41259 Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Tue, 26 May 2020 14:38:02 -0500
+Subject: [PATCH] allow setting sysroot for libgcc lookup
+
+Explicitly pass the new variable LIBGCC_LOCATE_CFLAGS variable when searching
+for the compiler libraries as there's no easy way to reliably pass --sysroot
+otherwise.
+
+Upstream-Status: Pending [https://github.com/OP-TEE/optee_os/issues/4188]
+Signed-off-by: Ross Burton <[email protected]>
+
+---
+ mk/gcc.mk | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/mk/gcc.mk b/mk/gcc.mk
+index adc77a24..81bfa78a 100644
+--- a/mk/gcc.mk
++++ b/mk/gcc.mk
+@@ -13,11 +13,11 @@ nostdinc$(sm)	:= -nostdinc -isystem $(shell $(CC$(sm)) \
+ 			-print-file-name=include 2> /dev/null)
+ 
+ # Get location of libgcc from gcc
+-libgcc$(sm)  	:= $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) \
++libgcc$(sm)  	:= $(shell $(CC$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CFLAGS$(arch-bits-$(sm))) \
+ 			-print-libgcc-file-name 2> /dev/null)
+-libstdc++$(sm)	:= $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
++libstdc++$(sm)	:= $(shell $(CXX$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
+ 			-print-file-name=libstdc++.a 2> /dev/null)
+-libgcc_eh$(sm)	:= $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
++libgcc_eh$(sm)	:= $(shell $(CXX$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
+ 			-print-file-name=libgcc_eh.a 2> /dev/null)
+ 
+ # Define these to something to discover accidental use
meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0007-allow-setting-sysroot-for-clang.patch new file +30 -0
new file mode 100644
index 00000000..d5e36948
@@ -0,0 +1,30 @@
+From 992bed8a62c75aab034fe53d6329fa7c15cf06ee Mon Sep 17 00:00:00 2001
+From: Brett Warren <[email protected]>
+Date: Wed, 23 Sep 2020 09:27:34 +0100
+Subject: [PATCH] optee: enable clang support
+
+When compiling with clang, the LIBGCC_LOCATE_CFLAG variable used
+to provide a sysroot wasn't included, which results in not locating
+compiler-rt. This is mitigated by including the variable as ammended.
+
+Upstream-Status: Pending
+ChangeId: 8ba69a4b2eb8ebaa047cb266c9aa6c2c3da45701
+Signed-off-by: Brett Warren <[email protected]>
+
+---
+ mk/clang.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mk/clang.mk b/mk/clang.mk
+index 0f48c836..47465523 100644
+--- a/mk/clang.mk
++++ b/mk/clang.mk
+@@ -27,7 +27,7 @@ comp-cflags-warns-clang := -Wno-language-extension-token \
+ 
+ # Note, use the compiler runtime library (libclang_rt.builtins.*.a) instead of
+ # libgcc for clang
+-libgcc$(sm)	:= $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) \
++libgcc$(sm)	:= $(shell $(CC$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CFLAGS$(arch-bits-$(sm))) \
+ 			-rtlib=compiler-rt -print-libgcc-file-name 2> /dev/null)
+ 
+ # Core ASLR relies on the executable being ready to run from its preferred load
meta-arm-bsp/recipes-security/optee/files/optee-os/corstone1000/0008-no-warn-rwx-segments.patch new file +65 -0

65 lines not on this page · raw message

meta-arm-bsp/recipes-security/optee/optee-os_3.10.0.bb new file +3 -0
new file mode 100644
index 00000000..19beaa7c
@@ -0,0 +1,3 @@
+require recipes-security/optee/optee-os.inc
+
+SRCREV = "d1c635434c55b7d75eadf471bde04926bd1e50a7"
meta-arm-bsp/recipes-security/optee/optee-os_3.10.0.bbappend new file +6 -0
new file mode 100644
index 00000000..db1fc18b
@@ -0,0 +1,6 @@
+# Machine specific configurations
+
+MACHINE_OPTEE_OS_REQUIRE ?= ""
+MACHINE_OPTEE_OS_REQUIRE:corstone1000 = "optee-os-corstone1000.inc"
+
+require ${MACHINE_OPTEE_OS_REQUIRE}
meta-arm-bsp/recipes-security/optee/optee-os_3.14.0.bbappend +0 -1
index 7834b64b..e276fb86 100644
@@ -1,7 +1,6 @@
 # Machine specific configurations
 
 MACHINE_OPTEE_OS_REQUIRE ?= ""
-MACHINE_OPTEE_OS_REQUIRE:corstone1000 = "optee-os_corstone1000.inc"
 MACHINE_OPTEE_OS_REQUIRE:tc = "optee-os-tc.inc"
 
 require ${MACHINE_OPTEE_OS_REQUIRE}
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/3 arm-bsp/optee: rename corstone1000 files

The corstone1000 optee files have an underbar when it should have a hyphen in the naming scheme. Change this to match other files.

---
 ...corstone1000_common.inc => optee-os-corstone1000-common.inc} | 0
 .../{optee-os_corstone1000.inc => optee-os-corstone1000.inc}    | 2 +-
 .../recipes-security/optee/optee-spdevkit-corstone1000.inc      | 1 +
 .../recipes-security/optee/optee-spdevkit_corstone1000.inc      | 1 -
 meta-arm-bsp/recipes-security/optee/optee-spdevkit_git.bbappend | 2 +-
 5 files changed, 3 insertions(+), 3 deletions(-)
 rename meta-arm-bsp/recipes-security/optee/{optee-os_corstone1000_common.inc => optee-os-corstone1000-common.inc} (100%)
 rename meta-arm-bsp/recipes-security/optee/{optee-os_corstone1000.inc => optee-os-corstone1000.inc} (94%)
 create mode 100644 meta-arm-bsp/recipes-security/optee/optee-spdevkit-corstone1000.inc
 delete mode 100644 meta-arm-bsp/recipes-security/optee/optee-spdevkit_corstone1000.inc
meta-arm-bsp/recipes-security/optee/optee-os-corstone1000-common.inc renamed from meta-arm-bsp/recipes-security/optee/optee-os_corstone1000_common.inc +0 -0
similarity index 100%
rename from meta-arm-bsp/recipes-security/optee/optee-os_corstone1000_common.inc
rename to meta-arm-bsp/recipes-security/optee/optee-os-corstone1000-common.inc
meta-arm-bsp/recipes-security/optee/optee-os-corstone1000.inc renamed from meta-arm-bsp/recipes-security/optee/optee-os_corstone1000.inc +1 -1
similarity index 94%
rename from meta-arm-bsp/recipes-security/optee/optee-os_corstone1000.inc
rename to meta-arm-bsp/recipes-security/optee/optee-os-corstone1000.inc
index eb5f6df0..8ddf47e3 100644
@@ -1,4 +1,4 @@
-require optee-os_corstone1000_common.inc
+require optee-os-corstone1000-common.inc
 
 DEPENDS += " secure-partitions"
 EXTRA_OEMAKE +="'SP_PACKAGING_METHOD=embedded'"
meta-arm-bsp/recipes-security/optee/optee-spdevkit-corstone1000.inc new file +1 -0
new file mode 100644
index 00000000..db85ed8e
@@ -0,0 +1 @@
+require optee-os-corstone1000-common.inc
meta-arm-bsp/recipes-security/optee/optee-spdevkit_corstone1000.inc deleted +0 -1
deleted file mode 100644
index 363b0ed1..00000000
@@ -1 +0,0 @@
-require optee-os_corstone1000_common.inc
meta-arm-bsp/recipes-security/optee/optee-spdevkit_git.bbappend +1 -1
index 13e109cb..5f74ae45 100644
@@ -1,6 +1,6 @@
 # Machine specific configurations
 
 MACHINE_OPTEE_SPDEVKIT_REQUIRE ?= ""
-MACHINE_OPTEE_SPDEVKIT_REQUIRE:corstone1000 = "optee-spdevkit_corstone1000.inc"
+MACHINE_OPTEE_SPDEVKIT_REQUIRE:corstone1000 = "optee-spdevkit-corstone1000.inc"
 
 require ${MACHINE_OPTEE_SPDEVKIT_REQUIRE}
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH 3/3 arm/optee-spdevkit: add version to file name

In reply to Jon Mason
---
 ...optee-spdevkit_git.bbappend => optee-spdevkit_3.10.0.bbappend} | 0
 .../optee/{optee-spdevkit_git.bb => optee-spdevkit_3.10.0.bb}     | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
 rename meta-arm-bsp/recipes-security/optee/{optee-spdevkit_git.bbappend => optee-spdevkit_3.10.0.bbappend} (100%)
 rename meta-arm/recipes-security/optee/{optee-spdevkit_git.bb => optee-spdevkit_3.10.0.bb} (100%)
meta-arm-bsp/recipes-security/optee/optee-spdevkit_3.10.0.bbappend renamed from meta-arm-bsp/recipes-security/optee/optee-spdevkit_git.bbappend +0 -0
similarity index 100%
rename from meta-arm-bsp/recipes-security/optee/optee-spdevkit_git.bbappend
rename to meta-arm-bsp/recipes-security/optee/optee-spdevkit_3.10.0.bbappend
meta-arm/recipes-security/optee/optee-spdevkit_3.10.0.bb renamed from meta-arm/recipes-security/optee/optee-spdevkit_git.bb +0 -0
similarity index 100%
rename from meta-arm/recipes-security/optee/optee-spdevkit_git.bb
rename to meta-arm/recipes-security/optee/optee-spdevkit_3.10.0.bb
Signature · 1 line
2.17.1
Applied
#3 lore raw
In reply to Jon Mason
Quoted 3 lines · Jon Mason

A optee-os v3.10 recipe is necessary for corstone100, as it is actually using 3.10 SHA and then trying to apply patches for 3.14 (which is causing fuzz errors). Create this and use it to avoid these issues.

Applied, thanks!

[1/3] arm-bsp/optee-os: add 3.10 recipe for corstone1000

      commit: 9418819358942a8f2aeb8806b37c4d1de6ae0b34
[2/3] arm-bsp/optee: rename corstone1000 files
      commit: 503bfcdc363c96541e7a4452b2db20a71e8d5393
[3/3] arm/optee-spdevkit: add version to file name
      commit: 9ce6539660841de7d3b25e00876ff1ba30e0f7e7

Best regards,

Signature · 1 line
Jon Mason <[email protected]>