All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version
@ 2022-11-17 16:59 Jon Mason
  2022-11-17 16:59 ` [PATCH 2/2] arm/trusted-services: limit the ts compatible machines Jon Mason
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jon Mason @ 2022-11-17 16:59 UTC (permalink / raw)
  To: meta-arm

"git" is the version and need not be part of the bbappend name.  Since
this isn't being done in any other part of meta-arm-bsp (and not
uniformly in the same directory), rename the bbappends to have the %
wild card.

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 .../trusted-services/{libts_git.bbappend => libts_%.bbappend}     | 0
 ...to-api-test_git.bbappend => ts-psa-crypto-api-test_%.bbappend} | 0
 ...a-iat-api-test_git.bbappend => ts-psa-iat-api-test_%.bbappend} | 0
 ...a-its-api-test_git.bbappend => ts-psa-its-api-test_%.bbappend} | 0
 ...psa-ps-api-test_git.bbappend => ts-psa-ps-api-test_%.bbappend} | 0
 5 files changed, 0 insertions(+), 0 deletions(-)
 rename meta-arm-bsp/recipes-security/trusted-services/{libts_git.bbappend => libts_%.bbappend} (100%)
 rename meta-arm-bsp/recipes-security/trusted-services/{ts-psa-crypto-api-test_git.bbappend => ts-psa-crypto-api-test_%.bbappend} (100%)
 rename meta-arm-bsp/recipes-security/trusted-services/{ts-psa-iat-api-test_git.bbappend => ts-psa-iat-api-test_%.bbappend} (100%)
 rename meta-arm-bsp/recipes-security/trusted-services/{ts-psa-its-api-test_git.bbappend => ts-psa-its-api-test_%.bbappend} (100%)
 rename meta-arm-bsp/recipes-security/trusted-services/{ts-psa-ps-api-test_git.bbappend => ts-psa-ps-api-test_%.bbappend} (100%)

diff --git a/meta-arm-bsp/recipes-security/trusted-services/libts_git.bbappend b/meta-arm-bsp/recipes-security/trusted-services/libts_%.bbappend
similarity index 100%
rename from meta-arm-bsp/recipes-security/trusted-services/libts_git.bbappend
rename to meta-arm-bsp/recipes-security/trusted-services/libts_%.bbappend
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-psa-crypto-api-test_git.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-psa-crypto-api-test_%.bbappend
similarity index 100%
rename from meta-arm-bsp/recipes-security/trusted-services/ts-psa-crypto-api-test_git.bbappend
rename to meta-arm-bsp/recipes-security/trusted-services/ts-psa-crypto-api-test_%.bbappend
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-psa-iat-api-test_git.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-psa-iat-api-test_%.bbappend
similarity index 100%
rename from meta-arm-bsp/recipes-security/trusted-services/ts-psa-iat-api-test_git.bbappend
rename to meta-arm-bsp/recipes-security/trusted-services/ts-psa-iat-api-test_%.bbappend
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-psa-its-api-test_git.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-psa-its-api-test_%.bbappend
similarity index 100%
rename from meta-arm-bsp/recipes-security/trusted-services/ts-psa-its-api-test_git.bbappend
rename to meta-arm-bsp/recipes-security/trusted-services/ts-psa-its-api-test_%.bbappend
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-psa-ps-api-test_git.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-psa-ps-api-test_%.bbappend
similarity index 100%
rename from meta-arm-bsp/recipes-security/trusted-services/ts-psa-ps-api-test_git.bbappend
rename to meta-arm-bsp/recipes-security/trusted-services/ts-psa-ps-api-test_%.bbappend
-- 
2.17.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] arm/trusted-services: limit the ts compatible machines
  2022-11-17 16:59 [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version Jon Mason
@ 2022-11-17 16:59 ` Jon Mason
  2022-11-17 18:13 ` [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version Jon Mason
  2022-11-21 20:00 ` Jon Mason
  2 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2022-11-17 16:59 UTC (permalink / raw)
  To: meta-arm

World builds are trying to build trusted services, which has a
dependency on meta-python.  To avoid having to add a layer dependency
for meta-arm on meta-python, limit the compatible machines to the ones
using it (which already have a meta-python dependency).

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 .../packagegroups/packagegroup-ts-tests.bbappend             | 1 +
 .../recipes-security/trusted-services/libts_%.bbappend       | 2 +-
 .../{ts-corstone1000.inc => ts-arm-platforms.inc}            | 4 +++-
 .../recipes-security/trusted-services/ts-demo_%.bbappend     | 4 ++++
 .../recipes-security/trusted-services/ts-newlib_%.bbappend   | 5 +++--
 .../recipes-security/trusted-services/ts-psa-api-test.inc    | 2 +-
 .../trusted-services/ts-service-test_%.bbappend              | 4 ++++
 .../trusted-services/ts-sp-se-proxy_%.bbappend               | 2 +-
 .../trusted-services/ts-sp-smm-gateway_%.bbappend            | 2 +-
 .../trusted-services/ts-uefi-test_%.bbappend                 | 4 ++++
 .../recipes-security/packagegroups/packagegroup-ts-tests.bb  | 2 ++
 .../recipes-security/trusted-services/trusted-services.inc   | 2 ++
 12 files changed, 27 insertions(+), 7 deletions(-)
 create mode 100644 meta-arm-bsp/recipes-security/packagegroups/packagegroup-ts-tests.bbappend
 rename meta-arm-bsp/recipes-security/trusted-services/{ts-corstone1000.inc => ts-arm-platforms.inc} (94%)
 create mode 100644 meta-arm-bsp/recipes-security/trusted-services/ts-demo_%.bbappend
 create mode 100644 meta-arm-bsp/recipes-security/trusted-services/ts-service-test_%.bbappend
 create mode 100644 meta-arm-bsp/recipes-security/trusted-services/ts-uefi-test_%.bbappend

diff --git a/meta-arm-bsp/recipes-security/packagegroups/packagegroup-ts-tests.bbappend b/meta-arm-bsp/recipes-security/packagegroups/packagegroup-ts-tests.bbappend
new file mode 100644
index 00000000..dddc59af
--- /dev/null
+++ b/meta-arm-bsp/recipes-security/packagegroups/packagegroup-ts-tests.bbappend
@@ -0,0 +1 @@
+COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
diff --git a/meta-arm-bsp/recipes-security/trusted-services/libts_%.bbappend b/meta-arm-bsp/recipes-security/trusted-services/libts_%.bbappend
index a885d387..422bb708 100644
--- a/meta-arm-bsp/recipes-security/trusted-services/libts_%.bbappend
+++ b/meta-arm-bsp/recipes-security/trusted-services/libts_%.bbappend
@@ -1,5 +1,5 @@
 MACHINE_TS_REQUIRE ?= ""
-MACHINE_TS_REQUIRE:corstone1000 = "ts-corstone1000.inc"
+MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
 
 require ${MACHINE_TS_REQUIRE}
 
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-corstone1000.inc b/meta-arm-bsp/recipes-security/trusted-services/ts-arm-platforms.inc
similarity index 94%
rename from meta-arm-bsp/recipes-security/trusted-services/ts-corstone1000.inc
rename to meta-arm-bsp/recipes-security/trusted-services/ts-arm-platforms.inc
index e97fb593..5533e74e 100644
--- a/meta-arm-bsp/recipes-security/trusted-services/ts-corstone1000.inc
+++ b/meta-arm-bsp/recipes-security/trusted-services/ts-arm-platforms.inc
@@ -1,4 +1,6 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/corstone1000:"
+FILESEXTRAPATHS:prepend:corstone1000 := "${THISDIR}/corstone1000:"
+
+COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
 
 SRC_URI:append:corstone1000  = " \
     file://0001-Add-openamp-to-SE-proxy-deployment.patch;patchdir=../trusted-services \
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-demo_%.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-demo_%.bbappend
new file mode 100644
index 00000000..8e17d377
--- /dev/null
+++ b/meta-arm-bsp/recipes-security/trusted-services/ts-demo_%.bbappend
@@ -0,0 +1,4 @@
+MACHINE_TS_REQUIRE ?= ""
+MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
+
+require ${MACHINE_TS_REQUIRE}
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend
index 845f8834..b500fd65 100644
--- a/meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend
+++ b/meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend
@@ -1,6 +1,7 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/corstone1000/${PN}:"
+FILESEXTRAPATHS:prepend:corstone1000 := "${THISDIR}/corstone1000/${PN}:"
+
+COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
 
 SRC_URI:append:corstone1000 = " \
   file://0001-newlib-memcpy-remove-optimized-version.patch;patchdir=../newlib \
 "
