2025-06-13 17:43:32 +00:00
|
|
|
[package]
|
|
|
|
|
name = "baremetal"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
authors = ["bunnie <bunnie@kosagi.com>"]
|
|
|
|
|
edition = "2018"
|
|
|
|
|
description = "Baremetal target"
|
|
|
|
|
|
|
|
|
|
[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-18 13:25:51 +00:00
|
|
|
bao1x-hal = { path = "../libs/bao1x-hal", optional = true, default-features = false }
|
|
|
|
|
bao1x-api = { path = "../libs/bao1x-api", optional = true, default-features = false }
|
2025-06-15 15:22:47 +00:00
|
|
|
vexriscv = { version = "0.5.6", package = "xous-riscv" }
|
|
|
|
|
riscv = { version = "0.14.0", features = ["critical-section-single-hart"] }
|
2025-06-13 17:43:32 +00:00
|
|
|
linked_list_allocator = { version = "0.10.5", optional = true }
|
2025-06-14 17:04:09 +00:00
|
|
|
xous-bio-bdma = { path = "../libs/xous-bio-bdma", optional = true, default-features = false }
|
2025-06-15 15:22:47 +00:00
|
|
|
critical-section = "1.2.0"
|
2025-09-07 07:11:46 +00:00
|
|
|
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 }
|
2025-09-29 08:21:53 +00:00
|
|
|
ed25519-dalek = { package = "ed25519-dalek-bao1x", path = "../bao1x-boot/ed25519-dalek-bao1x", default-features = false, features = [
|
2025-09-07 07:11:46 +00:00
|
|
|
"digest",
|
2025-09-29 08:21:53 +00:00
|
|
|
"zeroize",
|
|
|
|
|
], optional = true }
|
2025-09-13 15:30:01 +00:00
|
|
|
base64 = { version = "0.22.1", optional = true, default-features = false, features = [
|
|
|
|
|
"alloc",
|
|
|
|
|
] }
|
2025-09-29 08:21:53 +00:00
|
|
|
sha2-bao1x = { path = "../bao1x-boot/sha2-bao1x", optional = true, default-features = false }
|
|
|
|
|
hex-literal = "1.0.0"
|
2026-02-13 17:31:35 +00:00
|
|
|
hex = { version = "0.4.3", default-features = false }
|
2025-06-13 17:43:32 +00:00
|
|
|
|
|
|
|
|
[features]
|
2025-06-14 17:04:09 +00:00
|
|
|
artybio = [
|
|
|
|
|
"utralib/artybio",
|
|
|
|
|
"linked_list_allocator",
|
|
|
|
|
"xous-bio-bdma/artybio",
|
|
|
|
|
"xous-bio-bdma/baremetal",
|
2025-09-18 13:25:51 +00:00
|
|
|
"bao1x-bio",
|
2025-06-14 17:04:09 +00:00
|
|
|
]
|
2025-07-10 06:56:27 +00:00
|
|
|
artyvexii = ["utralib/artyvexii", "linked_list_allocator"]
|
2025-08-06 17:03:15 +00:00
|
|
|
|
|
|
|
|
# Baochip feature tree below
|
2025-09-18 13:25:51 +00:00
|
|
|
bao1x = [
|
|
|
|
|
"utralib/bao1x",
|
2025-08-04 08:11:30 +00:00
|
|
|
"linked_list_allocator",
|
2025-10-19 18:21:28 +00:00
|
|
|
"bao1x-hal/debug-print-uart",
|
2025-12-22 08:18:21 +00:00
|
|
|
"bao1x-hal/security",
|
2025-09-18 13:25:51 +00:00
|
|
|
"bao1x-api",
|
2025-09-29 08:21:53 +00:00
|
|
|
"digest",
|
|
|
|
|
"sha2-bao1x",
|
2025-08-04 08:11:30 +00:00
|
|
|
]
|
2025-10-31 01:46:09 +00:00
|
|
|
board-baosec = ["bao1x-hal/loader-baosec"]
|
|
|
|
|
board-dabao = ["bao1x-hal/board-dabao"]
|
2025-08-06 17:03:15 +00:00
|
|
|
# activates BIO test suite
|
2025-09-18 13:25:51 +00:00
|
|
|
bao1x-bio = [
|
2025-08-06 17:03:15 +00:00
|
|
|
"xous-bio-bdma/bio-mul",
|
|
|
|
|
"xous-bio-bdma/baremetal",
|
2025-09-18 13:25:51 +00:00
|
|
|
"xous-bio-bdma/bao1x",
|
2025-08-06 17:03:15 +00:00
|
|
|
"xous-bio-bdma/tests",
|
2025-10-07 18:57:13 +00:00
|
|
|
"xous-bio-bdma/debug-print",
|
2025-08-06 10:51:07 +00:00
|
|
|
]
|
2025-08-06 17:03:15 +00:00
|
|
|
# selects features for EVB target (defaults to baosec)
|
2025-09-18 13:25:51 +00:00
|
|
|
bao1x-evb = []
|
|
|
|
|
bao1x-usb = [
|
|
|
|
|
# "bao1x-hal/debug-print-usb",
|
|
|
|
|
# "bao1x-hal/verbose-debug",
|
2025-09-08 01:50:17 +00:00
|
|
|
]
|
2025-09-18 13:25:51 +00:00
|
|
|
bao1x-buttons = []
|
|
|
|
|
bao1x-trng = [
|
|
|
|
|
"bao1x-usb",
|
2025-09-13 18:15:21 +00:00
|
|
|
"base64",
|
|
|
|
|
"xous-bio-bdma/baremetal",
|
2025-09-18 13:25:51 +00:00
|
|
|
"xous-bio-bdma/bao1x",
|
2025-09-13 18:15:21 +00:00
|
|
|
]
|
2025-09-18 12:17:45 +00:00
|
|
|
trng-debug = []
|
2025-09-10 16:52:01 +00:00
|
|
|
verbose-debug = []
|
2025-10-17 17:16:42 +00:00
|
|
|
dabao-selftest = [
|
|
|
|
|
"xous-bio-bdma/bio-mul",
|
|
|
|
|
"xous-bio-bdma/baremetal",
|
|
|
|
|
"xous-bio-bdma/bao1x",
|
|
|
|
|
]
|
2026-06-15 15:03:45 +00:00
|
|
|
factory-utils = ["ux-api/loader-baosec"]
|
2025-11-20 16:58:23 +00:00
|
|
|
ci-security = []
|
2025-10-29 20:16:59 +00:00
|
|
|
spim-tests = []
|
2025-11-22 05:43:41 +00:00
|
|
|
redteam = ["bao1x-hal/redteam"]
|
2025-08-06 10:51:07 +00:00
|
|
|
|
2025-06-13 17:43:32 +00:00
|
|
|
verilator-only = []
|
2025-11-22 05:43:41 +00:00
|
|
|
default = ["bao1x-usb"]
|