add features for cramium target

This commit is contained in:
bunnie 2024-06-13 22:03:58 +08:00
parent b2a8d0e7f4
commit 123ff3ed66

View file

@ -491,13 +491,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// are resident, non-swapable, but end up making the slow kernel burn process take longer.
let cramium_flash_pkgs =
["xous-ticktimer", "xous-log", "cram-hal-service", "xous-names", "graphics-server"].to_vec();
/*
let cramium_swap_pkgs =
["gam", "modals", "ime-plugin-shell", "ime-frontend", "cram-console", "usb-device-xous"]
.to_vec();
*/
// minimal config for USB debugging
let cramium_swap_pkgs = ["usb-device-xous"].to_vec(); // , "cram-console"
// let cramium_swap_pkgs = ["usb-device-xous"].to_vec(); // , "cram-console"
if !builder.is_swap_set() {
builder.set_swap(0, 4 * 1024 * 1024);
}
@ -521,7 +519,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
builder.add_feature("quantum-timer");
builder.add_feature("auto-trng"); // automatically initialize TRNG tester inside USB stack
// builder.add_kernel_feature("v2p");
// builder.add_feature("mass-storage");
builder.add_feature("mass-storage");
match task.as_deref() {
Some("cramium-fpga") => builder.target_cramium_fpga(),
Some("cramium-soc") => builder.target_cramium_soc(),