Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Load platform settings from config#76

Draft
JohnAZoidberg wants to merge 5 commits intomain from
config-file
Draft

Load platform settings from config #76
JohnAZoidberg wants to merge 5 commits intomain from
config-file

Conversation

@JohnAZoidberg
Copy link
Member

@JohnAZoidberg JohnAZoidberg commented Feb 9, 2025
edited
Loading

This is useful instead of the commandline parameters --has-mec --pd-ports --pd-addrs
when SMBIOS doesn't correctly detect the correct platform settings.

  • Read from CWD
    • Test on Windows
    • Test on Linux
    • Test on UEFI
  • Read from same folder as binary
    • Test on Windows
    • Test on Linux
    • Test on UEFI
  • Read from $XDG_CONFIG_HOME on Linux

Sample config for Framework 13 AMD:

[platform]
has_mec = false
pd_addrs = [ 0x42, 0x40 ]
pd_ports = [ 1, 2 ]

Copy link
Member Author

JohnAZoidberg commented Feb 19, 2025
edited
Loading

serde can be built on uefi but toml can't

Copy link
Member Author

Should let you specify an existing platform and override that.

Copy link
Member Author

Also would be useful to easily specify those at compiletime.

This is useful instead of the commandline parameters
--has-mec --pd-ports --pd-addrs
when SMBIOS doesn't correctly detect the correct platform settings.
- [x] Read from CWD
 - [x] Test on Windows
 - [x] Test on Linux
 - [ ] Test on UEFI
- [x] Read from same folder as binary
 - [x] Test on Windows
 - [x] Test on Linux
 - [ ] Test on UEFI
- [ ] Read from $XDG_CONFIG_HOME on Linux
Sample config for Framework 13 AMD:
```
[platform]
has_mec = false
pd_addrs = [ 0x42, 0x40 ]
pd_ports = [ 1, 2 ]
```
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

Comments

AltStyle によって変換されたページ (->オリジナル) /