Skip to content

Commit

Permalink
Merge branch 'release-v0.4' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mciantyre committed Aug 29, 2020
2 parents 5a88136 + 224050a commit bd1b2df
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 20 deletions.
42 changes: 28 additions & 14 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,37 @@

From a clean repository, at the root:

1. Update the `imxrt-ral` crate version in `imxrt-ral/imxrtral.py`.
2. Build the RAL: `make -C imxrt-ral`
1. Update the `imxrt-iomuxc` crate versions.
2. Update the `imxrt-ral` crate version in `imxrt-ral/imxrtral.py`.
3. In `imxrt-hal/Cargo.toml`, update both
- the version of the HAL
- the HAL's dependency of the RAL
4. Sanity check the RAL:
4. Generate the RAL: `make -C imxrt-ral`
5. Commit the changes, and create a tag.
6. Publish the IOMUXC crates:
```
cargo publish --manifest-path imxrt-iomuxc/imxrt-iomuxc-build/Cargo.toml
cargo publish --manifest-path imxrt-iomuxc/Cargo.toml --all-features
```
7. Publish the RAL:
```
cargo publish --manifest-path imxrt-ral/Cargo.toml
```
8. Publish the HAL:
```
cargo publish --manifest-path imxrt-hal/Cargo.toml --features imxrt1062
```
```
cd imxrt-ral && cargo build --features imxrt1062 && cd ..
```
## Maintaining older releases
5. Publish the RAL: `cargo publish --manifest-path imxrt-ral/Cargo.toml`
6. Sanity check the HAL.
This section describes how imxrt-rs project maintainers support older releases.
If there is a bug fix that you would like to apply to an older version of the
RAL, HAL, or IOMUXC crates, follow the process below to create a new patch
release.
```
cd imxrt-hal && cargo build --features imxrt1062 && cd ..
```

7. Make a commit of the release.
8. Publish the HAL: `cargo publish --manifest-path imxrt-hal/Cargo.toml --features imxrt1062`
- Integrate bug fixes on the main branch.
- If it doesn't already exist, create a maintenance branch. The maintenance branch should
branch from the commit tagged with the release. It should be named `maint-v[VERSION]`,
where `VERSION` is the major and minor release numbers.
- Cherry-pick or backport the patches onto the maintenance branch.
- Tag the release on the maintenance branch.
11 changes: 10 additions & 1 deletion imxrt-hal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## [Unreleased]

## [0.4.0] 2020-08-29

This release contains numerous breaking HAL changes. See the "Changed" section for more information.
The release includes 0.3.1 fixes.

### Added

- `steal()` the top-level `Peripherals` object. The `steal()` method lets users use the `imxrt_hal`
Expand Down Expand Up @@ -120,6 +125,8 @@
/ `dma::Channel::set_interrupt_on_half()` to perform the same configurations before suppling the
channel to `dma::Peripheral`.

## [0.3.1] 2020-08-29

### Fixed

- The `StatefulOutputPin` implementation was reading from the wrong GPIO register. The interface
Expand Down Expand Up @@ -151,5 +158,7 @@

Prior releases were not tracked with a changelog entry.

[Unreleased]: https://github.com/imxrt-rs/imxrt-rs/compare/0.3.0...HEAD
[Unreleased]: https://github.com/imxrt-rs/imxrt-rs/compare/0.4.0...HEAD
[0.4.0]: https://github.com/imxrt-rs/imxrt-rs/compare/0.3.0...0.4.0
[0.3.1]: https://github.com/imxrt-rs/imxrt-rs/compare/0.3.0...0.3.1
[0.3.0]: https://github.com/imxrt-rs/imxrt-rs/compare/0.2.1...0.3.0
4 changes: 2 additions & 2 deletions imxrt-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ keywords = ["imxrt", "nxp", "embedded", "no_std"]
categories = ["embedded", "no-std"]
license = "MIT/Apache-2.0"
edition = "2018"
version = "0.3.0"
version = "0.4.0"

[dependencies]
as-slice = "0.1.3"
cortex-m = { version = "0.6" }
imxrt-ral = { version = "0.3.0", path = "../imxrt-ral" }
imxrt-ral = { version = "0.4.0", path = "../imxrt-ral" }
bitflags = "1.2.1"
embedded-hal = "0.2.3"
nb = "0.1.2"
Expand Down
5 changes: 4 additions & 1 deletion imxrt-ral/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

## [0.4.0] 2020-08-29

* **BREAKING** The RAL's `"rtfm"` feature is changed to `"rtic"`, reflecting the framework's
new name. Users who are relying on the `"rtfm"` feature should now use the `"rtic"` feature.

Expand All @@ -23,7 +25,8 @@

Initial build and release of imxrt family of peripheral access crates

[Unreleased]: https://github.com/imxrt-rs/imxrt-rs/compare/0.3.0...HEAD
[Unreleased]: https://github.com/imxrt-rs/imxrt-rs/compare/0.4.0...HEAD
[0.4.0]: https://github.com/imxrt-rs/imxrt-rs/compare/0.3.0...0.4.0
[0.3.0]: https://github.com/imxrt-rs/imxrt-rs/compare/0.2.1...0.3.0
[0.2.1]: https://github.com/imxrt-rs/imxrt-rs/compare/0.2.0...0.2.1
[0.2.0]: https://github.com/imxrt-rs/imxrt-rs/compare/0.1.0...0.2.1
Expand Down
2 changes: 1 addition & 1 deletion imxrt-ral/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ include = [
]

# Change version in imxrtral.py, not in Cargo.toml!
version = "0.3.0"
version = "0.4.0"

[package.metadata.docs.rs]
features = ["doc"]
Expand Down
2 changes: 1 addition & 1 deletion imxrt-ral/imxrtral.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
]
# Change version in imxrtral.py, not in Cargo.toml!
version = "0.3.0"
version = "0.4.0"
[package.metadata.docs.rs]
features = ["doc"]
Expand Down

0 comments on commit bd1b2df

Please sign in to comment.