[PATCH 1/4] Makefile: Add a Python-based CONFIG checker

Tom Rini trini at konsulko.com
Wed Sep 14 20:47:15 CEST 2022


On Mon, Aug 29, 2022 at 07:57:04AM -0600, Simon Glass wrote:
> The existing shell script is a bit ugly. It was picked up by
> Chromium OS and then rewritten in Python, adding unit tests. Bring this
> new version into U-Boot.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  scripts/kconfig_check.py      | 338 ++++++++++++++++++++++++++++++++++
>  scripts/test_kconfig_check.py | 185 +++++++++++++++++++
>  2 files changed, 523 insertions(+)
>  create mode 100755 scripts/kconfig_check.py
>  create mode 100755 scripts/test_kconfig_check.py

All told, this ends up being +400 or so lines to replace a shell script
with Python. I'm not sure that's a win overall.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220914/2f4fe950/attachment.sig>


More information about the U-Boot mailing list