| commit | 2bfd1501284a611509cc69844c230a3b9e099f93 | [log] [tgz] |
|---|---|---|
| author | Benjamin Cabé <benjamin@zephyrproject.org> | Wed Dec 10 12:52:18 2025 +0100 |
| committer | Fabio Baltieri <fabio.baltieri@gmail.com> | Thu Dec 18 14:51:29 2025 +0000 |
| tree | 837c7aace5680c1d56e208ec04c5361907e039ea | |
| parent | f6fccc57e1e3952293d3035e1a9ad58a0bbe72e2 [diff] |
cmake: hwmv2: optimize hardware list parsing with CMake lists Replace inefficient string parsing loop with CMake list iteration for processing list_hardware.py output. The previous implementation used repeated string operations on the entire output string for each line, which is increasingly slow as hardware list grows. Local tests show hwmv2.cmake module loading in ~350 ms instead of 540 ms on my machine. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>