No description
Find a file
BVK Chaitanya 0cdc2a095b 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
GRUB shell lexer and parser improvements.

	* conf/any-emu.rmk: Build rule updates.
	* conf/common.rmk: Likewise.
	* conf/i386-coreboot.rmk: Likewise.
	* conf/i386-efi.rmk: Likewise.
	* conf/i386-ieee1275.rmk: Likewise.
	* conf/i386-pc.rmk: Likewise.
	* conf/powerpc-ieee1275.rmk: Likewise.
	* conf/x86_64-efi.rmk: Likewise.

	* configure.ac: Configure check for flex.

	* include/grub/script_sh.h (grub_script_arg_type_t): More argument
	types.
	(grub_lexer_param): Struct member updates.
	(grub_parser_param): Likewise.
	(GRUB_LEXER_TOKEN_MAX): Maximum token size.
	(GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
	(grub_script_lexer_init): Prototype update.
	(grub_script_lexer_record_start): Likewise.
	(grub_script_lexer_record_stop): Likewise.
	(grub_script_lexer_yywrap): New function prototype.
	(grub_script_lexer_fini): Likewise.
	(grub_script_execute_argument_to_string): Removed by...
	(grub_script_execute_argument_to_argv): ...better version.

	* script/execute.c (ROUND_UPTO): New macro.
	(grub_script_execute_cmdline): Out of memory fixes.
	(grub_script_execute_menuentry): Likewise.
	(grub_script_execute_argument_to_string): Removed. Update all
	users by...
	(grub_script_execute_argument_to_argv): ...better version.
	* script/function.c (grub_script_function_create): Use
	grub_script_execute_argument_to_argv instead of
	grub_script_execute_argument_to_string.

	* script/lexer.c (check_varstate): Removed.
	(check_textstate): Removed.
	(grub_script_lexer_record_start): Likewise.
	(grub_script_lexer_record_stop): Likewise.
	(recordchar): Replaced with...
	(grub_script_lexer_record): ...new function.
	(nextchar): Removed.
	(grub_script_lexer_init): Rewritten.
	(grub_script_yylex): Rewritten.
	(append_newline): New function.
	(grub_script_lexer_yywrap): New function.
	(grub_script_lexer_fini): New function.
	(grub_script_yyerror): Sets error flag.

	* script/yylex.l: New file.
	(grub_lexer_yyfree): Wrapper for flex yyffre.
	(grub_lexer_yyalloc): Likewise.
	(grub_lexer_yyrealloc): Likewise.
	* script/parser.y: Refactored.

	* script/script.c (grub_script_arg_add): Out of memory fixes.
	(grub_script_add_arglist): Likewise.
	(grub_script_create_cmdline): Likewise.
	(grub_script_create_cmdmenu): Likewise.
	(grub_script_add_cmd): Likewise.
	(grub_script_parse): Use grub_script_lexer_fini to deallocated.
	* util/grub-script-check.c (grub_script_execute_menuentry): Remove
	unnecessary code.

	* tests/grub_script_echo1.in: New testcase.
	* tests/grub_script_vars1.in: New testcase.
	* tests/grub_script_echo_keywords.in: New testcase.
2010-03-14 22:37:17 +05:30
boot Shrink the pre-partition-table part of boot.img by eight bytes. 2010-03-14 15:47:05 +00:00
bus merge mainline into pciclean 2010-01-20 20:40:30 +01:00
commands Merge mainline into emu-mod 2010-03-14 16:27:54 +01:00
conf 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com> 2010-03-14 22:37:17 +05:30
disk Merge mainline into emu-mod 2010-03-14 16:27:54 +01:00
docs 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com> 2010-02-16 13:23:08 +01:00
efiemu Remove -DGRUB_UTIL when compiling grub-emu 2010-02-07 04:23:44 +01:00
font Merge mainline into emu-mod 2010-03-14 16:27:54 +01:00
fs 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com> 2010-03-01 21:00:02 +01:00
gettext 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> 2010-03-05 15:30:44 +01:00
gfxmenu 2010-03-04 Robert Millan <rmh.grub@aybabtu.com> 2010-03-04 23:16:34 +01:00
gnulib 2010-02-07 Yves Blusseau <blusseau@zetam.org> 2010-02-07 16:02:51 +01:00
hello 2010-01-03 Carles Pina i Estany <carles@pina.cat> 2010-01-03 19:50:51 +01:00
hook Clean building system 2010-02-07 23:49:49 +01:00
include merged in mainline 2010-03-14 22:20:55 +05:30
io 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> 2010-02-14 02:10:46 +01:00
kern Merge mainline into emu-mod 2010-03-14 16:27:54 +01:00
lib Use alias->path 2010-02-14 20:05:09 +01:00
loader Merge mainline into emu-mod 2010-03-14 16:27:54 +01:00
mmap merge mainline into mips 2009-12-28 01:05:47 +01:00
normal 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com> 2010-03-06 17:48:15 +01:00
partmap merge mainline into emu-mod 2010-02-07 03:06:33 +01:00
parttool First try at generating grub-emu from modules 2010-02-07 02:07:35 +01:00
po 2010-01-21 Robert Millan <rmh.grub@aybabtu.com> 2010-01-21 08:04:49 +00:00
script merged in mainline 2010-03-14 22:20:55 +05:30
term Merge mainline into emu-mod 2010-03-14 16:27:54 +01:00
tests merged in mainline 2010-03-14 22:20:55 +05:30
util merged in mainline 2010-03-14 22:20:55 +05:30
video Fix address size in ofwfb on sparc64 (based on info by bvk) 2010-03-14 16:32:50 +01:00
.bzrignore merge mainline into crypto 2009-12-05 16:34:27 +01:00
acinclude.m4 fix underquoted AC_DEFUN parameters 2010-01-23 22:38:10 +05:30
AUTHORS 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org> 2005-09-03 16:54:27 +00:00
autogen.sh Revert obviously wrong 1963 by Felix Zielcke. 2009-12-22 10:10:57 +01:00
ChangeLog 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com> 2010-03-14 22:37:17 +05:30
config.rpath 2010-01-05 Robert Millan <rmh.grub@aybabtu.com> 2010-01-05 22:44:00 +00:00
configure.ac merged in mainline 2010-03-14 22:20:55 +05:30
COPYING 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
gencmdlist.sh 2010-01-03 Robert Millan <rmh.grub@aybabtu.com> 2010-01-03 22:05:07 +00:00
gendistlist.sh merge mtrunk into xnu 2009-12-18 03:57:32 +01:00
genemuinit.sh Eliminate blacklist of modules w/o init 2010-02-07 03:58:14 +01:00
genemuinitheader.sh Eliminate blacklist of modules w/o init 2010-02-07 03:58:14 +01:00
genfslist.sh 2009-01-10 Robert Millan <rmh@aybabtu.com> 2009-01-10 13:07:44 +00:00
genhandlerlist.sh Working multi-terminal 2009-12-24 21:54:37 +01:00
geninit.sh 2007-07-22 Robert Millan <rmh@aybabtu.com> 2007-07-22 19:17:27 +00:00
geninitheader.sh 2007-07-22 Robert Millan <rmh@aybabtu.com> 2007-07-22 19:17:27 +00:00
genkernsyms.sh.in 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> 2010-02-07 19:57:55 +01:00
genmk.rb Merge mainline into emu-mod 2010-03-14 16:27:54 +01:00
genmoddep.awk 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com> 2010-03-07 23:02:13 +01:00
genmodsrc.sh 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
genpartmaplist.sh 2008-08-22 Bean <bean123ch@gmail.com> 2008-08-23 14:20:45 +00:00
genparttoollist.sh 2009-07-02 Pavel Roskin <proski@gnu.org> 2009-07-02 04:12:23 +00:00
gensymlist.sh.in Merge mainline into cleanbuild 2010-03-14 16:01:31 +01:00
genterminallist.sh Eliminate grub_term_register_{input,output}_active. Default terminals are 2010-01-09 23:42:17 +01:00
gentrigtables.c Use return instead of exit () in gentrigtables.c 2009-11-24 04:21:07 +01:00
genvideolist.sh 2009-12-12 Robert Millan <rmh@aybabtu.com> 2009-12-12 00:43:32 +00:00
INSTALL 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com> 2010-03-04 16:28:57 +01:00
Makefile.in Merge mainline into emu-mod 2010-03-14 16:27:54 +01:00
mkinstalldirs 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org> 2006-06-04 12:59:19 +00:00
NEWS 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com> 2010-03-06 21:49:59 +01:00
README Update the URL of the wiki. 2006-04-02 08:59:23 +00:00
THANKS 2009-12-11 Robert Millan <rmh.grub@aybabtu.com> 2009-12-11 22:44:47 +00:00
TODO 2008-01-07 Robert Millan <rmh@aybabtu.com> 2008-01-07 19:21:34 +00:00

This is GRUB 2, the second version of the GRand Unified Bootloader.
GRUB 2 is rewritten from scratch to make GNU GRUB cleaner, safer, more
robust, more powerful, and more portable.

See the file NEWS for a description of recent changes to GRUB 2.

See the file INSTALL for instructions on how to build and install the
GRUB 2 data and program files.

Please visit the official web page of GRUB 2, for more information.
The URL is <http://www.gnu.org/software/grub/grub.html>.

For now, there is not much documentation yet. Please look at the GRUB
Wiki <http://grub.enbug.org> for testing procedures.