Skip to contentSkip to conversation

CI: add Yocto Project SSTATE Mirror

PATCH Applied Jon Mason 2 participants 2 messages Apr 23, 2024 – Apr 24, 2024

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 CI: add Yocto Project SSTATE Mirror

Add the Yocto Project public SSTATE mirror to its own unique yml file. This allows for developers to use this to speed up builds, while not adding in the default case. This "off by default" is because it can add 10s of minutes to each build, which might not be beneficial to those who are using SSTATE dir locally.

Also, removing the removal ptest distro feature, as this change prevents an optimal usage of the YP SSTATE mirror (~30% match to ~90% match for qemuarm64).

---
 ci/base.yml          | 1 -
 ci/sstate-mirror.yml | 9 +++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 ci/sstate-mirror.yml
ci/base.yml +0 -1
index 3d868a476d4e..6058b1c29caa 100644
@@ -32,7 +32,6 @@ local_conf_header:
     PACKAGECONFIG:remove:pn-qemu-system-native = "gtk+ sdl"
     PACKAGECONFIG:append:pn-perf = " coresight"
     INHERIT += "rm_work"
-    DISTRO_FEATURES:remove = "ptest"
   extrapackages: |
     CORE_IMAGE_EXTRA_INSTALL += "perf opencsd"
     CORE_IMAGE_EXTRA_INSTALL:append:aarch64 = " gator-daemon"
ci/sstate-mirror.yml new file +9 -0
new file mode 100644
index 000000000000..c31b90759381
@@ -0,0 +1,9 @@
+header:
+  version: 14
+
+local_conf_header:
+  sstate_mirror: |
+    BB_HASHSERVE_UPSTREAM = "hashserv.yocto.io:8687"
+    SSTATE_MIRRORS = "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
+    BB_HASHSERVE = "auto"
+    BB_SIGNATURE_HANDLER = "OEEquivHash"
Signature · 1 line
2.39.3 (Apple Git-146)
Applied
#1 lore raw
Quoted 11 lines · Jon Mason

Add the Yocto Project public SSTATE mirror to its own unique yml file. This allows for developers to use this to speed up builds, while not adding in the default case. This "off by default" is because it can add 10s of minutes to each build, which might not be beneficial to those who are using SSTATE dir locally.

Also, removing the removal ptest distro feature, as this change prevents an optimal usage of the YP SSTATE mirror (~30% match to ~90% match for qemuarm64).

[...]

Applied, thanks!

[1/1] CI: add Yocto Project SSTATE Mirror

      commit: 6e9525115bd45c86e241d62a4af069f7b1b8b973

Best regards,

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