Index: trunk/i386/config/cconfig.c =================================================================== --- trunk/i386/config/cconfig.c (revision 885) +++ trunk/i386/config/cconfig.c (revision 886) @@ -523,6 +523,7 @@ int s_scroll = 0; while (1) { + item_reset(); current_menu = menu; build_conf(menu); @@ -799,9 +800,14 @@ int saved_x, saved_y; char *mode; int res; + int rebuild = 0; + if(ac > 2 && (strcmp(av[2], "rebuild") == 0)) rebuild = 1; + + setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); conf_parse(av[1]); @@ -813,29 +819,39 @@ single_menu_mode = 1; } - initscr(); - - getyx(stdscr, saved_y, saved_x); - if (init_dialog(NULL)) { - fprintf(stderr, N_("Your display is too small to run Menuconfig!\n")); - fprintf(stderr, N_("It must be at least 19 lines by 80 columns.\n")); - return 1; - } - + if(!rebuild) + { + initscr(); + + getyx(stdscr, saved_y, saved_x); + if (init_dialog(NULL)) { + fprintf(stderr, N_("Your display is too small to run Menuconfig!\n")); + fprintf(stderr, N_("It must be at least 19 lines by 80 columns.\n")); + return 1; + } + } set_config_filename(conf_get_configname()); - do { - conf(&rootmenu); - dialog_clear(); - if (conf_get_changed()) - res = dialog_yesno(NULL, - _("Do you wish to save your " - "new configuration?\n" - " to continue."), - 6, 60); - else - res = -1; - } while (res == KEY_ESC); - end_dialog(saved_x, saved_y); + if(rebuild) + { + res = 0; + } + else + { + do { + conf(&rootmenu); + dialog_clear(); + if (conf_get_changed()) + res = dialog_yesno(NULL, + _("Do you wish to save your " + "new configuration?\n" + " to continue."), + 6, 60); + else + res = -1; + } while (res == KEY_ESC); + end_dialog(saved_x, saved_y); + } + switch (res) { case 0: @@ -847,7 +863,8 @@ return 1; } case -1: - printf(_("\n\n" + if(!rebuild) + printf(_("\n\n" "*** End of the configuration.\n" "*** Execute 'make' to start the build or try 'make help'." "\n\n")); Index: trunk/i386/config/confdata.c =================================================================== --- trunk/i386/config/confdata.c (revision 885) +++ trunk/i386/config/confdata.c (revision 886) @@ -659,7 +659,7 @@ return 1; } - conf_message(_("configuration written to %s"), newname); +// conf_message(_("configuration written to %s"), newname); sym_set_change_count(0); Index: trunk/i386/config/Makefile =================================================================== --- trunk/i386/config/Makefile (revision 885) +++ trunk/i386/config/Makefile (revision 886) @@ -47,7 +47,11 @@ config: $(DIRS_NEEDED) $(SYMPROG) @cd ${SRCROOT} && $(SYMPROG) $(SRCROOT)/Cconfig + +rebuild_config: $(DIRS_NEEDED) $(SYMPROG) + @cd ${SRCROOT} && $(SYMPROG) $(SRCROOT)/Cconfig rebuild + .PHONY: config #dependencies Index: trunk/i386/Makefile =================================================================== --- trunk/i386/Makefile (revision 885) +++ trunk/i386/Makefile (revision 886) @@ -37,7 +37,7 @@ ) || exit $$?; \ done -config: +config rebuild_config: @for i in config; \ do \ echo ================= make $@ for $$i =================; \ Index: trunk/Make.rules =================================================================== --- trunk/Make.rules (revision 885) +++ trunk/Make.rules (revision 886) @@ -104,7 +104,7 @@ $(SRCROOT)/auto.conf $(SRCROOT)/autoconf.h $(SRCROOT)/.config: @echo "\t[MAKE] config" - @cd $(SRCROOT) && make config + @cd $(SRCROOT) && make rebuild_config .PHONY: clean clean: Index: trunk/Makefile =================================================================== --- trunk/Makefile (revision 885) +++ trunk/Makefile (revision 886) @@ -30,7 +30,7 @@ # # Currently builds for i386 # -clean config: +clean config rebuild_config: @if [ -e ".svn" ]; then svnversion -n | tr -d [:alpha:] > revision; fi @echo ================= make config for i386 =================; @( OBJROOT=$(OBJROOT)/i386; \