Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ See `microkit --help` for a full list of options.
The path to the system description file, board to build the system for, and configuration to build for must be provided.

The search paths provided tell the tool where to find any program images specified in the system description file.
The current working directory is always included as a search path.

In the case of errors, a diagnostic message shall be output to `stderr` and a non-zero code returned.

Expand Down
3 changes: 2 additions & 1 deletion tool/microkit/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fn main() -> Result<(), String> {
available_boards.sort();

let env_args: Vec<_> = std::env::args().collect();
let args = match Args::parse(&env_args, &available_boards) {
let mut args = match Args::parse(&env_args, &available_boards) {
Ok(result) => result,
Err(ArgsError::HelpWanted) => {
argparse::print_help(&available_boards);
Expand All @@ -144,6 +144,7 @@ fn main() -> Result<(), String> {
std::process::exit(1);
}
};
args.search_paths.push(std::env::current_dir().unwrap());

let board_path = boards_path.join(&args.board);
if !board_path.exists() {
Expand Down
Loading