cleanup dependency tree going down to the cramium-hal layer

remove features that we don't need so as to make the tree as
simple as possible to descend

in particular if we're just pinging the HAL layer for some simple
constants we don't have to pull in the hairball of std targets
This commit is contained in:
bunnie 2025-05-20 14:38:03 +08:00
parent fa3ab1dea1
commit 821c6ce47c
3 changed files with 17 additions and 13 deletions

View file

@ -15,10 +15,7 @@ xous = { version = "0.9.66", features = ["raw-trng"] }
xous-ipc = "0.10.6"
log-server = { package = "xous-api-log", version = "0.1.65" }
log = "0.4.14"
cramium-hal = { path = "../../libs/cramium-hal", features = [
"derive-rkyv",
"std",
] }
cramium-hal = { path = "../../libs/cramium-hal", default-features = false }
cramium-api = { path = "../../libs/cramium-api", features = [
"derive-rkyv",
"std",
@ -48,6 +45,9 @@ rawserial = []
pinger = []
swap = []
mpw = ["cramium-hal/mpw"]
board-baosec = ["cramium-hal/board-baosec"]
board-baosor = ["cramium-hal/board-baosor"]
board-dabao = ["cramium-hal/board-dabao"]
# add this feature to enable pre-emption
quantum-timer = ["utralib", "pio"]
default = ["app-uart", "utralib"]

View file

@ -80,6 +80,7 @@ board-baosec = [
"ux-api/board-baosec",
"keystore-api/gen2",
"modals/no-gam",
"modals/cramium-soc",
] # USB form factor token
loader-baosec = ["ux-api/loader-baosec"]
test-baosec = ["ux-api/loader-baosec"]
@ -90,6 +91,7 @@ hosted-baosec = [
board-baosor = [
"utralib/cramium-soc",
"keystore-api/gen2",
"modals/cramium-soc",
] # Precursor form factor
loader-baosor = []
board-dabao = [

View file

@ -25,25 +25,27 @@ cram-hal-service = { path = "../cram-hal-service", optional = true } # provides
tts-frontend = { path = "../tts", optional = true }
locales = { path = "../../locales" }
bit_field = "0.9.0"
cramium-hal = { path = "../../libs/cramium-hal", optional = true, features = [
"std",
] }
cramium-api = { path = "../../libs/cramium-api", optional = true }
cramium-emu = { path = "../cramium-emu", optional = true }
blitstr2 = { path = "../../libs/blitstr2" }
ux-api = { path = "../../libs/ux-api", optional = true, features = ["std"] }
utralib = { version = "0.1.25", optional = true, default-features = false }
[features]
no-gam = []
precursor = ["utralib/precursor", "trng", "gam", "tts-frontend"]
hosted = ["utralib/hosted", "trng", "gam", "tts-frontend"]
renode = ["utralib/renode", "trng", "gam", "tts-frontend"]
precursor = ["trng", "gam", "tts-frontend"]
hosted = ["trng", "gam", "tts-frontend"]
renode = ["trng", "gam", "tts-frontend"]
cramium-soc = ["utralib/cramium-soc", "cram-hal-service", "no-gam"]
cramium-soc = ["cram-hal-service", "no-gam"]
hosted-baosec = ["ux-api/hosted-baosec", "cramium-emu", "cramium-api", "no-gam"]
board-baosec = ["ux-api/board-baosec", "cramium-api", "no-gam"]
board-baosec = [
"ux-api/board-baosec",
"cramium-api",
"no-gam",
"cram-hal-service/board-baosec",
"cramium-soc",
]
doc-deps = ["gam", "ux-api/doc-deps"]
modal-testing = []