Atlas - dumpvars.py
Home / ext / kconfiglib / examples Lines: 1 | Size: 463 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1# Prints all (set) environment variables referenced in the Kconfig files 2# together with their values, as a list of assignments. 3# 4# Note: This only works for environment variables referenced via the $(FOO) 5# preprocessor syntax. The older $FOO syntax is maintained for backwards 6# compatibility. 7 8import os 9import sys 10 11import kconfiglib 12 13 14print(" ".join("{}='{}'".format(var, os.environ[var]) 15 for var in kconfiglib.Kconfig(sys.argv[1]).env_vars)) 16[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.