@@ -6,33 +6,35 @@ An OpenEmebdded/Yocto layer providing pre-built toolchains for the
6
6
7
7
<!-- toc -->
8
8
9
- - [ Basic Example] ( #basic-example )
10
- - [ Features] ( #features )
11
- - [ Advanced Features] ( #advanced-features )
12
- * [ Specifying Cargo Features] ( #specifying-cargo-features )
13
- * [ Using Components Individually] ( #using-components-individually )
14
- - [ Pre-built vs. Compiled] ( #pre-built-vs-compiled )
15
- - [ Copyright] ( #copyright )
9
+ - [ meta-rust-bin] ( #meta-rust-bin )
10
+ - [ Basic Example] ( #basic-example )
11
+ - [ Features] ( #features )
12
+ - [ Advanced Features] ( #advanced-features )
13
+ - [ Specifying Cargo Features] ( #specifying-cargo-features )
14
+ - [ Using Components Individually] ( #using-components-individually )
15
+ - [ Pre-built vs. Compiled] ( #pre-built-vs-compiled )
16
+ - [ Adding Support for New Versions] ( #adding-support-for-new-versions )
17
+ - [ Copyright] ( #copyright )
16
18
17
19
<!-- tocstop -->
18
20
19
21
20
22
## Basic Example
21
23
22
24
A basic class for cargo-based executables is provided. The following is a
23
- simple recipe that builds the [ gpio-utils] ( https://github.com/rust-embedded/gpio-utils )
24
- crate from a branch tagged with the version ` ${PV} ` :
25
+ simple recipe called gpio_utils.bb that builds the [ gpio-utils] ( https://github.com/rust-embedded/gpio-utils )
26
+ crate from branch master.
25
27
26
28
``` bitbake
27
- inherit cargo
28
-
29
29
SUMMARY = "GPIO Utilities"
30
30
HOMEPAGE = "git://github.com/rust-embedded/gpio-utils"
31
31
LICENSE = "MIT"
32
32
33
- SRC_URI = "https://github.com/rust-embedded/gpio-utils.git;tag=${PV}"
34
- S = "${WORKDIR}/git"
33
+ inherit cargo
35
34
35
+ SRC_URI = "gitsm://github.com/rust-embedded/gpio-utils.git;protocol=https;branch=master"
36
+ SRCREV="02b0658cd7e13e46f6b1a5de3fd9655711749759"
37
+ S = "${WORKDIR}/git"
36
38
LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=935a9b2a57ae70704d8125b9c0e39059"
37
39
```
38
40
0 commit comments