Skip to content

Commit 0a1e6d2

Browse files
OldManYellsAtCloudotavio
authored andcommitted
firefox: Use Rust from lts-mixins for Scarthgap
Now that there is an updated Rust version for Scarthgap in the meta-lts-mixins repository, the previously vendored Rust recipe is not required anymore.
1 parent bc351e2 commit 0a1e6d2

28 files changed

+99
-2104
lines changed

meta-firefox/README.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,35 @@ OpenEmbedded/Yocto BSP layer for Firefox Browser
2222
This layer provides web browser recipes for use with OpenEmbedded
2323
and/or Yocto.
2424

25-
##Dependencies
25+
## Dependencies
2626

27-
This layer depends on poky, meta-oe, meta-clang and meta-rust (only for Kirkstone). To see the tested revision/release
28-
combinations, see the contents of the `kas` folder - that contains all the branch/revision information used for
29-
testing.
27+
This layer depends on oe-core (poky), meta-oe and meta-clang. Additionally, the Rust version
28+
shipped with Kirkstone and Scarthgap oe-core is out of date, which can be remediated by other
29+
third-party layers: when using Kirkstone either meta-rust or meta-lts-mixins (kirkstone/rust
30+
branch) is required, and when using Scarthgap, meta-lts-mixins (scarthgap/rust branch) is
31+
recommended. (The Rust-providing layers are not enforced currently, since there are multiple
32+
actively maintained layers. Use the one that works the best for the rest of your project.)
3033

31-
`meta-clang` layer requires `libstdc++` to be installed on the build machine - make sure to install it, in case it is missing
32-
(e.g. on Debian based systems install `libstdc++-dev` or on Fedora install `libstdc++-devel`)
34+
For the tested revision/release combinations, see the contents of the `kas` folder - that
35+
contains all the branch/revision information used for testing.
36+
37+
`meta-clang` layer requires `libstdc++` to be installed on the build machine - make sure to
38+
install it, in case it is missing (e.g. on Debian based systems install `libstdc++-dev` or
39+
on Fedora install `libstdc++-devel`)
3340

3441
Note: Make sure to add `RUST_PANIC_STRATEGY = "abort"` to local.conf before compiling Rust.
3542

36-
Note: Firefox requires at least Rust 1.76 starting from version 127. meta-rust layer provides 1.78, however this layer is not compatible with Scarthgap (nor newer).
37-
Due to this, Rust 1.76 recipes are also shipped as part of this layer (original Scarthgap recipes for Rust 1.75 adapted for the newer version).
43+
Note: Firefox requires at least Rust 1.76 starting from version 127. meta-rust layer provides
44+
1.78, however this layer is not compatible with Scarthgap (nor newer). Fortunately lately a
45+
meta-lts-mixins layer has been created with a more up to date version of Rust, for Scarthgap.
3846

39-
Unfortunately this needs some caution when it comes to the Rust version used, and its provider. Testing is performed using the following combinations:
47+
The state of Rust needs some caution when it comes to the the version used, and its provider.
48+
Testing is performed using the following combinations:
4049

4150
| Yocto version | Rust version |
4251
| ---------------- | ----- |
43-
| Kirkstone | Rust 1.78 from meta-rust (along with adding rust from oe-core to BBMASK) |
44-
| Scarthgap | Rust 1.76 shipped with this layer (along with adding rust oe-core to BBMASK) |
52+
| Kirkstone | Rust 1.78 from meta-rust |
53+
| Scarthgap | Rust 1.80.1 from meta-lts-mixins (scarthgap/rust branch) |
4554
| Styhead | Rust 1.79 from oe-core |
4655
| Walnascar | Rust 1.80.1 from oe-core |
4756

meta-firefox/conf/layer.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,10 @@ LAYERVERSION_firefox-browser-layer = "2"
118118
LAYERSERIES_COMPAT_firefox-browser-layer = "kirkstone scarthgap styhead walnascar"
119119

120120
LAYERDEPENDS_firefox-browser-layer = "clang-layer core openembedded-layer"
121+
122+
# Don't enforce the Rust layer dependency for now, as there are multiple
123+
# actively maintained Rust-providing layers (e.g. Kirkstone has at least 2:
124+
# meta-rust and meta-lts-mixins).
125+
126+
# LAYERDEPENDS_firefox-browser-layer:append = '${@" rust-layer " if "kirkstone" in d.getVar("LAYERSERIES_CORENAMES") else ""}'
127+
# LAYERDEPENDS_firefox-browser-layer:append = '${@" scarthgap-rust-mixin " if "scarthgap" in d.getVar("LAYERSERIES_CORENAMES") else ""}'

