Skip to contentSkip to conversation

arm-bsp/optee: remove unused recipes

PATCH Applied Jon Mason 2 participants 4 messages Mar 10, 2023

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/3 arm-bsp/optee: remove unused recipes

---
 .../optee/optee-client/tee-supplicant.service | 10 ----
 .../optee/optee-client/tee-supplicant.sh      | 46 -------------------
 .../optee/optee-client_3.14.0.bb              |  3 --
 .../recipes-security/optee/optee-os_3.10.0.bb |  3 --
 4 files changed, 62 deletions(-)
 delete mode 100644 meta-arm-bsp/recipes-security/optee/optee-client/tee-supplicant.service
 delete mode 100644 meta-arm-bsp/recipes-security/optee/optee-client/tee-supplicant.sh
 delete mode 100644 meta-arm-bsp/recipes-security/optee/optee-client_3.14.0.bb
 delete mode 100644 meta-arm-bsp/recipes-security/optee/optee-os_3.10.0.bb
meta-arm-bsp/recipes-security/optee/optee-client/tee-supplicant.service deleted +0 -10
deleted file mode 100644
index c273832d..00000000
@@ -1,10 +0,0 @@
-[Unit]
-Description=TEE Supplicant
-
-[Service]
-User=root
-EnvironmentFile=-@sysconfdir@/default/tee-supplicant
-ExecStart=@sbindir@/tee-supplicant $OPTARGS
-
-[Install]
-WantedBy=basic.target
meta-arm-bsp/recipes-security/optee/optee-client/tee-supplicant.sh deleted +0 -46

46 lines not on this page · raw message

meta-arm-bsp/recipes-security/optee/optee-client_3.14.0.bb deleted +0 -3
deleted file mode 100644
index 641fb0a0..00000000
@@ -1,3 +0,0 @@
-require recipes-security/optee/optee-client.inc
-
-SRCREV = "06e1b32f6a7028e039c625b07cfc25fda0c17d53"
meta-arm-bsp/recipes-security/optee/optee-os_3.10.0.bb deleted +0 -3
deleted file mode 100644
index 19beaa7c..00000000
@@ -1,3 +0,0 @@
-require recipes-security/optee/optee-os.inc
-
-SRCREV = "d1c635434c55b7d75eadf471bde04926bd1e50a7"
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/3 arm/optee: optee-os include cleanup

optee-os-3_19.inc duplicates optee-os.inc. Remove that and cleanup the fallout. Also, remove unused 3.19 bbappend

---
 .../optee/optee-os_3.19.0.bbappend            |  6 --
 .../recipes-security/optee/optee-os-3_19.inc  | 82 -------------------
 .../optee/optee-os-tadevkit_3.18.0.bb         |  1 -
 .../recipes-security/optee/optee-os_3.18.0.bb |  2 +-
 .../recipes-security/optee/optee-os_3.19.0.bb |  9 +-
 5 files changed, 6 insertions(+), 94 deletions(-)
 delete mode 100644 meta-arm-bsp/recipes-security/optee/optee-os_3.19.0.bbappend
 delete mode 100644 meta-arm/recipes-security/optee/optee-os-3_19.inc
meta-arm-bsp/recipes-security/optee/optee-os_3.19.0.bbappend deleted +0 -6
deleted file mode 100644
index f80e09f8..00000000
@@ -1,6 +0,0 @@
-# Machine specific configurations
-
-MACHINE_OPTEE_OS_REQUIRE ?= ""
-MACHINE_OPTEE_OS_REQUIRE:n1sdp = "optee-os-n1sdp.inc"
-
-require ${MACHINE_OPTEE_OS_REQUIRE}
meta-arm/recipes-security/optee/optee-os-3_19.inc deleted +0 -82

82 lines not on this page · raw message

