Skip to content

Commit 325dbb8

Browse files
committed
Fix the README.md example recipe.
1 parent 177ebd6 commit 325dbb8

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,35 @@ An OpenEmebdded/Yocto layer providing pre-built toolchains for the
66

77
<!-- toc -->
88

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)
1618

1719
<!-- tocstop -->
1820

1921

2022
## Basic Example
2123

2224
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.
2527

2628
```bitbake
27-
inherit cargo
28-
2929
SUMMARY = "GPIO Utilities"
3030
HOMEPAGE = "git://github.com/rust-embedded/gpio-utils"
3131
LICENSE = "MIT"
3232
33-
SRC_URI = "https://github.com/rust-embedded/gpio-utils.git;tag=${PV}"
34-
S = "${WORKDIR}/git"
33+
inherit cargo
3534
35+
SRC_URI = "gitsm://github.com/rust-embedded/gpio-utils.git;protocol=https;branch=master"
36+
SRCREV="02b0658cd7e13e46f6b1a5de3fd9655711749759"
37+
S = "${WORKDIR}/git"
3638
LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=935a9b2a57ae70704d8125b9c0e39059"
3739
```
3840

0 commit comments

Comments
 (0)