xous-core/baremetal/Cargo.toml
2026-06-15 23:03:45 +08:00

88 lines
2.6 KiB
TOML

[package]
name = "baremetal"
version = "0.1.0"
authors = ["bunnie <bunnie@kosagi.com>"]
edition = "2018"
description = "Baremetal target"
[dependencies]
xous = "0.9.70"
utralib = { version = "0.1.27", optional = true, default-features = false }
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 }
xous-bio-bdma = { path = "../libs/xous-bio-bdma", optional = true, default-features = false }
critical-section = "1.2.0"
ux-api = { path = "../libs/ux-api", optional = true, default-features = false }
sha2 = { version = "0.10.8", optional = true, default-features = false }
digest = { version = "0.10.7", optional = true }
ed25519-dalek = { package = "ed25519-dalek-bao1x", path = "../bao1x-boot/ed25519-dalek-bao1x", default-features = false, features = [
"digest",
"zeroize",
], optional = true }
base64 = { version = "0.22.1", optional = true, default-features = false, features = [
"alloc",
] }
sha2-bao1x = { path = "../bao1x-boot/sha2-bao1x", optional = true, default-features = false }
hex-literal = "1.0.0"
hex = { version = "0.4.3", default-features = false }
[features]
artybio = [
"utralib/artybio",
"linked_list_allocator",
"xous-bio-bdma/artybio",
"xous-bio-bdma/baremetal",
"bao1x-bio",
]
artyvexii = ["utralib/artyvexii", "linked_list_allocator"]
# Baochip feature tree below
bao1x = [
"utralib/bao1x",
"linked_list_allocator",
"bao1x-hal/debug-print-uart",
"bao1x-hal/security",
"bao1x-api",
"digest",
"sha2-bao1x",
]
board-baosec = ["bao1x-hal/loader-baosec"]
board-dabao = ["bao1x-hal/board-dabao"]
# activates BIO test suite
bao1x-bio = [
"xous-bio-bdma/bio-mul",
"xous-bio-bdma/baremetal",
"xous-bio-bdma/bao1x",
"xous-bio-bdma/tests",
"xous-bio-bdma/debug-print",
]
# selects features for EVB target (defaults to baosec)
bao1x-evb = []
bao1x-usb = [
# "bao1x-hal/debug-print-usb",
# "bao1x-hal/verbose-debug",
]
bao1x-buttons = []
bao1x-trng = [
"bao1x-usb",
"base64",
"xous-bio-bdma/baremetal",
"xous-bio-bdma/bao1x",
]
trng-debug = []
verbose-debug = []
dabao-selftest = [
"xous-bio-bdma/bio-mul",
"xous-bio-bdma/baremetal",
"xous-bio-bdma/bao1x",
]
factory-utils = ["ux-api/loader-baosec"]
ci-security = []
spim-tests = []
redteam = ["bao1x-hal/redteam"]
verilator-only = []
default = ["bao1x-usb"]