Lines Matching refs:options
553 def confirm(options, prompt): argument
554 if not options.yes:
567 def cleanup_empty_blocks(header_path, options): argument
581 options.color)
583 if options.dry_run:
589 def cleanup_one_header(header_path, patterns, options): argument
640 show_diff(lines, tolines, header_path, options.color)
642 if options.dry_run:
649 def cleanup_headers(configs, options): argument
656 if not confirm(options, 'Clean up headers?'):
675 cleanup_one_header(header_path, patterns, options)
676 cleanup_empty_blocks(header_path, options)
678 def cleanup_one_extra_option(defconfig_path, configs, options): argument
718 show_diff(lines, tolines, defconfig_path, options.color)
720 if options.dry_run:
727 def cleanup_extra_options(configs, options): argument
734 if not confirm(options, 'Clean up CONFIG_SYS_EXTRA_OPTIONS?'):
743 options)
745 def cleanup_whitelist(configs, options): argument
752 if not confirm(options, 'Clean up whitelist entries?'):
769 def cleanup_readme(configs, options): argument
776 if not confirm(options, 'Clean up README?'):
868 def __init__(self, configs, options, build_dir): argument
877 self.options = options
982 if self.options.spl:
990 color_text(self.options.color, COLOR_BROWN,
1029 log += color_text(self.options.color, log_color, actlog) + '\n'
1060 log += color_text(self.options.color, COLOR_YELLOW,
1103 def __init__(self, toolchains, configs, options, progress, devnull, argument
1119 self.options = options
1126 self.parser = KconfigParser(configs, options, self.build_dir)
1201 elif self.options.build_db:
1215 self.log += color_text(self.options.color, COLOR_LIGHT_RED,
1217 if self.options.verbose:
1218 self.log += color_text(self.options.color, COLOR_LIGHT_CYAN,
1239 self.log += color_text(self.options.color, COLOR_YELLOW,
1272 if not self.options.force_sync and not updated:
1276 self.log += color_text(self.options.color, COLOR_LIGHT_GREEN,
1299 self.log += color_text(self.options.color, COLOR_LIGHT_BLUE,
1302 if not self.options.dry_run and updated:
1322 if self.options.exit_on_error:
1346 def __init__(self, toolchains, configs, options, progress, argument
1359 self.options = options
1363 for i in range(options.jobs):
1364 self.slots.append(Slot(toolchains, configs, options, progress,
1418 print(color_text(self.options.color, COLOR_LIGHT_RED,
1438 print(color_text(self.options.color, COLOR_YELLOW,
1478 def move_config(toolchains, configs, options, db_queue): argument
1486 if options.force_sync:
1488 elif options.build_db:
1494 print('(jobs: %d)\n' % options.jobs)
1496 if options.git_ref:
1497 reference_src = ReferenceSource(options.git_ref)
1502 if options.defconfigs:
1503 defconfigs = get_matched_defconfigs(options.defconfigs)
1508 slots = Slots(toolchains, configs, options, progress, reference_src_dir,
1876 (options, configs) = parser.parse_args()
1878 if len(configs) == 0 and not any((options.force_sync, options.build_db,
1879 options.imply)):
1889 if options.imply:
1891 if options.imply_flags == 'all':
1894 elif options.imply_flags:
1895 for flag in options.imply_flags.split(','):
1907 do_imply_config(configs, options.add_imply, imply_flags,
1908 options.skip_added)
1917 if not options.cleanup_headers_only:
1923 move_config(toolchains, configs, options, db_queue)
1927 cleanup_headers(configs, options)
1928 cleanup_extra_options(configs, options)
1929 cleanup_whitelist(configs, options)
1930 cleanup_readme(configs, options)
1932 if options.commit:
1944 if options.build_db: