From: BVK Chaitanya Date: Mon, 12 Jul 2010 11:08:19 +0000 (+0530) Subject: merge with mainline X-Git-Tag: 1.99~666^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d17eeeef223eb38bcce5cffc26e667b133c9fa3;p=thirdparty%2Fgrub.git merge with mainline --- 8d17eeeef223eb38bcce5cffc26e667b133c9fa3 diff --cc conf/common.rmk index cb9885477,f92e5bc4c..908bd74e8 --- a/conf/common.rmk +++ b/conf/common.rmk @@@ -92,9 -94,10 +94,10 @@@ grub_script_check_SOURCES = gnulib/prog util/grub-script-check.c util/misc.c kern/emu/misc.c kern/emu/mm.c \ script/main.c script/script.c script/function.c script/lexer.c \ kern/err.c kern/list.c \ - kern/misc.c kern/env.c grub_script.tab.c \ + kern/command.c kern/misc.c kern/env.c grub_script.tab.c \ grub_script.yy.c grub_script_check_CFLAGS = $(GNULIB_UTIL_CFLAGS) + grub_script_check_DEPENDENCIES = grub_script.tab.h MOSTLYCLEANFILES += symlist.c kernel_syms.lst DEFSYMFILES += kernel_syms.lst @@@ -621,9 -634,9 +634,9 @@@ endi normal_mod_SOURCES = normal/main.c normal/cmdline.c normal/dyncmd.c \ normal/auth.c normal/autofs.c \ normal/color.c normal/completion.c normal/datetime.c normal/menu.c \ - normal/menu_entry.c normal/menu_text.c \ + normal/menu_entry.c normal/menu_text.c normal/charset.c \ normal/misc.c normal/crypto.c normal/term.c normal/context.c \ - script/main.c script/script.c script/execute.c script/argv.c \ - script/main.c script/script.c script/execute.c unidata.c \ ++ script/main.c script/script.c script/execute.c script/argv.c unidata.c \ script/function.c script/lexer.c grub_script.tab.c grub_script.yy.c normal_mod_CFLAGS = $(COMMON_CFLAGS) $(POSIX_CFLAGS) -Wno-error normal_mod_LDFLAGS = $(COMMON_LDFLAGS) diff --cc normal/main.c index 75975d002,710b68d14..5df889466 --- a/normal/main.c +++ b/normal/main.c @@@ -655,8 -675,10 +675,11 @@@ static void (*grub_xputs_saved) (const GRUB_MOD_INIT(normal) { grub_context_init (); + grub_script_init (); + grub_xputs_saved = grub_xputs; + grub_xputs = grub_xputs_normal; + /* Normal mode shouldn't be unloaded. */ if (mod) grub_dl_ref (mod); @@@ -684,8 -709,9 +710,10 @@@ GRUB_MOD_FINI(normal) { grub_context_fini (); + grub_script_fini (); + grub_xputs = grub_xputs_saved; + grub_set_history (0); grub_register_variable_hook ("pager", 0, 0); grub_fs_autoload_hook = 0;