-def parse_kconfig():
- "Execute parse_kconfig in linux_sources directory."
- if os.path.isfile(sf(conf.symbol_map_file)) and \
- os.path.isfile(sf(conf.rules_file)) and \
- os.path.isfile(sf(conf.variable_count_file)):
- print('Warning: parse_kconfig not executed. Files already exists.')
- return
- print('Executing parse_kconfig...')
- wd = os.getcwd()
- os.chdir(sf(conf.linux_sources))
- parse_kconfig_cmd = [sf(conf.parse_kconfig)]
- parse_kconfig_cmd += ['Kconfig', sf(conf.build_folder)]
- parse_kconfig_cmd += ['-v', '-v']
- utils.callsubprocess("parse_kconfig", parse_kconfig_cmd,
- conf.parse_kconfig_output, env=utils.get_kernel_env())
- os.chdir(wd)
-
-