Commit 0b722b4
committed
cmake: kconfig: skip the Kconfig checksum recalculation when it is unused
The loop that recalculates the checksum after kconfig.py runs is only
consumed inside if(CREATE_NEW_DOTCONFIG). On any configure that does not
regenerate .config its result is discarded, so hashing all 5001 parsed
Kconfig sources is pure waste, measured in isolation at 168 ms.
Move the loop into the block that consumes it. The file(STRINGS) read
above stays where it is, as it also feeds the CMAKE_CONFIGURE_DEPENDS
registration, which must keep running unconditionally.
Assisted-by: Claude Code:claude-opus-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>1 parent 7ddf02c commit 0b722b4
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | 438 | | |
447 | 439 | | |
448 | 440 | | |
| |||
451 | 443 | | |
452 | 444 | | |
453 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
0 commit comments