Lines Matching refs:kconf
46 kconf = Kconfig(args.kconfig_file, warn_to_stderr=False,
53 kconf.warn_assign_undef = True
57 kconf.warn_assign_override = False
58 kconf.warn_assign_redun = False
67 kconf.warn_assign_redun = False
70 print(kconf.load_config(args.configs_in[0]))
73 print(kconf.load_config(config, replace=False))
82 check_no_promptless_assign(kconf)
87 check_assigned_sym_values(kconf)
88 check_assigned_choice_values(kconf)
90 if kconf.syms.get('WARN_DEPRECATED', kconf.y).tri_value == 2:
91 check_deprecated(kconf)
93 if kconf.syms.get('WARN_EXPERIMENTAL', kconf.y).tri_value == 2:
94 check_experimental(kconf)
102 kconf.write_config(os.devnull)
106 if kconf.warnings:
113 for warning in kconf.warnings:
130 print(kconf.write_config(args.config_out))
131 print(kconf.write_autoconf(args.header_out))
134 write_kconfig_filenames(kconf, args.kconfig_list_out)
137 def check_no_promptless_assign(kconf): argument
140 for sym in kconf.unique_defined_syms:
148 def check_assigned_sym_values(kconf): argument
153 for sym in kconf.unique_defined_syms:
215 def check_assigned_choice_values(kconf): argument
228 for choice in kconf.unique_choices:
248 def check_deprecated(kconf): argument
249 deprecated = kconf.syms.get('DEPRECATED')
250 dep_expr = kconf.n if deprecated is None else deprecated.rev_dep
252 if dep_expr is not kconf.n:
259 def check_experimental(kconf): argument
260 experimental = kconf.syms.get('EXPERIMENTAL')
261 dep_expr = kconf.n if experimental is None else experimental.rev_dep
263 if dep_expr is not kconf.n:
277 def write_kconfig_filenames(kconf, kconfig_list_path): argument
284 for path in sorted({os.path.realpath(os.path.join(kconf.srctree, path))
285 for path in kconf.kconfig_filenames}):