meta-firefox/kas/repos/lts-mixins.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
header:
2+
version: 11
3+
4+
repos:
5+
meta-lts-mixins:
6+
url: https://git.yoctoproject.org/git/meta-lts-mixins
7+
layers:
8+
.:

meta-firefox/kas/repos/scarthgap.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ header:
22
version: 11
33
includes:
44
- meta-firefox/kas/repos/common-repos.yml
5+
- meta-firefox/kas/repos/lts-mixins.yml
56

67
repos:
78
meta-oe:
@@ -14,3 +15,10 @@ repos:
1415
path: meta-firefox/kas/scarthgap-poky-patches
1516
meta-clang:
1617
refspec: "989ff6a4e7db59f01d511727135610006124ead2"
18+
meta-lts-mixins:
19+
refspec: "a5fc9344ebd80d36326bde082aea33f0c7873291"
20+
21+
22+
local_conf_header:
23+
scarthgap: |
24+
BBMASK += "poky/meta/recipes-devtools/rust"

meta-firefox/kas/scarthgap-esr-aarch64-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ repos:
1515
# use rust version shipped with meta-browser, poky one is too old
1616
local_conf_header:
1717
scarthgap-esr-aarch64: |
18-
REQUIRED_VERSION_rust = "1.76.0"
19-
REQUIRED_VERSION_rust-native = "1.76.0"
20-
REQUIRED_VERSION_libstd-rs = "1.76.0"
21-
REQUIRED_VERSION_cargo = "1.76.0"
22-
REQUIRED_VERSION_cargo-native = "1.76.0"
23-
REQUIRED_VERSION_rust-llvm = "1.76.0"
24-
REQUIRED_VERSION_rust-llvm-native = "1.76.0"
18+
REQUIRED_VERSION_rust = "1.80.1"
19+
REQUIRED_VERSION_rust-native = "1.80.1"
20+
REQUIRED_VERSION_libstd-rs = "1.80.1"
21+
REQUIRED_VERSION_cargo = "1.80.1"
22+
REQUIRED_VERSION_cargo-native = "1.80.1"
23+
REQUIRED_VERSION_rust-llvm = "1.80.1"
24+
REQUIRED_VERSION_rust-llvm-native = "1.80.1"
2525
BBMASK += "poky/meta/recipes-devtools/rust"

meta-firefox/kas/scarthgap-esr-arm-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ repos:
1616
# use rust version shipped with meta-browser, poky one is too old
1717
local_conf_header:
1818
scarthgap-esr-arm: |
19-
REQUIRED_VERSION_rust = "1.76.0"
20-
REQUIRED_VERSION_rust-native = "1.76.0"
21-
REQUIRED_VERSION_libstd-rs = "1.76.0"
22-
REQUIRED_VERSION_cargo = "1.76.0"
23-
REQUIRED_VERSION_cargo-native = "1.76.0"
24-
REQUIRED_VERSION_rust-llvm = "1.76.0"
25-
REQUIRED_VERSION_rust-llvm-native = "1.76.0"
19+
REQUIRED_VERSION_rust = "1.80.1"
20+
REQUIRED_VERSION_rust-native = "1.80.1"
21+
REQUIRED_VERSION_libstd-rs = "1.80.1"
22+
REQUIRED_VERSION_cargo = "1.80.1"
23+
REQUIRED_VERSION_cargo-native = "1.80.1"
24+
REQUIRED_VERSION_rust-llvm = "1.80.1"
25+
REQUIRED_VERSION_rust-llvm-native = "1.80.1"
2626
BBMASK += "poky/meta/recipes-devtools/rust"

meta-firefox/kas/scarthgap-esr-riscv-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ machine: star64
1111
# use rust version shipped with meta-browser, poky one is too old
1212
local_conf_header:
1313
scarthgap-esr-riscv: |
14-
REQUIRED_VERSION_rust = "1.76.0"
15-
REQUIRED_VERSION_rust-native = "1.76.0"
16-
REQUIRED_VERSION_libstd-rs = "1.76.0"
17-
REQUIRED_VERSION_cargo = "1.76.0"
18-
REQUIRED_VERSION_cargo-native = "1.76.0"
19-
REQUIRED_VERSION_rust-llvm = "1.76.0"
20-
REQUIRED_VERSION_rust-llvm-native = "1.76.0"
14+
REQUIRED_VERSION_rust = "1.80.1"
15+
REQUIRED_VERSION_rust-native = "1.80.1"
16+
REQUIRED_VERSION_libstd-rs = "1.80.1"
17+
REQUIRED_VERSION_cargo = "1.80.1"
18+
REQUIRED_VERSION_cargo-native = "1.80.1"
19+
REQUIRED_VERSION_rust-llvm = "1.80.1"
20+
REQUIRED_VERSION_rust-llvm-native = "1.80.1"
2121
BBMASK += "poky/meta/recipes-devtools/rust"

