fixup bao1x-sim target

This commit is contained in:
bunnie 2025-09-20 22:10:48 +08:00
parent 54571572ac
commit f2fe921ff1
2 changed files with 10 additions and 2 deletions

View file

@ -224,7 +224,7 @@ impl Builder {
self
}
/// Disable default features on the loader
/// Disable default features on the kernel
#[allow(dead_code)]
pub fn kernel_disable_defaults(&mut self) -> &mut Builder {
self.kernel_disable_defaults = true;

View file

@ -499,7 +499,15 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
builder.add_loader_feature(board);
builder.add_kernel_feature(board);
}
_ => (), // don't add any board because this is simulation
Some("bao1x-sim") => {
let board = "board-dabao";
// select the board
builder.add_feature(board);
builder.add_loader_feature(board);
builder.add_kernel_feature(board);
builder.kernel_disable_defaults(); // need to turn of kernel DUART exclusive access so console can work!
}
_ => panic!("unhandled configuration"),
};
// placement in flash is a tension between dev convenience and RAM usage. Things in flash