meta-arm/recipes-security/optee/optee-os-tadevkit_3.18.0.bb +0 -1
index 0982df3d..ff0baf8c 100644
@@ -1,4 +1,3 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os:"
 require optee-os_3.18.0.bb
 
 SUMMARY = "OP-TEE Trusted OS TA devkit"
meta-arm/recipes-security/optee/optee-os_3.18.0.bb +1 -1
index 31da5ded..c51d4568 100644
@@ -2,7 +2,7 @@ require optee-os.inc
 
 DEPENDS += "dtc-native"
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-3.18.0:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-3.18.0:"
 
 SRCREV = "1ee647035939e073a2e8dddb727c0f019cc035f1"
 SRC_URI:append = " \
meta-arm/recipes-security/optee/optee-os_3.19.0.bb +5 -4
index 656a0974..c08faf6b 100644
@@ -1,9 +1,10 @@
-require optee-os-3_19.inc
+require optee-os.inc
 
 DEPENDS += "dtc-native"
 
-SRCREV = "afacf356f9593a7f83cae9f96026824ec242ff52"
+FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-3.19.0:"
 
+SRCREV = "afacf356f9593a7f83cae9f96026824ec242ff52"
 SRC_URI:append = " \
-    file://0001-core-Define-section-attributes-for-clang.patch \ 
-    "
+    file://0001-core-Define-section-attributes-for-clang.patch \
+   "
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 3/3 arm/optee-os: update to 3.20.0

In reply to Jon Mason

Update to the latest version and regenerate the patches via devtool. This causes some patch renumeration to occur, which causes some other modifications.

---
 .../optee/optee-os-corstone1000-common.inc    |   2 +-
 ...w-setting-sysroot-for-libgcc-lookup.patch} |   0
 ... => 0002-optee-enable-clang-support.patch} |   0
 ...-core-link-add-no-warn-rwx-segments.patch} |   0
 ...Define-section-attributes-for-clang.patch} | 126 +++++++++--------
 ...005-core-ldelf-link-add-z-execstack.patch} |   0
 ...butee-ta-add-.note.GNU-stack-sectio.patch} |   0
 .../0009-add-z-execstack.patch                |  94 -------------
 .../0010-add-note-GNU-stack-section.patch     | 128 ------------------
 ...w-setting-sysroot-for-libgcc-lookup.patch} |   0
 .../0002-optee-enable-clang-support.patch}    |   6 +-
 ...-core-link-add-no-warn-rwx-segments.patch} |   8 +-
 ...Define-section-attributes-for-clang.patch} |  12 +-
 meta-arm/recipes-security/optee/optee-os.inc  |   6 +-
 .../recipes-security/optee/optee-os_3.18.0.bb |   6 +-
 .../recipes-security/optee/optee-os_3.19.0.bb |  10 --
 .../recipes-security/optee/optee-os_3.20.0.bb |  10 ++
 17 files changed, 99 insertions(+), 309 deletions(-)
 rename meta-arm/recipes-security/optee/optee-os-3.18.0/{0006-allow-setting-sysroot-for-libgcc-lookup.patch => 0001-allow-setting-sysroot-for-libgcc-lookup.patch} (100%)
 rename meta-arm/recipes-security/optee/optee-os-3.18.0/{0007-allow-setting-sysroot-for-clang.patch => 0002-optee-enable-clang-support.patch} (100%)
 rename meta-arm/recipes-security/optee/optee-os-3.18.0/{0008-no-warn-rwx-segments.patch => 0003-core-link-add-no-warn-rwx-segments.patch} (100%)
 rename meta-arm/recipes-security/optee/optee-os-3.18.0/{0001-core-Define-section-attributes-for-clang.patch => 0004-core-Define-section-attributes-for-clang.patch} (87%)
 rename meta-arm/recipes-security/optee/optee-os-3.18.0/{0009-add-z-execstack.patch => 0005-core-ldelf-link-add-z-execstack.patch} (100%)
 rename meta-arm/recipes-security/optee/optee-os-3.18.0/{0010-add-note-GNU-stack-section.patch => 0006-arm32-libutils-libutee-ta-add-.note.GNU-stack-sectio.patch} (100%)
 delete mode 100644 meta-arm/recipes-security/optee/optee-os-3.19.0/0009-add-z-execstack.patch
 delete mode 100644 meta-arm/recipes-security/optee/optee-os-3.19.0/0010-add-note-GNU-stack-section.patch
 rename meta-arm/recipes-security/optee/{optee-os-3.19.0/0006-allow-setting-sysroot-for-libgcc-lookup.patch => optee-os-3.20.0/0001-allow-setting-sysroot-for-libgcc-lookup.patch} (100%)
 rename meta-arm/recipes-security/optee/{optee-os-3.19.0/0007-allow-setting-sysroot-for-clang.patch => optee-os-3.20.0/0002-optee-enable-clang-support.patch} (86%)
 rename meta-arm/recipes-security/optee/{optee-os-3.19.0/0008-no-warn-rwx-segments.patch => optee-os-3.20.0/0003-core-link-add-no-warn-rwx-segments.patch} (93%)
 rename meta-arm/recipes-security/optee/{optee-os-3.19.0/0001-core-Define-section-attributes-for-clang.patch => optee-os-3.20.0/0004-core-Define-section-attributes-for-clang.patch} (97%)
 delete mode 100644 meta-arm/recipes-security/optee/optee-os_3.19.0.bb
 create mode 100644 meta-arm/recipes-security/optee/optee-os_3.20.0.bb
