Skip to content

Commit

Permalink
Remove dependency on xtensa-lx (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored Nov 13, 2024
1 parent c364721 commit f96a7dc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 29 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion esp32/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ test = false
[dependencies]
critical-section = { version = "1.1.3", optional = true }
vcell = "0.1.3"
xtensa-lx = "0.9.0"
defmt = { version = "0.3.8", optional = true }

[features]
Expand Down
1 change: 0 additions & 1 deletion esp32s2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ test = false
[dependencies]
critical-section = { version = "1.1.3", optional = true }
vcell = "0.1.3"
xtensa-lx = "0.9.0"
defmt = { version = "0.3.8", optional = true }

[features]
Expand Down
1 change: 0 additions & 1 deletion esp32s3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ test = false
[dependencies]
critical-section = { version = "1.1.3", optional = true }
vcell = "0.1.3"
xtensa-lx = "0.9.0"
defmt = { version = "0.3.8", optional = true }

[features]
Expand Down
15 changes: 3 additions & 12 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ enum Commands {

/// Generate the specified package(s)
///
/// Additionally patches the releavant SVD(s) prior to generating the
/// Additionally patches the relevant SVD(s) prior to generating the
/// package(s).
Generate {
/// Package(s) to target
Expand Down Expand Up @@ -272,22 +272,13 @@ fn build_package(workspace: &Path, chip: &Chip) -> Result<()> {

if target.starts_with("riscv") {
Command::new("rustup")
.args([
"target",
"add",
&target,
])
.args(["target", "add", &target])
.current_dir(&path)
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.output()?;
Command::new("cargo")
.args([
&format!("+{channel}"),
"build",
"--target",
&target,
])
.args([&format!("+{channel}"), "build", "--target", &target])
.current_dir(path)
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
Expand Down

0 comments on commit f96a7dc

Please sign in to comment.