-
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-psa-api-test.inc b/meta-arm-bsp/recipes-security/trusted-services/ts-psa-api-test.inc
index 50ff960d..5936a25e 100644
--- a/meta-arm-bsp/recipes-security/trusted-services/ts-psa-api-test.inc
+++ b/meta-arm-bsp/recipes-security/trusted-services/ts-psa-api-test.inc
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS:prepend := "${THISDIR}/corstone1000/psa-apitest:"
 
-include ts-corstone1000.inc
+include ts-arm-platforms.inc
 
 SRC_URI:append:corstone1000  = " \
     file://0001-corstone1000-port-crypto-config.patch;patchdir=../psatest \
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-service-test_%.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-service-test_%.bbappend
new file mode 100644
index 00000000..8e17d377
--- /dev/null
+++ b/meta-arm-bsp/recipes-security/trusted-services/ts-service-test_%.bbappend
@@ -0,0 +1,4 @@
+MACHINE_TS_REQUIRE ?= ""
+MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
+
+require ${MACHINE_TS_REQUIRE}
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-sp-se-proxy_%.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-sp-se-proxy_%.bbappend
index f39d2395..8d93cca5 100644
--- a/meta-arm-bsp/recipes-security/trusted-services/ts-sp-se-proxy_%.bbappend
+++ b/meta-arm-bsp/recipes-security/trusted-services/ts-sp-se-proxy_%.bbappend
@@ -1,5 +1,5 @@
 MACHINE_TS_REQUIRE ?= ""
-MACHINE_TS_REQUIRE:corstone1000 = "ts-corstone1000.inc"
+MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
 
 require ${MACHINE_TS_REQUIRE}
 
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-sp-smm-gateway_%.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-sp-smm-gateway_%.bbappend
index f39d2395..8d93cca5 100644
--- a/meta-arm-bsp/recipes-security/trusted-services/ts-sp-smm-gateway_%.bbappend
+++ b/meta-arm-bsp/recipes-security/trusted-services/ts-sp-smm-gateway_%.bbappend
@@ -1,5 +1,5 @@
 MACHINE_TS_REQUIRE ?= ""
-MACHINE_TS_REQUIRE:corstone1000 = "ts-corstone1000.inc"
+MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
 
 require ${MACHINE_TS_REQUIRE}
 
diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-uefi-test_%.bbappend b/meta-arm-bsp/recipes-security/trusted-services/ts-uefi-test_%.bbappend
new file mode 100644
index 00000000..8e17d377
--- /dev/null
+++ b/meta-arm-bsp/recipes-security/trusted-services/ts-uefi-test_%.bbappend
@@ -0,0 +1,4 @@
+MACHINE_TS_REQUIRE ?= ""
+MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
+
+require ${MACHINE_TS_REQUIRE}
diff --git a/meta-arm/recipes-security/packagegroups/packagegroup-ts-tests.bb b/meta-arm/recipes-security/packagegroups/packagegroup-ts-tests.bb
index b9c6507c..25ee2f5a 100644
--- a/meta-arm/recipes-security/packagegroups/packagegroup-ts-tests.bb
+++ b/meta-arm/recipes-security/packagegroups/packagegroup-ts-tests.bb
@@ -5,6 +5,8 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 inherit packagegroup
 
 COMPATIBLE_HOST = "aarch64.*-linux"
