Skip to contentSkip to conversation

arm/scp-firmware: add git recipe

PATCH Applied Jon Mason 2 participants 3 messages Mar 25 – Mar 27

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/2 arm/scp-firmware: add git recipe

Split off the main portion of the SCP firmware recipe into an include file and create a git versioned recipe. This allows for building and testing the latest sources.

---
 ci/latest-revisions.yml                       |   1 +
 .../recipes-bsp/scp-firmware/scp-firmware.inc |  98 +++++++++++++++++
 .../scp-firmware/scp-firmware_2.16.0.bb       | 101 +-----------------
 .../scp-firmware/scp-firmware_git.bb          |  11 ++
 4 files changed, 112 insertions(+), 99 deletions(-)
 create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
 create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
ci/latest-revisions.yml +1 -0
index 94d6bc2eadc0..10c2279c8cdb 100644
@@ -5,6 +5,7 @@ header:
 
 local_conf_header:
   latest_revisions: |
+    PREFERRED_VERSION_scp-firmware ?= "git"
     PREFERRED_VERSION_trusted-firmware-a ?= "git"
     PREFERRED_VERSION_trusted-firmware-m ?= "git"
     PREFERRED_VERSION_optee-client ?= "git"
meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc new file +98 -0

98 lines not on this page · raw message

meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.16.0.bb +2 -99

107 lines not on this page · raw message

meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb new file +11 -0
new file mode 100644
index 000000000000..ab2daf45e4e5
@@ -0,0 +1,11 @@
+require recipes-bsp/scp-firmware/scp-firmware.inc
+
+SRCBRANCH = "main"
+SRCREV  = "57bb4a303d848f11cef182b24ef16060d371858c"
+
+# For now we only build with GCC, so stop meta-clang trying to get involved
+TOOLCHAIN = "gcc"
+
+# Not a release recipe, try our hardest to not pull this in implicitly
+DEFAULT_PREFERENCE = "-1"
+UPSTREAM_CHECK_COMMITS = "1"
Signature · 1 line
2.50.1 (Apple Git-155)
author
#1 lore raw

PATCH 2/2 arm/optee: add UPSTREAM_CHECK_COMMITS for git recipes

Seeing UNKNOWN_BROKEN in the OP-TEE git recipes. Add UPSTREAM_CHECK_COMMITS to address this issue.

---
 meta-arm/recipes-security/optee/optee-client_git.bb      | 1 +
 meta-arm/recipes-security/optee/optee-examples_git.bb    | 1 +
 meta-arm/recipes-security/optee/optee-os-tadevkit_git.bb | 1 +
 meta-arm/recipes-security/optee/optee-os_git.bb          | 1 +
 meta-arm/recipes-security/optee/optee-test_git.bb        | 1 +
 5 files changed, 5 insertions(+)
meta-arm/recipes-security/optee/optee-client_git.bb +1 -0
index b974e012affa..24e2d1941299 100644
@@ -3,6 +3,7 @@ require recipes-security/optee/optee-client.inc
 # v4.9.0
 SRCREV = "9f5e90918093c1d1cd264d8149081b64ab7ba672"
 PV .= "+git"
+UPSTREAM_CHECK_COMMITS = "1"
 
 # Not a release recipe, try our hardest to not pull this in implicitly
 DEFAULT_PREFERENCE = "-1"
meta-arm/recipes-security/optee/optee-examples_git.bb +1 -0
index e0c85660a8a3..4fda635b72eb 100644
@@ -3,6 +3,7 @@ require recipes-security/optee/optee-examples.inc
 # v4.8.0
 SRCREV = "3ef17eb1f309def91113637f95f67613b1d89119"
 PV .= "+git"
+UPSTREAM_CHECK_COMMITS = "1"
 
 # Not a release recipe, try our hardest to not pull this in implicitly
 DEFAULT_PREFERENCE = "-1"
meta-arm/recipes-security/optee/optee-os-tadevkit_git.bb +1 -0
index 78588b8111f4..64765df00c2f 100644
@@ -1,4 +1,5 @@
 require recipes-security/optee/optee-os_${PV}.bb
+UPSTREAM_CHECK_COMMITS = "1"
 
 SUMMARY = "OP-TEE Trusted OS TA devkit"
 DESCRIPTION = "OP-TEE TA devkit for build TAs"
meta-arm/recipes-security/optee/optee-os_git.bb +1 -0
index 244ff9b71877..03b0f1cc74fd 100644
@@ -5,6 +5,7 @@ DEPENDS += "dtc-native"
 # v4.8.0
 SRCREV = "86660925433a8d4d1b19cfa5fe940081d77b34b4"
 PV .= "+git"
+UPSTREAM_CHECK_COMMITS = "1"
 
 # Not a release recipe, try our hardest to not pull this in implicitly
 DEFAULT_PREFERENCE = "-1"
meta-arm/recipes-security/optee/optee-test_git.bb +1 -0
index 37b00908b577..1d4ee44ea77d 100644
@@ -3,6 +3,7 @@ require recipes-security/optee/optee-test.inc
 # v4.8.0
 SRCREV = "6569cd7b13e1b37b37069e090d592adca7d3926d"
 PV .= "+git"
+UPSTREAM_CHECK_COMMITS = "1"
 
 LIC_FILES_CHKSUM = "file://LICENSE.md;md5=a8fa504109e4cd7ea575bc49ea4be560 \
                     file://LICENSE-BSD;md5=dca16d6efa93b55d0fd662ae5cd6feeb \
Signature · 1 line
2.50.1 (Apple Git-155)
Applied
#2 lore raw
In reply to Jon Mason
Quoted 5 lines · Jon Mason

Split off the main portion of the SCP firmware recipe into an include file and create a git versioned recipe. This allows for building and testing the latest sources.

Applied, thanks!

[1/2] arm/scp-firmware: add git recipe

      commit: eb14d855e9d7a9c218593ed1ff2e9a0d065d5e35
[2/2] arm/optee: add UPSTREAM_CHECK_COMMITS for git recipes
      commit: 7b687574a155f73de77488504261febe54c20cd5

Best regards,

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