2017-07-12 23:47:49 +08:00
|
|
|
[package]
|
|
|
|
name = "mcuboot-sys"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["David Brown <david.brown@linaro.org>"]
|
|
|
|
description = "A simple wrapper around the mcuboot code."
|
|
|
|
build = "build.rs"
|
|
|
|
publish = false
|
|
|
|
|
|
|
|
[features]
|
|
|
|
# By default, build with simplistic signature verification.
|
|
|
|
default = []
|
|
|
|
|
|
|
|
# Verify RSA signatures. Note that at this time, the C code will not
|
|
|
|
# compile with both sig-rsa and sig-ecdsa enabled.
|
|
|
|
sig-rsa = []
|
|
|
|
|
2017-12-05 18:48:34 +08:00
|
|
|
# Verify ECDSA (secp256r1) signatures.
|
2017-07-12 23:47:49 +08:00
|
|
|
sig-ecdsa = []
|
|
|
|
|
|
|
|
# Overwrite only upgrade
|
|
|
|
overwrite-only = []
|
|
|
|
|
2017-11-24 02:28:25 +08:00
|
|
|
# Disable validation of slot0
|
|
|
|
validate-slot0 = []
|
|
|
|
|
2017-07-12 23:47:49 +08:00
|
|
|
[build-dependencies]
|
2017-12-05 18:48:34 +08:00
|
|
|
gcc = "0.3.54"
|
2017-07-12 23:47:49 +08:00
|
|
|
|
|
|
|
[dependencies]
|
2017-11-07 02:31:31 +08:00
|
|
|
lazy_static = "0.2"
|
2017-07-12 23:47:49 +08:00
|
|
|
libc = "0.2.0"
|
|
|
|
log = "0.3"
|
|
|
|
simflash = { path = "../simflash" }
|
|
|
|
|
|
|
|
# Optimize some, even when building for debugging, otherwise the tests
|
|
|
|
# are too slow.
|
|
|
|
[profile.test]
|
|
|
|
opt-level = 1
|