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
|
2019-01-03 02:38:38 +08:00
|
|
|
edition = "2018"
|
2017-07-12 23:47:49 +08:00
|
|
|
|
|
|
|
[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 = []
|
|
|
|
|
2019-02-18 18:50:22 +08:00
|
|
|
# Disable validation of the primary slot
|
|
|
|
validate-primary-slot = []
|
2017-11-24 02:28:25 +08:00
|
|
|
|
2019-02-18 18:50:22 +08:00
|
|
|
# Encrypt image in the secondary slot using RSA-OAEP-2048
|
2018-09-18 20:04:18 +08:00
|
|
|
enc-rsa = []
|
|
|
|
|
2019-02-18 18:50:22 +08:00
|
|
|
# Encrypt image in the secondary slot using AES-KW-128
|
2018-09-18 20:04:18 +08:00
|
|
|
enc-kw = []
|
|
|
|
|
2019-02-18 18:50:22 +08:00
|
|
|
# Allow bootstrapping an empty/invalid primary slot from a valid secondary slot
|
2018-12-19 03:21:51 +08:00
|
|
|
bootstrap = []
|
|
|
|
|
2017-07-12 23:47:49 +08:00
|
|
|
[build-dependencies]
|
2018-10-16 05:36:33 +08:00
|
|
|
cc = "1.0.25"
|
2017-07-12 23:47:49 +08:00
|
|
|
|
|
|
|
[dependencies]
|
2019-01-03 02:53:23 +08:00
|
|
|
lazy_static = "1.2"
|
2017-07-12 23:47:49 +08:00
|
|
|
libc = "0.2.0"
|
2019-01-03 02:42:39 +08:00
|
|
|
log = "0.4"
|
2017-07-12 23:47:49 +08:00
|
|
|
simflash = { path = "../simflash" }
|
|
|
|
|
|
|
|
# Optimize some, even when building for debugging, otherwise the tests
|
|
|
|
# are too slow.
|
|
|
|
[profile.test]
|
|
|
|
opt-level = 1
|