meta-arm-bsp/recipes-security/optee/optee-os-corstone1000-common.inc +1 -1
index c54e0041..71b5ee62 100644
@@ -2,7 +2,7 @@ SRCREV = "42f6617108fa43712652ef52f9d5b4ec5b2665f8"
 PV = "3.18.0+git${SRCPV}"
 
 SRC_URI:remove = " \
-                  file://0008-no-warn-rwx-segments.patch \
+                  file://0003-core-link-add-no-warn-rwx-segments.patch \
                  "
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/files/optee-os/corstone1000:"
meta-arm/recipes-security/optee/optee-os-3.18.0/0001-allow-setting-sysroot-for-libgcc-lookup.patch renamed from meta-arm/recipes-security/optee/optee-os-3.18.0/0006-allow-setting-sysroot-for-libgcc-lookup.patch +0 -0
similarity index 100%
rename from meta-arm/recipes-security/optee/optee-os-3.18.0/0006-allow-setting-sysroot-for-libgcc-lookup.patch
rename to meta-arm/recipes-security/optee/optee-os-3.18.0/0001-allow-setting-sysroot-for-libgcc-lookup.patch
meta-arm/recipes-security/optee/optee-os-3.18.0/0002-optee-enable-clang-support.patch renamed from meta-arm/recipes-security/optee/optee-os-3.18.0/0007-allow-setting-sysroot-for-clang.patch +0 -0
similarity index 100%
rename from meta-arm/recipes-security/optee/optee-os-3.18.0/0007-allow-setting-sysroot-for-clang.patch
rename to meta-arm/recipes-security/optee/optee-os-3.18.0/0002-optee-enable-clang-support.patch
meta-arm/recipes-security/optee/optee-os-3.18.0/0003-core-link-add-no-warn-rwx-segments.patch renamed from meta-arm/recipes-security/optee/optee-os-3.18.0/0008-no-warn-rwx-segments.patch +0 -0
similarity index 100%
rename from meta-arm/recipes-security/optee/optee-os-3.18.0/0008-no-warn-rwx-segments.patch
rename to meta-arm/recipes-security/optee/optee-os-3.18.0/0003-core-link-add-no-warn-rwx-segments.patch
meta-arm/recipes-security/optee/optee-os-3.18.0/0004-core-Define-section-attributes-for-clang.patch renamed from meta-arm/recipes-security/optee/optee-os-3.18.0/0001-core-Define-section-attributes-for-clang.patch +68 -58

