2025-09-29 05:52:38 +00:00
|
|
|
[package]
|
|
|
|
|
name = "bao1x-boot1"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
authors = ["bunnie <bunnie@kosagi.com>"]
|
|
|
|
|
edition = "2018"
|
|
|
|
|
description = "Boot1 partition"
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
2026-01-29 11:12:00 +00:00
|
|
|
xous = "0.9.70"
|
|
|
|
|
utralib = { version = "0.1.27", optional = true, default-features = false }
|
2025-09-29 05:52:38 +00:00
|
|
|
bao1x-hal = { path = "../../libs/bao1x-hal", optional = true, default-features = false }
|
|
|
|
|
bao1x-api = { path = "../../libs/bao1x-api", optional = true, default-features = false }
|
|
|
|
|
vexriscv = { version = "0.5.6", package = "xous-riscv" }
|
|
|
|
|
riscv = { version = "0.14.0", features = ["critical-section-single-hart"] }
|
|
|
|
|
linked_list_allocator = { version = "0.10.5", optional = true }
|
|
|
|
|
critical-section = "1.2.0"
|
|
|
|
|
ux-api = { path = "../../libs/ux-api", optional = true, default-features = false }
|
|
|
|
|
simple-fatfs = { git = "https://github.com/betrusted-io/simple-fatfs.git", branch = "baosec", default-features = false }
|
2025-10-20 15:39:04 +00:00
|
|
|
sha2-bao1x = { path = "../sha2-bao1x", default-features = false }
|
2025-09-29 05:52:38 +00:00
|
|
|
digest = { version = "0.10.7" }
|
|
|
|
|
ed25519-dalek = { package = "ed25519-dalek-bao1x", path = "../ed25519-dalek-bao1x", default-features = false, features = [
|
|
|
|
|
"digest",
|
|
|
|
|
"zeroize",
|
|
|
|
|
], optional = true }
|
|
|
|
|
base64 = { version = "0.22.1", default-features = false, features = ["alloc"] }
|
2025-10-20 15:39:04 +00:00
|
|
|
xous-bio-bdma = { path = "../../libs/xous-bio-bdma", default-features = false, features = [
|
|
|
|
|
"baremetal",
|
|
|
|
|
] }
|
|
|
|
|
rand_chacha = { version = "0.3.1", default-features = false }
|
2026-02-09 19:29:41 +00:00
|
|
|
hex = { version = "0.4.3", default-features = false }
|
2025-09-29 05:52:38 +00:00
|
|
|
|
|
|
|
|
[features]
|
|
|
|
|
# Baochip feature tree below
|
|
|
|
|
bao1x = [
|
|
|
|
|
"utralib/bao1x",
|
|
|
|
|
"linked_list_allocator",
|
|
|
|
|
"bao1x-hal/loader-baosec",
|
2025-12-22 08:18:21 +00:00
|
|
|
"bao1x-hal/security",
|
2025-10-20 20:16:45 +00:00
|
|
|
# "bao1x-hal/debug-print-duart",
|
2026-01-25 10:33:14 +00:00
|
|
|
# "bao1x-hal/debug-countermeasures",
|
2025-09-29 05:52:38 +00:00
|
|
|
"bao1x-api",
|
2025-10-01 06:27:51 +00:00
|
|
|
# needed for the boot logo
|
|
|
|
|
"ux-api/loader-baosec",
|
2025-09-29 05:52:38 +00:00
|
|
|
]
|
2025-09-29 13:58:01 +00:00
|
|
|
unsafe-debug = []
|
2025-10-18 17:20:53 +00:00
|
|
|
verbose-debug = ["bao1x-hal/debug-print-uart", "bao1x-hal/verbose-debug"]
|
2025-10-24 13:15:12 +00:00
|
|
|
print-ifr = []
|
2025-09-29 05:52:38 +00:00
|
|
|
|
2025-10-27 19:37:28 +00:00
|
|
|
test-boot0-keys = []
|
2025-10-28 13:37:55 +00:00
|
|
|
alt-boot1 = []
|
2026-02-10 14:56:14 +00:00
|
|
|
test-clock-skipping = []
|
2026-06-24 07:08:12 +00:00
|
|
|
uf2-spim = []
|
2025-10-27 19:37:28 +00:00
|
|
|
|
2026-01-24 15:48:35 +00:00
|
|
|
oem = []
|
|
|
|
|
oem-baosec-lite = ["oem", "bao1x-hal/oem-baosec-lite"]
|
|
|
|
|
|
2026-05-08 14:20:32 +00:00
|
|
|
qe-debug = ["verbose-debug", "bao1x-hal/debug-print-duart"]
|
|
|
|
|
|
2025-09-29 05:52:38 +00:00
|
|
|
verilator-only = []
|
2026-01-24 15:48:35 +00:00
|
|
|
default = ["oem-baosec-lite"]
|