Commit 7b787cd
committed
Load platform settings from config
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>1 parent df87e97 commit 7b787cd
6 files changed
Lines changed: 622 additions & 340 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
0 commit comments