Skip to content

tool: migrate to new environment info gathering#488

Open
zaklogician wants to merge 1 commit into
seL4:mainfrom
au-ts:viper/sdkinfo
Open

tool: migrate to new environment info gathering#488
zaklogician wants to merge 1 commit into
seL4:mainfrom
au-ts:viper/sdkinfo

Conversation

@zaklogician
Copy link
Copy Markdown
Contributor

As part of a series of patches which upstream Viper export to Microkit, we separate SDK environment discovery from main.rs into sdk.rs.

SDK discovery is the following process:

  1. finding the location of the Microkit directory based on the MICROKIT_SDK env variable, or if that's not set then based on the location of the tool executable itself)
  2. finding the list of available boards and configs (debug/release/etc.)

This has to happen before argument parsing, and lets us give better error messages (e.g. we can report available configs if an invalid --config argument is given).

Signed-off-by: Zoltan A. Kocsis <11808286+zaklogician@users.noreply.github.com>
Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
@zaklogician
Copy link
Copy Markdown
Contributor Author

This is ready for review, the failing check is a wontfix gitlint issue resulting from my long email address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant