MCPcopy Create free account
hub / github.com/coreboot/coreboot / check_conf

Function check_conf

util/kconfig/conf.c:631–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631static void check_conf(struct menu *menu)
632{
633 struct symbol *sym;
634 struct menu *child;
635
636 if (!menu_is_visible(menu))
637 return;
638
639 sym = menu->sym;
640 if (sym && !sym_has_value(sym) &&
641 (sym_is_changeable(sym) ||
642 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes))) {
643
644 switch (input_mode) {
645 case listnewconfig:
646 if (sym->name)
647 print_symbol_for_listconfig(sym);
648 break;
649 case helpnewconfig:
650 printf("-----\n");
651 print_help(menu);
652 printf("-----\n");
653 break;
654 default:
655 if (!conf_cnt++)
656 printf("*\n* Restart config...\n*\n");
657 rootEntry = menu_get_parent_menu(menu);
658 conf(rootEntry);
659 break;
660 }
661 }
662
663 for (child = menu->list; child; child = child->next)
664 check_conf(child);
665}
666
667static const struct option long_opts[] = {
668 {"help", no_argument, NULL, 'h'},

Callers 2

confFunction · 0.85
mainFunction · 0.85

Calls 10

menu_is_visibleFunction · 0.85
sym_has_valueFunction · 0.85
sym_is_changeableFunction · 0.85
sym_is_choiceFunction · 0.85
sym_get_tristate_valueFunction · 0.85
printfFunction · 0.85
menu_get_parent_menuFunction · 0.85
print_helpFunction · 0.70
confFunction · 0.70

Tested by

no test coverage detected