Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!-- Generated by scripts/generate_dts_supported_hardware_matrix.py -->

| Vendor/Model | Dasharo release id |
|---|---|
| `3mdeb test config / fum_cap_test` | `novacustom_v54x_mtl_igpu` |
| `asrock industrial / nuc box-125h` | `novacustom_nuc_box_mtl` |
| `hardkernel / odroid-h4` | `hardkernel_odroid_h4` |
| `micro-star international co., ltd. / ms-7d25 / pro z690-a (ms-7d25)` | `msi_ms7d25` |
| `micro-star international co., ltd. / ms-7d25 / pro z690-a ddr4(ms-7d25)` | `msi_ms7d25` |
| `micro-star international co., ltd. / ms-7d25 / pro z690-a wifi (ms-7d25)` | `msi_ms7d25` |
| `micro-star international co., ltd. / ms-7d25 / pro z690-a wifi ddr4(ms-7d25)` | `msi_ms7d25` |
| `micro-star international co., ltd. / ms-7e06 / pro z790-p (ms-7e06)` | `msi_ms7e06` |
| `micro-star international co., ltd. / ms-7e06 / pro z790-p ddr4 (ms-7e06)` | `msi_ms7e06` |
| `micro-star international co., ltd. / ms-7e06 / pro z790-p ddr4(ms-7e06)` | `msi_ms7e06` |
| `micro-star international co., ltd. / ms-7e06 / pro z790-p wifi (ms-7e06)` | `msi_ms7e06` |
| `micro-star international co., ltd. / ms-7e06 / pro z790-p wifi ddr4 (ms-7e06)` | `msi_ms7e06` |
| `micro-star international co., ltd. / ms-7e06 / pro z790-p wifi ddr4(ms-7e06)` | `msi_ms7e06` |
| `notebook / ns50_70mu` | `novacustom_ns5x_tgl` |
| `notebook / ns5x_ns7xpu` | `novacustom_ns5x_adl` |
| `notebook / nv4xmb,me,mz` | `novacustom_nv4x_tgl` |
| `notebook / nv4xpz` | `novacustom_nv4x_adl` |
| `notebook / v54x_6x_tu / v540tu` | `novacustom_v54x_mtl_igpu` |
| `notebook / v54x_6x_tu / v560tu` | `novacustom_v56x_mtl_igpu` |
| `notebook / v5xtnc_tnd_tne / v540tnx` | `novacustom_v54x_mtl_dgpu` |
| `notebook / v5xtnc_tnd_tne / v560tnx` | `novacustom_v56x_mtl_dgpu` |
| `novacustom / nuc_box` | `novacustom_nuc_box_mtl` |
| `pc engines / apu2` | `pcengines_apu2` |
| `pc engines / apu3` | `pcengines_apu3` |
| `pc engines / apu4` | `pcengines_apu4` |
| `pc engines / apu6` | `pcengines_apu6` |
7 changes: 7 additions & 0 deletions docs/dasharo-tools-suite/documentation/supported-hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ proprietary vendor EC firmware to the Dasharo EC firmware on this hardware:
* [NovaCustom V540TNx](../../variants/novacustom_v540tnx/releases.md)
* [NovaCustom V560TU](../../variants/novacustom_v560tu/releases.md)
* [NovaCustom V560TNx](../../variants/novacustom_v560tnx/releases.md)

## Generated mapping matrix (experimental)

The table below is generated from DTS metadata mapping in `dts-configs` (see `Dasharo/dts-configs#39`) to reduce manual drift in this page.

--8<-- "dasharo-tools-suite/documentation/_generated-supported-hardware-matrix.md"

35 changes: 35 additions & 0 deletions scripts/generate_dts_supported_hardware_matrix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env python3
import json
from pathlib import Path

MAPPING = Path('/tmp/wuxie/dts-configs/configs/docs_supported_platforms.json')
OUT = Path('docs/dasharo-tools-suite/documentation/_generated-supported-hardware-matrix.md')


def to_display(vendor, model, board):
v = vendor.replace('_', ' ')
if board:
return f"{v} / {model} / {board}"
return f"{v} / {model}"


def main():
data = json.loads(MAPPING.read_text())
entries = data.get('entries', [])
lines = [
'<!-- Generated by scripts/generate_dts_supported_hardware_matrix.py -->',
'',
'| Vendor/Model | Dasharo release id |',
'|---|---|',
]
for e in entries:
disp = to_display(e['system_vendor'], e['system_model'], e.get('board_model'))
rel = e.get('dasharo_rel_name', '')
lines.append(f"| `{disp}` | `{rel}` |")

OUT.write_text('\n'.join(lines) + '\n')
print(f'Wrote {OUT} with {len(entries)} rows')


if __name__ == '__main__':
main()