mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
update xtask to handle new autostatics method
This commit is contained in:
parent
a3a7bf9f3a
commit
19ebb5196c
2 changed files with 5 additions and 2 deletions
|
|
@ -825,6 +825,7 @@ impl Builder {
|
|||
if self.change_target {
|
||||
std::fs::remove_file(&svd_spec_path).ok(); // don't fail if the file does not exist
|
||||
}
|
||||
let is_bao = if self.utra_target == "bao1x" { "--bao1x" } else { "" };
|
||||
|
||||
// ------ build the loader ------
|
||||
// stash any LTO settings applied to the kernel; proper layout of the loader
|
||||
|
|
@ -875,6 +876,7 @@ impl Builder {
|
|||
"--",
|
||||
&loader[0],
|
||||
output_file.as_os_str().to_str().unwrap(),
|
||||
is_bao,
|
||||
])
|
||||
.status()?;
|
||||
if !status.success() {
|
||||
|
|
@ -947,6 +949,7 @@ impl Builder {
|
|||
"--",
|
||||
&loader[0],
|
||||
loader_presign.as_os_str().to_str().unwrap(),
|
||||
is_bao,
|
||||
])
|
||||
.status()?;
|
||||
if !status.success() {
|
||||
|
|
|
|||
|
|
@ -600,13 +600,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
|
||||
Some("baremetal-bao1x") => {
|
||||
builder.set_baremetal(true);
|
||||
update_flash_origin("baremetal/src/platform/bao1x/link.x", 0x6000_0000)?;
|
||||
update_flash_origin("baremetal/src/platform/bao1x/link.x", 0x6000_0100)?;
|
||||
builder.target_baremetal_bao1x();
|
||||
}
|
||||
|
||||
Some("baremetal-bao1x-evb") => {
|
||||
builder.set_baremetal(true);
|
||||
update_flash_origin("baremetal/src/platform/bao1x/link.x", 0x6100_0000)?;
|
||||
update_flash_origin("baremetal/src/platform/bao1x/link.x", 0x6100_0100)?;
|
||||
builder.add_loader_feature("bao1x-evb");
|
||||
builder.target_baremetal_bao1x();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue