Skip to content

Commit 4b8af0f

Browse files
committed
feat: make merge_config public and add PartialEq to Arch enum; expose elf and uboot fields in TestPrepare
1 parent adf34fc commit 4b8af0f

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

ostool/src/config/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl ConfigLoader {
110110
Ok(())
111111
}
112112

113-
fn merge_config(&self, base: &mut ProjectConfig, overlay: &ProjectConfig) {
113+
pub fn merge_config(&self, base: &mut ProjectConfig, overlay: &ProjectConfig) {
114114
// Simple merge strategy - overlay takes precedence
115115
if !overlay.compile.target.is_empty() {
116116
base.compile.target = overlay.compile.target.clone();

ostool/src/project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl Project {
130130
}
131131
}
132132

133-
#[derive(Debug, Clone, Copy)]
133+
#[derive(Debug, Clone, Copy, PartialEq)]
134134
pub enum Arch {
135135
Aarch64,
136136
Riscv64,

ostool/src/step/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ pub use uboot::*;
1515

1616
pub trait Step {
1717
fn run(&mut self, project: &mut Project) -> Result<()>;
18+
fn is_debug(&self) -> bool { false }
1819
}

ostool/src/step/test_prepare.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ impl From<Architecture> for Arch {
3737

3838
/// Unified test preparation step that handles both cargo test and manual testing
3939
pub struct TestPrepare {
40-
elf: Option<String>,
41-
uboot: bool,
40+
pub elf: Option<String>,
41+
pub uboot: bool,
4242
}
4343

4444
impl TestPrepare {

0 commit comments

Comments
 (0)