merge mainline in regexp
This commit is contained in:
commit
43f9bfc470
9 changed files with 91 additions and 56 deletions
38
ChangeLog
38
ChangeLog
|
@ -1,3 +1,41 @@
|
||||||
|
2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
|
||||||
|
Fix syntax error.
|
||||||
|
|
||||||
|
2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
|
* configure.ac: Check for TARGET_CFLAGS initialization before we
|
||||||
|
initialize it ourselves (sigh).
|
||||||
|
Move a few modifications to TARGET_CFLAGS to be unconditional
|
||||||
|
(extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
|
||||||
|
eh_frame)
|
||||||
|
|
||||||
|
* gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
|
||||||
|
* term/i386/pc/at_keyboard.c
|
||||||
|
(keyboard_controller_wait_untill_ready): Likewise.
|
||||||
|
(keyboard_controller_led): Rename `led_status' paramter to avoid
|
||||||
|
name conflict.
|
||||||
|
|
||||||
|
2009-12-28 Carles Pina i Estany <carles@pina.cat>
|
||||||
|
|
||||||
|
* normal/misc.c (grub_normal_print_device_info): Add spaces and double
|
||||||
|
quotes.
|
||||||
|
|
||||||
|
2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
|
||||||
|
|
||||||
|
2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* normal/menu_text.c (grub_print_message_indented): Prevent
|
||||||
|
past-the-end-of-array dereference.
|
||||||
|
|
||||||
|
2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
|
||||||
|
(GRUB_MOD_FINI (video_reader_jpeg)): ...this
|
||||||
|
|
||||||
2009-12-27 Carles Pina i Estany <carles@pina.cat>
|
2009-12-27 Carles Pina i Estany <carles@pina.cat>
|
||||||
|
|
||||||
* normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
|
* normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
|
||||||
|
|
22
configure.ac
22
configure.ac
|
@ -44,6 +44,11 @@ AC_CANONICAL_TARGET
|
||||||
# Program name transformations
|
# Program name transformations
|
||||||
AC_ARG_PROGRAM
|
AC_ARG_PROGRAM
|
||||||
|
|
||||||
|
# Optimization flag. Allow user to override.
|
||||||
|
if test "x$TARGET_CFLAGS" = x; then
|
||||||
|
TARGET_CFLAGS="$TARGET_CFLAGS -Os"
|
||||||
|
fi
|
||||||
|
|
||||||
case "$target_cpu" in
|
case "$target_cpu" in
|
||||||
i[[3456]]86) target_cpu=i386 ;;
|
i[[3456]]86) target_cpu=i386 ;;
|
||||||
sparc) target_cpu=sparc64 ;;
|
sparc) target_cpu=sparc64 ;;
|
||||||
|
@ -242,24 +247,10 @@ CPPFLAGS="$TARGET_CPPFLAGS"
|
||||||
LDFLAGS="$TARGET_LDFLAGS"
|
LDFLAGS="$TARGET_LDFLAGS"
|
||||||
LIBS=""
|
LIBS=""
|
||||||
|
|
||||||
if test "x$TARGET_CFLAGS" = x; then
|
|
||||||
# debug flags.
|
# debug flags.
|
||||||
TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
|
TARGET_CFLAGS="$TARGET_CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
|
||||||
-Wundef -Wstrict-prototypes -g"
|
-Wundef -Wstrict-prototypes -g"
|
||||||
|
|
||||||
# optimization flags.
|
|
||||||
AC_CACHE_CHECK([whether optimization for size works], grub_cv_cc_Os, [
|
|
||||||
CFLAGS=-Os
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
|
|
||||||
[grub_cv_cc_Os=yes],
|
|
||||||
[grub_cv_cc_Os=no])
|
|
||||||
])
|
|
||||||
if test "x$grub_cv_cc_Os" = xyes; then
|
|
||||||
TARGET_CFLAGS="$TARGET_CFLAGS -Os"
|
|
||||||
else
|
|
||||||
TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Force no alignment to save space on i386.
|
# Force no alignment to save space on i386.
|
||||||
if test "x$target_cpu" = xi386; then
|
if test "x$target_cpu" = xi386; then
|
||||||
AC_CACHE_CHECK([whether -falign-loops works], [grub_cv_cc_falign_loop], [
|
AC_CACHE_CHECK([whether -falign-loops works], [grub_cv_cc_falign_loop], [
|
||||||
|
@ -296,7 +287,6 @@ if test "x$TARGET_CFLAGS" = x; then
|
||||||
if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
|
if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
|
||||||
TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
|
TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
grub_apple_target_cc
|
grub_apple_target_cc
|
||||||
if test x$grub_cv_apple_target_cc = xyes ; then
|
if test x$grub_cv_apple_target_cc = xyes ; then
|
||||||
|
|
|
@ -298,7 +298,7 @@ grub_gettext_init_ext (const char *lang)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
grub_gettext_delete_list ()
|
grub_gettext_delete_list (void)
|
||||||
{
|
{
|
||||||
struct grub_gettext_msg *item;
|
struct grub_gettext_msg *item;
|
||||||
|
|
||||||
|
|
|
@ -145,13 +145,16 @@ grub_parser_split_cmdline (const char *cmdline, grub_reader_getline_t getline,
|
||||||
*argc = 0;
|
*argc = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (! *rd)
|
if (! rd || !*rd)
|
||||||
{
|
{
|
||||||
if (getline)
|
if (getline)
|
||||||
getline (&rd, 1);
|
getline (&rd, 1);
|
||||||
else break;
|
else break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!rd)
|
||||||
|
break;
|
||||||
|
|
||||||
for (; *rd; rd++)
|
for (; *rd; rd++)
|
||||||
{
|
{
|
||||||
grub_parser_state_t newstate;
|
grub_parser_state_t newstate;
|
||||||
|
|
|
@ -518,7 +518,7 @@ GRUB_MOD_INIT(linux)
|
||||||
cmd_linux = grub_register_command ("linux", grub_cmd_linux,
|
cmd_linux = grub_register_command ("linux", grub_cmd_linux,
|
||||||
0, "Load Linux.");
|
0, "Load Linux.");
|
||||||
cmd_initrd = grub_register_command ("initrd", grub_cmd_initrd,
|
cmd_initrd = grub_register_command ("initrd", grub_cmd_initrd,
|
||||||
0, "Load initrd".);
|
0, "Load initrd.");
|
||||||
my_mod = mod;
|
my_mod = mod;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,8 +137,8 @@ grub_print_message_indented (const char *msg, int margin_left, int margin_right)
|
||||||
next_new_line = (grub_uint32_t *) last_position;
|
next_new_line = (grub_uint32_t *) last_position;
|
||||||
|
|
||||||
while (grub_getstringwidth (current_position, next_new_line) > line_len
|
while (grub_getstringwidth (current_position, next_new_line) > line_len
|
||||||
|| (*next_new_line != ' ' && next_new_line > current_position &&
|
|| (next_new_line != last_position && *next_new_line != ' '
|
||||||
next_new_line != last_position))
|
&& next_new_line > current_position))
|
||||||
{
|
{
|
||||||
next_new_line--;
|
next_new_line--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,10 @@ grub_normal_print_device_info (const char *name)
|
||||||
if (grub_errno == GRUB_ERR_NONE)
|
if (grub_errno == GRUB_ERR_NONE)
|
||||||
{
|
{
|
||||||
if (label && grub_strlen (label))
|
if (label && grub_strlen (label))
|
||||||
grub_printf_ (N_("- Label %s"), label);
|
{
|
||||||
|
grub_putchar (' ');
|
||||||
|
grub_printf_ (N_("- Label \"%s\""), label);
|
||||||
|
}
|
||||||
grub_free (label);
|
grub_free (label);
|
||||||
}
|
}
|
||||||
grub_errno = GRUB_ERR_NONE;
|
grub_errno = GRUB_ERR_NONE;
|
||||||
|
@ -81,6 +84,7 @@ grub_normal_print_device_info (const char *name)
|
||||||
if (grub_errno == GRUB_ERR_NONE)
|
if (grub_errno == GRUB_ERR_NONE)
|
||||||
{
|
{
|
||||||
grub_unixtime2datetime (tm, &datetime);
|
grub_unixtime2datetime (tm, &datetime);
|
||||||
|
grub_putchar (' ');
|
||||||
grub_printf_ (N_("- Last modification time %d-%02d-%02d "
|
grub_printf_ (N_("- Last modification time %d-%02d-%02d "
|
||||||
"%02d:%02d:%02d %s"),
|
"%02d:%02d:%02d %s"),
|
||||||
datetime.year, datetime.month, datetime.day,
|
datetime.year, datetime.month, datetime.day,
|
||||||
|
|
|
@ -72,7 +72,7 @@ static char keyboard_map_shift[128] =
|
||||||
static grub_uint8_t grub_keyboard_controller_orig;
|
static grub_uint8_t grub_keyboard_controller_orig;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
keyboard_controller_wait_untill_ready ()
|
keyboard_controller_wait_untill_ready (void)
|
||||||
{
|
{
|
||||||
while (! KEYBOARD_COMMAND_ISREADY (grub_inb (KEYBOARD_REG_STATUS)));
|
while (! KEYBOARD_COMMAND_ISREADY (grub_inb (KEYBOARD_REG_STATUS)));
|
||||||
}
|
}
|
||||||
|
@ -94,12 +94,12 @@ grub_keyboard_controller_read (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
keyboard_controller_led (grub_uint8_t led_status)
|
keyboard_controller_led (grub_uint8_t leds)
|
||||||
{
|
{
|
||||||
keyboard_controller_wait_untill_ready ();
|
keyboard_controller_wait_untill_ready ();
|
||||||
grub_outb (0xed, KEYBOARD_REG_DATA);
|
grub_outb (0xed, KEYBOARD_REG_DATA);
|
||||||
keyboard_controller_wait_untill_ready ();
|
keyboard_controller_wait_untill_ready ();
|
||||||
grub_outb (led_status & 0x7, KEYBOARD_REG_DATA);
|
grub_outb (leds & 0x7, KEYBOARD_REG_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: This should become an interrupt service routine. For now
|
/* FIXME: This should become an interrupt service routine. For now
|
||||||
|
|
|
@ -740,7 +740,7 @@ GRUB_MOD_INIT (video_reader_jpeg)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
GRUB_MOD_FINI (grub_cmd_jpegtest)
|
GRUB_MOD_FINI (video_reader_jpeg)
|
||||||
{
|
{
|
||||||
#if defined(JPEG_DEBUG)
|
#if defined(JPEG_DEBUG)
|
||||||
grub_unregister_command (cmd);
|
grub_unregister_command (cmd);
|
||||||
|
|
Loading…
Reference in a new issue