165 lines not on this page · raw message

meta-arm/recipes-security/optee/optee-os-3.18.0/0005-core-ldelf-link-add-z-execstack.patch renamed from meta-arm/recipes-security/optee/optee-os-3.18.0/0009-add-z-execstack.patch +0 -0
similarity index 100%
rename from meta-arm/recipes-security/optee/optee-os-3.18.0/0009-add-z-execstack.patch
rename to meta-arm/recipes-security/optee/optee-os-3.18.0/0005-core-ldelf-link-add-z-execstack.patch
meta-arm/recipes-security/optee/optee-os-3.18.0/0006-arm32-libutils-libutee-ta-add-.note.GNU-stack-sectio.patch renamed from meta-arm/recipes-security/optee/optee-os-3.18.0/0010-add-note-GNU-stack-section.patch +0 -0
similarity index 100%
rename from meta-arm/recipes-security/optee/optee-os-3.18.0/0010-add-note-GNU-stack-section.patch
rename to meta-arm/recipes-security/optee/optee-os-3.18.0/0006-arm32-libutils-libutee-ta-add-.note.GNU-stack-sectio.patch
meta-arm/recipes-security/optee/optee-os-3.19.0/0009-add-z-execstack.patch deleted +0 -94

94 lines not on this page · raw message

meta-arm/recipes-security/optee/optee-os-3.19.0/0010-add-note-GNU-stack-section.patch deleted +0 -128

128 lines not on this page · raw message

meta-arm/recipes-security/optee/optee-os-3.20.0/0001-allow-setting-sysroot-for-libgcc-lookup.patch renamed from meta-arm/recipes-security/optee/optee-os-3.19.0/0006-allow-setting-sysroot-for-libgcc-lookup.patch +0 -0
similarity index 100%
rename from meta-arm/recipes-security/optee/optee-os-3.19.0/0006-allow-setting-sysroot-for-libgcc-lookup.patch
rename to meta-arm/recipes-security/optee/optee-os-3.20.0/0001-allow-setting-sysroot-for-libgcc-lookup.patch
meta-arm/recipes-security/optee/optee-os-3.20.0/0002-optee-enable-clang-support.patch renamed from meta-arm/recipes-security/optee/optee-os-3.19.0/0007-allow-setting-sysroot-for-clang.patch +3 -3
similarity index 86%
rename from meta-arm/recipes-security/optee/optee-os-3.19.0/0007-allow-setting-sysroot-for-clang.patch
rename to meta-arm/recipes-security/optee/optee-os-3.20.0/0002-optee-enable-clang-support.patch
index 067ba6eb..af0ec94f 100644
@@ -1,4 +1,4 @@
-From db9e44af75c7cfd3316cab15aaa387383df3e57e Mon Sep 17 00:00:00 2001
+From 8846ab2b37781364088cc5c02b6bc6f518a66a0a 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
@@ -16,10 +16,10 @@ Signed-off-by: Brett Warren <[email protected]>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/mk/clang.mk b/mk/clang.mk
-index c141a3f2..7d067cc0 100644
+index a045beee..1ebe2f70 100644
 --- a/mk/clang.mk
 +++ b/mk/clang.mk
-@@ -27,7 +27,7 @@ comp-cflags-warns-clang := -Wno-language-extension-token \
+@@ -30,7 +30,7 @@ comp-cflags-warns-clang := -Wno-language-extension-token \
  
  # Note, use the compiler runtime library (libclang_rt.builtins.*.a) instead of
  # libgcc for clang
