summaryrefslogtreecommitdiff
path: root/tools/u_boot_pylib/test_util.py
diff options
context:
space:
mode:
authorRasmus Villemoes <ravi@prevas.dk>2024-10-03 16:10:28 +0200
committerTom Rini <trini@konsulko.com>2024-10-16 15:54:31 -0600
commit32822982307d3f4288580fe2f3b25e5031900702 (patch)
treef6e1688111381dcbc6175a4266e18ea85f197616 /tools/u_boot_pylib/test_util.py
parentf4e7a399480c453df055b521ceda4c57ffb8e99e (diff)
serial: add build-time sanity check of CONFIG_SERIAL_RX_BUFFER_SIZE
The help text says it must be a power of 2, and the implementation does rely on that. Enforce it. A violation gives a wall of text, but the last few lines should be reasonably obvious: drivers/serial/serial-uclass.c:334:9: note: in expansion of macro ‘BUILD_BUG_ON_NOT_POWER_OF_2’ 334 | BUILD_BUG_ON_NOT_POWER_OF_2(CONFIG_SERIAL_RX_BUFFER_SIZE); Signed-off-by: Rasmus Villemoes <ravi@prevas.dk> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/u_boot_pylib/test_util.py')
0 files changed, 0 insertions, 0 deletions