fix(Kconfig): Fix non existant LV_STDLIB_BUILTIN (#6851)

This commit is contained in:
Fabian Blatz
2024-09-20 05:59:09 +02:00
committed by GitHub
parent 9ad396bab4
commit 57b799f4fc
5 changed files with 56 additions and 5 deletions

29
scripts/kconfig_verify.py Normal file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env python3
import sys
try:
import kconfiglib
except ImportError:
print("Need kconfiglib package, do `pip3 install kconfiglib`")
sys.exit(1)
def verify_kconfig(kconfig_file):
kconf = kconfiglib.Kconfig(kconfig_file)
if kconf.warnings:
print("Warnings found:")
for warning in kconf.warnings:
print(warning)
sys.exit(1)
else:
print("No warnings found.")
if __name__ == "__main__":
if len(sys.argv) != 2:
print("Usage: python check_kconfig.py <Kconfig_file>")
sys.exit(1)
verify_kconfig(sys.argv[1])