Commit b2266f7
authored
Refactor build and run modules for improved structure and clarity (drivercraft#21)
* Refactor build and run modules for improved structure and clarity
- Renamed methods for consistency and clarity (e.g., `build_custrom` to `build_custom`, `perpare_build_config` to `prepare_build_config`).
- Introduced `CargoRunnerKind` enum to encapsulate QEMU and U-Boot configurations.
- Moved cargo-related functionality from `cargo.rs` to `cargo_builder.rs` for better separation of concerns.
- Consolidated path management into `PathConfig` struct, simplifying path handling throughout the application.
- Updated `AppContext` to use the new `PathConfig` structure, removing direct references to paths.
- Enhanced error handling and path normalization in build and run processes.
- Removed deprecated `cargo.rs` file and adjusted references accordingly.
- Updated TFTP and U-Boot implementations to utilize the new path management structure.
* chore: update dependencies and improve code structure
* fix: update qemu installation step to include package list update
* fix: format qemu installation step for improved readability
* style: streamline code formatting1 parent ffa4447 commit b2266f7
File tree
15 files changed
+602
-613
lines changed- .github/workflows
- jkconfig/tests
- ostool
- src
- bin
- build
- run
15 files changed
+602
-613
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
93 | 104 | | |
94 | | - | |
95 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
96 | 111 | | |
97 | 112 | | |
98 | 113 | | |
| |||
0 commit comments