meta-arm/recipes-security/optee/optee-os-3.20.0/0003-core-link-add-no-warn-rwx-segments.patch renamed from meta-arm/recipes-security/optee/optee-os-3.19.0/0008-no-warn-rwx-segments.patch +6 -2
similarity index 93%
rename from meta-arm/recipes-security/optee/optee-os-3.19.0/0008-no-warn-rwx-segments.patch
rename to meta-arm/recipes-security/optee/optee-os-3.20.0/0003-core-link-add-no-warn-rwx-segments.patch
index 64a3d7e5..5740461f 100644
@@ -1,4 +1,4 @@
-From cf2a2451f4e9300532d677bb3a8315494a3b3a82 Mon Sep 17 00:00:00 2001
+From 188a39b139e0e2ccceb22bcf63559b451f0483e0 Mon Sep 17 00:00:00 2001
 From: Jerome Forissier <[email protected]>
 Date: Fri, 5 Aug 2022 09:48:03 +0200
 Subject: [PATCH] core: link: add --no-warn-rwx-segments
@@ -19,8 +19,12 @@ Reported-by: Dominique Martinet <[email protected]>
 Signed-off-by: Jerome Forissier <[email protected]>
 Acked-by: Jens Wiklander <[email protected]>
 
+---
+ core/arch/arm/kernel/link.mk | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
 diff --git a/core/arch/arm/kernel/link.mk b/core/arch/arm/kernel/link.mk
-index 0e96e606c..3fbcb6804 100644
+index 0e96e606..3fbcb680 100644
 --- a/core/arch/arm/kernel/link.mk
 +++ b/core/arch/arm/kernel/link.mk
 @@ -37,6 +37,7 @@ link-ldflags += --sort-section=alignment
meta-arm/recipes-security/optee/optee-os-3.20.0/0004-core-Define-section-attributes-for-clang.patch renamed from meta-arm/recipes-security/optee/optee-os-3.19.0/0001-core-Define-section-attributes-for-clang.patch +5 -7
similarity index 97%
rename from meta-arm/recipes-security/optee/optee-os-3.19.0/0001-core-Define-section-attributes-for-clang.patch
rename to meta-arm/recipes-security/optee/optee-os-3.20.0/0004-core-Define-section-attributes-for-clang.patch
index a1dc251a..f94d19ff 100644
@@ -1,7 +1,7 @@
-From ff1b556ac2cd6bbb857a1ac03e0557eb490bc845 Mon Sep 17 00:00:00 2001
+From e74d8a02edd8c431c87786e22dbceee8e1e85bb8 Mon Sep 17 00:00:00 2001
 From: Emekcan Aras <[email protected]>
 Date: Wed, 21 Dec 2022 10:55:58 +0000
-Subject: [PATCH] [PATCH] core: Define section attributes for clang
+Subject: [PATCH] core: Define section attributes for clang
 
 Clang's attribute section is not same as gcc, here we need to add flags
 to sections so they can be eventually collected by linker into final
@@ -30,6 +30,7 @@ going and match the functionality with gcc.
 
 Upstream-Status: Pending
 Signed-off-by: Khem Raj <[email protected]>
+
 ---
  core/arch/arm/kernel/thread.c    | 19 +++++++++++++++--
  core/arch/arm/mm/core_mmu_lpae.c | 35 +++++++++++++++++++++++++++----
@@ -39,7 +40,7 @@ Signed-off-by: Khem Raj <[email protected]>
  5 files changed, 104 insertions(+), 11 deletions(-)
 
 diff --git a/core/arch/arm/kernel/thread.c b/core/arch/arm/kernel/thread.c
-index 05dbbe56..8e6ea034 100644
+index 1cf76a0c..1e7f9f96 100644
 --- a/core/arch/arm/kernel/thread.c
 +++ b/core/arch/arm/kernel/thread.c
 @@ -44,15 +44,30 @@ static size_t thread_user_kcode_size __nex_bss;
