Skip to content

Conversation

@JohnAZoidberg
Copy link
Member

@JohnAZoidberg JohnAZoidberg commented Feb 9, 2025

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 ]

@JohnAZoidberg
Copy link
Member Author

JohnAZoidberg commented Feb 19, 2025

serde can be built on uefi but toml can't

@JohnAZoidberg
Copy link
Member Author

Should let you specify an existing platform and override that.

@JohnAZoidberg
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 <[email protected]>
Signed-off-by: Daniel Schaefer <[email protected]>
Signed-off-by: Daniel Schaefer <[email protected]>
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.

2 participants