+COMPATIBLE_MACHINE ?= "invalid"
+COMPATIBLE_MACHINE:qemuarm64-secureboot = "qemuarm64-secureboot"
 
 PACKAGES = "${PN} ${PN}-psa"
 
diff --git a/meta-arm/recipes-security/trusted-services/trusted-services.inc b/meta-arm/recipes-security/trusted-services/trusted-services.inc
index 59f461d3..c64a1d41 100644
--- a/meta-arm/recipes-security/trusted-services/trusted-services.inc
+++ b/meta-arm/recipes-security/trusted-services/trusted-services.inc
@@ -6,6 +6,8 @@ LICENSE = "Apache-2.0 & BSD-3-Clause & Zlib"
 inherit python3native cmake
 
 COMPATIBLE_HOST = "aarch64.*-linux"
+COMPATIBLE_MACHINE ?= "invalid"
+COMPATIBLE_MACHINE:qemuarm64-secureboot = "qemuarm64-secureboot"
 
 require trusted-services-src.inc
 
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version
  2022-11-17 16:59 [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version Jon Mason
  2022-11-17 16:59 ` [PATCH 2/2] arm/trusted-services: limit the ts compatible machines Jon Mason
@ 2022-11-17 18:13 ` Jon Mason
  2022-11-21 20:00 ` Jon Mason
  2 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2022-11-17 18:13 UTC (permalink / raw)
  To: meta-arm, Jon Mason

On Thu, 17 Nov 2022 11:59:40 -0500, Jon Mason wrote:
> "git" is the version and need not be part of the bbappend name.  Since
> this isn't being done in any other part of meta-arm-bsp (and not
> uniformly in the same directory), rename the bbappends to have the %
> wild card.

Applied, thanks!

[1/2] arm-bsp/trusted-services: rename bbappends with git version
      commit: a68a2a206eeb1427b4217b8831439cbe56341a14
[2/2] arm/trusted-services: limit the ts compatible machines
      commit: 7b4c17632d07044c1a580a90f20a2dbca3310fe6

Best regards,
-- 
Jon Mason <jon.mason@arm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version
  2022-11-17 16:59 [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version Jon Mason
  2022-11-17 16:59 ` [PATCH 2/2] arm/trusted-services: limit the ts compatible machines Jon Mason
  2022-11-17 18:13 ` [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version Jon Mason
@ 2022-11-21 20:00 ` Jon Mason
  2 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2022-11-21 20:00 UTC (permalink / raw)
  To: meta-arm, Jon Mason

On Thu, 17 Nov 2022 11:59:40 -0500, Jon Mason wrote:
> "git" is the version and need not be part of the bbappend name.  Since
> this isn't being done in any other part of meta-arm-bsp (and not
> uniformly in the same directory), rename the bbappends to have the %
> wild card.

Applied, thanks!

[1/2] arm-bsp/trusted-services: rename bbappends with git version
      commit: a68a2a206eeb1427b4217b8831439cbe56341a14
[2/2] arm/trusted-services: limit the ts compatible machines
      commit: 7b4c17632d07044c1a580a90f20a2dbca3310fe6

Best regards,
-- 
Jon Mason <jon.mason@arm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-21 20:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17 16:59 [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version Jon Mason
2022-11-17 16:59 ` [PATCH 2/2] arm/trusted-services: limit the ts compatible machines Jon Mason
2022-11-17 18:13 ` [PATCH 1/2] arm-bsp/trusted-services: rename bbappends with git version Jon Mason
2022-11-21 20:00 ` Jon Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.