@@ -185,7 +186,7 @@ index cd85bd22..3e18f54f 100644
  struct mmu_partition {
  	l1_xlat_tbl_t *l1_table;
 diff --git a/core/arch/arm/mm/pgt_cache.c b/core/arch/arm/mm/pgt_cache.c
-index a7b1b10e..489859ce 100644
+index 79553c6d..b9efdf42 100644
 --- a/core/arch/arm/mm/pgt_cache.c
 +++ b/core/arch/arm/mm/pgt_cache.c
 @@ -410,8 +410,18 @@ void pgt_init(void)
@@ -238,6 +239,3 @@ index d1f2f382..8de124ae 100644
  #define GET_STACK(stack) ((vaddr_t)(stack) + STACK_SIZE(stack))
  
  DECLARE_STACK(stack_tmp, CFG_TEE_CORE_NB_CORE, STACK_TMP_SIZE,
--- 
-2.17.1
-
meta-arm/recipes-security/optee/optee-os.inc +3 -3
index a03ea6a3..bb6974b2 100644
@@ -17,9 +17,9 @@ DEPENDS:append:toolchain-clang = " compiler-rt"
 SRC_URI = "git://github.com/OP-TEE/optee_os.git;branch=master;protocol=https"
 
 SRC_URI:append = " \
-    file://0006-allow-setting-sysroot-for-libgcc-lookup.patch \
-    file://0007-allow-setting-sysroot-for-clang.patch \
-    file://0008-no-warn-rwx-segments.patch \
+    file://0001-allow-setting-sysroot-for-libgcc-lookup.patch \
+    file://0002-optee-enable-clang-support.patch \
+    file://0003-core-link-add-no-warn-rwx-segments.patch \
    "
 
 S = "${WORKDIR}/git"
meta-arm/recipes-security/optee/optee-os_3.18.0.bb +3 -3
index c51d4568..41b65c2b 100644
@@ -6,7 +6,7 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-3.18.0:"
 
 SRCREV = "1ee647035939e073a2e8dddb727c0f019cc035f1"
 SRC_URI:append = " \
-    file://0001-core-Define-section-attributes-for-clang.patch \
-    file://0009-add-z-execstack.patch \
-    file://0010-add-note-GNU-stack-section.patch \
+    file://0004-core-Define-section-attributes-for-clang.patch \
+    file://0005-core-ldelf-link-add-z-execstack.patch \
+    file://0006-arm32-libutils-libutee-ta-add-.note.GNU-stack-sectio.patch \
    "
meta-arm/recipes-security/optee/optee-os_3.19.0.bb deleted +0 -10
deleted file mode 100644
index c08faf6b..00000000
@@ -1,10 +0,0 @@
-require optee-os.inc
-
-DEPENDS += "dtc-native"
-
-FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-3.19.0:"
-
-SRCREV = "afacf356f9593a7f83cae9f96026824ec242ff52"
-SRC_URI:append = " \
-    file://0001-core-Define-section-attributes-for-clang.patch \
-   "
meta-arm/recipes-security/optee/optee-os_3.20.0.bb new file +10 -0
new file mode 100644
index 00000000..5f4b066a
@@ -0,0 +1,10 @@
+require optee-os.inc
+
+DEPENDS += "dtc-native"
+
+FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-3.20.0:"
+
+SRCREV = "8e74d47616a20eaa23ca692f4bbbf917a236ed94"
+SRC_URI:append = " \
+    file://0004-core-Define-section-attributes-for-clang.patch \
+   "
Signature · 1 line
2.25.1
Applied
#3 lore raw
In reply to Jon Mason
Quoted 1 line · Jon Mason

Applied, thanks!

[1/3] arm-bsp/optee: remove unused recipes

      commit: 8b581f3de3d87bd5868f3e8aee65fa0a51282f28
[2/3] arm/optee: optee-os include cleanup
      commit: fa5fffd287ae3fa9aef5d95512ec76319fbcde62
[3/3] arm/optee-os: update to 3.20.0
      commit: dcc81b56ffddee9736d9b97bc4786e4fa8b69dfa

Best regards,

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