Skip to content

Commit 36f41cb

Browse files
authored
Merge pull request #11 from jue89/bump-nrfxlib
Update nrfxlib to 2.9.1
2 parents 2d75d97 + cf2b651 commit 36f41cb

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nrfxlib-sys"
3-
version = "2.7.1"
3+
version = "2.9.1"
44
authors = [
55
"Jonathan 'theJPster' Pallant <[email protected]>",
66
"42 Technology Ltd <[email protected]>",
@@ -44,6 +44,7 @@ llvm-tools = { version = "0.1.1", optional = true }
4444
default = ["llvm-objcopy"]
4545
arm-none-eabi-objcopy = []
4646
llvm-objcopy = ["dep:llvm-tools"]
47+
log = []
4748

4849
nrf9160 = []
4950
nrf9151 = ["nrf9120"]

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ In your own program or library, you can depend on this crate in the usual fashio
3131
```toml
3232
[dependencies]
3333
# A chip feature must be selected
34-
nrfxlib-sys = { version = "=2.7.1", features = ["nrf9160"] }
34+
nrfxlib-sys = { version = "=2.9.1", features = ["nrf9160"] }
3535
```
3636

3737
Because the modem library has its debug sections compressed and Rust's tooling doesn't have support for
@@ -72,7 +72,12 @@ without any additional terms or conditions.
7272

7373
## Changelog
7474

75-
### Unreleased Changes ([Source](https://github.com/nrf-rs/nrfxlib-sys/tree/develop) | [Changes](https://github.com/nrf-rs/nrfxlib-sys/compare/v2.4.2...develop))
75+
### Unreleased Changes ([Source](https://github.com/nrf-rs/nrfxlib-sys/tree/develop) | [Changes](https://github.com/nrf-rs/nrfxlib-sys/compare/v2.9.1...develop))
76+
77+
### v2.9.1 ([Source](https://github.com/nrf-rs/nrfxlib-sys/tree/v2.9.1) | [Changes](https://github.com/nrf-rs/nrfxlib-sys/compare/v2.7.1...v2.9.1))
78+
79+
* Updated to [nrfxlib v2.9.1](https://github.com/NordicPlayground/nrfxlib/tree/v2.9.1)
80+
* Added feature `log` for including the binary blobs with logging support.
7681

7782
### v2.7.1 ([Source](https://github.com/nrf-rs/nrfxlib-sys/tree/v2.7.1) | [Changes](https://github.com/nrf-rs/nrfxlib-sys/compare/v2.4.2...v2.7.1))
7883

build.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ fn main() {
3636
.clang_arg("-I./third_party/nordic/nrfxlib/crypto/nrf_cc310_platform/include")
3737
.clang_arg("-I./third_party/nordic/nrfxlib/crypto/nrf_cc310_mbedcrypto/include")
3838
.clang_arg("-I./third_party/nordic/nrfxlib/crypto/nrf_oberon")
39+
.clang_arg("-I./third_party/nordic/nrfxlib/nrf_modem/include")
3940
// Disable standard includes (they belong to the host)
4041
.clang_arg("-nostdinc")
4142
// Set the target
@@ -94,12 +95,18 @@ fn main() {
9495
std::fs::write(bindings_out_path, rust_source).expect("Couldn't write updated bindgen output");
9596

9697
#[cfg(feature = "nrf9160")]
97-
let libmodem_original_path =
98-
Path::new(&nrfxlib_path).join("nrf_modem/lib/cellular/nrf9160/hard-float/libmodem.a");
98+
let libmodem_original_path = if cfg!(feature = "log") {
99+
Path::new(&nrfxlib_path).join("nrf_modem/lib/cellular/nrf9160/hard-float/libmodem_log.a")
100+
} else {
101+
Path::new(&nrfxlib_path).join("nrf_modem/lib/cellular/nrf9160/hard-float/libmodem.a")
102+
};
99103

100104
#[cfg(feature = "nrf9120")]
101-
let libmodem_original_path =
102-
Path::new(&nrfxlib_path).join("nrf_modem/lib/cellular/nrf9120/hard-float/libmodem.a");
105+
let libmodem_original_path = if cfg!(feature = "log") {
106+
Path::new(&nrfxlib_path).join("nrf_modem/lib/cellular/nrf9120/hard-float/libmodem_log.a")
107+
} else {
108+
Path::new(&nrfxlib_path).join("nrf_modem/lib/cellular/nrf9120/hard-float/libmodem.a")
109+
};
103110

104111
let libmodem_changed_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("libmodem.a");
105112

third_party/nordic/nrfxlib

Submodule nrfxlib updated 941 files

0 commit comments

Comments
 (0)