Skip to content

Commit 25f5f5c

Browse files
authored
Merge pull request rust-embedded#132 from banditopazzo/compile_doc_update
doc: network access for do_compile with kirkstone and above
2 parents 82e8632 + 0d9e5ef commit 25f5f5c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ An OpenEmebdded/Yocto layer providing pre-built toolchains for the
99
- [meta-rust-bin](#meta-rust-bin)
1010
- [Basic Example](#basic-example)
1111
- [Features](#features)
12+
- [Use with Yocto Release 4.0 (kirkstone) and Above](#use-with-yocto-release-40-kirkstone-and-above)
13+
- [Use with Yocto Release 3.4 (honister) and Above](#use-with-yocto-release-34-honister-and-above)
1214
- [Advanced Features](#advanced-features)
1315
- [Specifying Cargo Features](#specifying-cargo-features)
1416
- [Using Components Individually](#using-components-individually)
@@ -66,6 +68,17 @@ Future:
6668
(provides space savings).
6769
* [ ] Total static linking using MUSL.
6870

71+
### Use with Yocto Release 4.0 (kirkstone) and Above
72+
73+
From Yocto version 4.0 network access from tasks is disabled by default on
74+
kernels which support this feature (on most recent distros such as CentOS 8 and
75+
Debian 11 onwards). The task `do_compile` need to access the network because it
76+
downloads dependencies, so add the following line to the recipe:
77+
78+
```bitbake
79+
do_compile[network] = "1"
80+
```
81+
6982
### Use with Yocto Release 3.4 (honister) and Above
7083

7184
Rust is included directly in `openmbedded-core` as of Yocto version 3.4. The

0 commit comments

Comments
 (0)