meta-firefox/kas/scarthgap-esr-x86_64-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ machine: qemux86-64
1010
# use rust version shipped with meta-browser, poky one is too old
1111
local_conf_header:
1212
scarthgap-esr-x86_64: |
13-
REQUIRED_VERSION_rust = "1.76.0"
14-
REQUIRED_VERSION_rust-native = "1.76.0"
15-
REQUIRED_VERSION_libstd-rs = "1.76.0"
16-
REQUIRED_VERSION_cargo = "1.76.0"
17-
REQUIRED_VERSION_cargo-native = "1.76.0"
18-
REQUIRED_VERSION_rust-llvm = "1.76.0"
19-
REQUIRED_VERSION_rust-llvm-native = "1.76.0"
13+
REQUIRED_VERSION_rust = "1.80.1"
14+
REQUIRED_VERSION_rust-native = "1.80.1"
15+
REQUIRED_VERSION_libstd-rs = "1.80.1"
16+
REQUIRED_VERSION_cargo = "1.80.1"
17+
REQUIRED_VERSION_cargo-native = "1.80.1"
18+
REQUIRED_VERSION_rust-llvm = "1.80.1"
19+
REQUIRED_VERSION_rust-llvm-native = "1.80.1"
2020
BBMASK += "poky/meta/recipes-devtools/rust"
2121

meta-firefox/kas/scarthgap-latest-aarch64-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ repos:
1414

1515
local_conf_header:
1616
scarthgap-latest-aarch64: |
17-
REQUIRED_VERSION_rust = "1.76.0"
18-
REQUIRED_VERSION_rust-native = "1.76.0"
19-
REQUIRED_VERSION_libstd-rs = "1.76.0"
20-
REQUIRED_VERSION_cargo = "1.76.0"
21-
REQUIRED_VERSION_cargo-native = "1.76.0"
22-
REQUIRED_VERSION_rust-llvm = "1.76.0"
23-
REQUIRED_VERSION_rust-llvm-native = "1.76.0"
17+
REQUIRED_VERSION_rust = "1.80.1"
18+
REQUIRED_VERSION_rust-native = "1.80.1"
19+
REQUIRED_VERSION_libstd-rs = "1.80.1"
20+
REQUIRED_VERSION_cargo = "1.80.1"
21+
REQUIRED_VERSION_cargo-native = "1.80.1"
22+
REQUIRED_VERSION_rust-llvm = "1.80.1"
23+
REQUIRED_VERSION_rust-llvm-native = "1.80.1"
2424
BBMASK += "poky/meta/recipes-devtools/rust"

meta-firefox/kas/scarthgap-latest-arm-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ repos:
1414

1515
local_conf_header:
1616
scarthgap-latest-arm: |
17-
REQUIRED_VERSION_rust = "1.76.0"
18-
REQUIRED_VERSION_rust-native = "1.76.0"
19-
REQUIRED_VERSION_libstd-rs = "1.76.0"
20-
REQUIRED_VERSION_cargo = "1.76.0"
21-
REQUIRED_VERSION_cargo-native = "1.76.0"
22-
REQUIRED_VERSION_rust-llvm = "1.76.0"
23-
REQUIRED_VERSION_rust-llvm-native = "1.76.0"
17+
REQUIRED_VERSION_rust = "1.80.1"
18+
REQUIRED_VERSION_rust-native = "1.80.1"
19+
REQUIRED_VERSION_libstd-rs = "1.80.1"
20+
REQUIRED_VERSION_cargo = "1.80.1"
21+
REQUIRED_VERSION_cargo-native = "1.80.1"
22+
REQUIRED_VERSION_rust-llvm = "1.80.1"
23+
REQUIRED_VERSION_rust-llvm-native = "1.80.1"
2424
BBMASK += "poky/meta/recipes-devtools/rust"

0 commit comments

Comments
 (0)