Skip to content

Commit c83ebec

Browse files
committed
windows: Get ESRT from WMI
> target\debug\framework_tool.exe --esrt` ESRT Entry 0 Name: MtlRetimer01 GUID: c57fd615-2ac9-4154-bf34-4dc715344408 Version: CF (207) ESRT Entry 1 Name: MtlCsme GUID: 32d8d677-eebc-4947-8f8a-0693a45240e5 Version: 85D (2141) ESRT Entry 2 Name: MtlBios GUID: 72cecb9b-2b37-5ec2-a9ff-c739aabaadf3 Version: 301 (769) ESRT Entry 3 Name: MtlRetimer23 GUID: bdffce36-809c-4fa6-aecc-54536922f0e0 Version: CF (207) Could not find and parse ESRT table. Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 6646792 commit c83ebec

File tree

3 files changed

+309
-7
lines changed

3 files changed

+309
-7
lines changed

Cargo.lock

Lines changed: 250 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework_lib/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ freebsd = ["unix", "freebsd_pio", "hidapi", "rusb"]
1414
# hidapi and rusb don't seem to build in the cross container at the moment
1515
cross_freebsd = ["unix", "freebsd_pio"]
1616
# Windows does not have the cros_ec driver nor raw port I/O access to userspace
17-
windows = ["std", "smbios", "dep:windows", "win_driver", "raw_pio", "hidapi", "rusb"]
17+
windows = ["std", "smbios", "dep:windows", "win_driver", "raw_pio", "hidapi", "rusb", "dep:wmi"]
1818
smbios = ["dep:smbios-lib"]
1919
std = ["dep:clap", "dep:clap-verbosity-flag", "dep:env_logger", "smbios-lib?/std"]
2020
rusb = ["dep:rusb"]
@@ -64,6 +64,7 @@ hidapi = { version = "2.1.0", optional = true }
6464
rusb = { version = "0.9.1", optional = true }
6565
no-std-compat = { version = "0.4.1", features = [ "alloc" ] }
6666
guid_macros = { path = "../guid_macros" }
67+
wmi = { version = "0.13.3", optional = true }
6768

6869
[dependencies.smbios-lib]
6970
git = "https://github.com/FrameworkComputer/smbios-lib.git"

0 commit comments

Comments
 (0)