]> git.proxmox.com Git - grub2.git/log
grub2.git
14 years agofix losing pl2303 input at the price of losing some input bytes sometimes.
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 22:12:59 +0000 (00:12 +0200)]
fix losing pl2303 input at the price of losing some input bytes sometimes.

14 years agoPL2303 works and is configurable. But sometime input is lost
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 21:12:08 +0000 (23:12 +0200)]
PL2303 works and is configurable. But sometime input is lost

14 years agoSomewhat working although a lot of hardcoding pl2303
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 19:36:00 +0000 (21:36 +0200)]
Somewhat working although a lot of hardcoding pl2303

14 years agoAdd possibility of bulk reading with short timeout
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 19:35:22 +0000 (21:35 +0200)]
Add possibility of bulk reading with short timeout

14 years agoenable usbserial on grub-emu
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 17:11:09 +0000 (19:11 +0200)]
enable usbserial on grub-emu

14 years agoSplit common usbserial function. PL2303 skeleton
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 17:10:57 +0000 (19:10 +0200)]
Split common usbserial function. PL2303 skeleton

14 years agoaccount for absence of NS8250 on emu
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 17:09:54 +0000 (19:09 +0200)]
account for absence of NS8250 on emu

14 years agoAdd fini routines for usbserial and rename grub_usbserial to grub_ftdi
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 15:40:42 +0000 (17:40 +0200)]
Add fini routines for usbserial and rename grub_usbserial to grub_ftdi

14 years agoRename usbserial to usbserial_ftdi
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 14:31:42 +0000 (16:31 +0200)]
Rename usbserial to usbserial_ftdi

14 years agoConfigure word length
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 13:07:59 +0000 (15:07 +0200)]
Configure word length

14 years agoSupport variable speed
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 13:00:50 +0000 (15:00 +0200)]
Support variable speed

14 years agosome serial config support
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 12:43:23 +0000 (14:43 +0200)]
some serial config support

14 years agoEncapsulate serial config in dedicated structure
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 11:40:48 +0000 (13:40 +0200)]
Encapsulate serial config in dedicated structure

14 years agousbserial basic support. Works in qemu
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 10:53:35 +0000 (12:53 +0200)]
usbserial basic support. Works in qemu

14 years agoDon't check transaction active flag as it's not updated and creates problems for...
Vladimir 'phcoder' Serbinenko [Sun, 18 Jul 2010 10:53:08 +0000 (12:53 +0200)]
Don't check transaction active flag as it's not updated and creates problems for usbserial

14 years agoRemove debug comment-out
Vladimir 'phcoder' Serbinenko [Sat, 17 Jul 2010 23:41:08 +0000 (01:41 +0200)]
Remove debug comment-out

14 years agoRestructure serial in order to prepare for usbserial. As a byproduct simultaneous...
Vladimir 'phcoder' Serbinenko [Sat, 17 Jul 2010 23:37:19 +0000 (01:37 +0200)]
Restructure serial in order to prepare for usbserial. As a byproduct simultaneous serial consoles are possible

14 years agoAlways show class
Vladimir 'phcoder' Serbinenko [Sat, 17 Jul 2010 23:35:55 +0000 (01:35 +0200)]
Always show class

14 years agoSupport USB device drivers autoloading
Vladimir 'phcoder' Serbinenko [Sat, 17 Jul 2010 01:58:23 +0000 (03:58 +0200)]
Support USB device drivers autoloading

14 years agoDetect usb keyboard properly, support keyboard hotpluanad multiple keyboards
Vladimir 'phcoder' Serbinenko [Sat, 17 Jul 2010 01:57:59 +0000 (03:57 +0200)]
Detect usb keyboard properly, support keyboard hotpluanad multiple keyboards

14 years agoMerge mainline into usb
Vladimir 'phcoder' Serbinenko [Sat, 17 Jul 2010 00:44:33 +0000 (02:44 +0200)]
Merge mainline into usb

14 years ago * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New...
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:57:48 +0000 (01:57 +0200)]
* include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
* partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
delta determination style. Works with most NetBSD partitions too.

14 years ago * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:55:01 +0000 (01:55 +0200)]
* kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
* partmap/bsdlabel.c [GRUB_UTIL]: Likewise.

14 years ago * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:52:41 +0000 (01:52 +0200)]
* disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.

14 years agomerge mainline into usb
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:14:13 +0000 (01:14 +0200)]
merge mainline into usb

14 years agoUse inline functions instead of macros
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 22:57:14 +0000 (00:57 +0200)]
Use inline functions instead of macros

14 years agoFix mismerge
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 22:56:38 +0000 (00:56 +0200)]
Fix mismerge

14 years ago* loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
Anton Blanchard [Wed, 14 Jul 2010 15:47:45 +0000 (16:47 +0100)]
* loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
ET_DYN files.

14 years agoFix condition in Makefile.in's LINGUAS assignment.
Grégoire Sutre [Wed, 14 Jul 2010 14:47:28 +0000 (16:47 +0200)]
Fix condition in Makefile.in's LINGUAS assignment.

14 years agoDiscard improperly nested partitions.
Grégoire Sutre [Wed, 14 Jul 2010 09:26:17 +0000 (11:26 +0200)]
Discard improperly nested partitions.

14 years ago* Makefile.in (.SUFFIX): Spell correctly, as ...
Colin Watson [Tue, 13 Jul 2010 11:24:07 +0000 (12:24 +0100)]
* Makefile.in (.SUFFIX): Spell correctly, as ...
(.SUFFIXES): ... this.  Fixes bug where `make foo' (where foo is a
bare module name without `.mod', e.g. `test') tried to invoke a
Modula-2 compiler.

14 years ago* README: Point to the Info manual.
Colin Watson [Tue, 13 Jul 2010 11:20:32 +0000 (12:20 +0100)]
* README: Point to the Info manual.

14 years ago * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
Jiro SEKIBA [Tue, 13 Jul 2010 09:47:30 +0000 (11:47 +0200)]
* fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
2nd superblock position from partition size.

14 years ago* Makefile.in (MAINTAINER_CLEANFILES): Remove
Colin Watson [Sat, 10 Jul 2010 21:37:05 +0000 (22:37 +0100)]
* Makefile.in (MAINTAINER_CLEANFILES): Remove
unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
outputs.

14 years ago Restructure SCSI .id handling.
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:59:33 +0000 (02:59 +0200)]
Restructure SCSI .id handling.
Reported and tested by: Aleš Nesrsta.

* disk/ata.c (grub_atapi_close): Removed. All users updated.
(grub_atapi_dev): Changed .name to "ata". New field .id.
* disk/usbms.c (grub_usbms_close): Removed. All users updated.
(grub_usbms_dev): New field .id.
* disk/scsi.c (grub_scsi_iterate): Generate name.
(grub_scsi_open): Parse name.
* include/grub/scsi.h (grub_make_scsi_id): New function.
(grub_scsi_dev): Change iterate and open to number instead of naming
busses. All users updated.
(grub_scsi): Remove name. Add .bus.

14 years ago * commands/help.c (grub_cmd_help): Fix a typo.
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:40:41 +0000 (02:40 +0200)]
* commands/help.c (grub_cmd_help): Fix a typo.

14 years ago * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:23:48 +0000 (02:23 +0200)]
* normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
Reported and tested by: Colin Watson.

14 years ago * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:15:49 +0000 (02:15 +0200)]
* util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
in this context.

14 years agoUSB hot-plugging
starous [Thu, 8 Jul 2010 20:54:35 +0000 (22:54 +0200)]
USB hot-plugging

14 years ago * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
Vladimir 'phcoder' Serbinenko [Wed, 7 Jul 2010 15:51:26 +0000 (17:51 +0200)]
* tests/util/grub-shell.in: Remove bashisms and declare as sh script.

14 years ago* term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
Colin Watson [Wed, 7 Jul 2010 13:12:16 +0000 (14:12 +0100)]
* term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
indentation.

14 years ago* conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
Colin Watson [Tue, 6 Jul 2010 18:27:55 +0000 (19:27 +0100)]
* conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
and disk/raid6_recover.c.
* conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.

14 years ago* term/gfxterm.c (repaint_schedulded): Rename to ...
Colin Watson [Tue, 6 Jul 2010 17:31:45 +0000 (18:31 +0100)]
* term/gfxterm.c (repaint_schedulded): Rename to ...
(repaint_scheduled): ... this.  Update all callers.
(repaint_was_schedulded): Rename to ...
(repaint_was_scheduled): ... this.  Update all callers.

14 years ago* util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
Colin Watson [Tue, 6 Jul 2010 14:10:36 +0000 (15:10 +0100)]
* util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
which we expect to be handled by upper layers.

14 years ago * bus/usb/usbhub.c: #include time.h header.
BVK Chaitanya [Tue, 6 Jul 2010 09:23:55 +0000 (14:53 +0530)]
* bus/usb/usbhub.c: #include time.h header.

14 years ago* fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
Colin Watson [Tue, 6 Jul 2010 08:51:42 +0000 (09:51 +0100)]
* fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
entry_name also for entries without stat blocks (e.g. ".."); fixes
corruption of the first entry in a directory.

14 years ago* util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
Colin Watson [Tue, 6 Jul 2010 08:42:37 +0000 (09:42 +0100)]
* util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
after setting gfxterm as the active terminal.  GRUB_BACKGROUND
doesn't work otherwise.

14 years agoRevert latest two Aleš' commits
Vladimir 'phcoder' Serbinenko [Mon, 5 Jul 2010 23:55:26 +0000 (01:55 +0200)]
Revert latest two Aleš' commits

14 years agoChangeLog & usbhub.c correction
starous [Mon, 5 Jul 2010 18:34:27 +0000 (20:34 +0200)]
ChangeLog & usbhub.c correction

14 years agoUHCI portstatus correction
starous [Mon, 5 Jul 2010 17:06:47 +0000 (19:06 +0200)]
UHCI portstatus correction

14 years agoUSB hub support
starous [Mon, 5 Jul 2010 17:02:05 +0000 (19:02 +0200)]
USB hub support

14 years ago* docs/grub.texi (Features): Update list of supported file systems.
Colin Watson [Mon, 5 Jul 2010 10:08:04 +0000 (11:08 +0100)]
* docs/grub.texi (Features): Update list of supported file systems.
(GNU/Linux): Update for GRUB 2.
(Serial terminal): Remove mention of --disable-serial, which was a
GRUB Legacy configure option.  Update instructions to use
`terminal_input' and `terminal_output' rather than `terminal'.
(Vendor power-on keys): Copy-edit.  Add cross-references to `Simple
configuration' and `Installing GRUB using grub-install'.
(Menu entry editor): Update for GRUB 2.
(terminfo): Add vt100-color, ieee1275, and dumb terminal types.
Document new -a, -u, and -v options.
(initrd): New section.
(initrd16): New section.
(linux): New section.
(linux16): New section.
(search): The `var' argument to `--set' is optional.
(GRUB only offers a rescue shell): Go into a little more detail on
drive ordering.

14 years ago* Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
Colin Watson [Mon, 5 Jul 2010 08:29:02 +0000 (09:29 +0100)]
* Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.

14 years agofix typo in reporter name
Colin Watson [Mon, 5 Jul 2010 00:45:25 +0000 (01:45 +0100)]
fix typo in reporter name

14 years ago* Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
Colin Watson [Mon, 5 Jul 2010 00:24:10 +0000 (01:24 +0100)]
* Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.

14 years ago* util/i386/pc/grub-setup.c (setup): Rename prefix to
Colin Watson [Mon, 5 Jul 2010 00:09:00 +0000 (01:09 +0100)]
* util/i386/pc/grub-setup.c (setup): Rename prefix to
install_prefix, in line with install_dos_part and install_bsd_part.
Add new prefix variable, which is copied to install_prefix after
comparing core.img in memory with the one read from disk in the
no-embedding case, and use that rather than overwriting
install_prefix immediately when installing to a partition.
Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
Bicakci.

14 years agoAvoid == in test command, it's not portable.
Grégoire Sutre [Sun, 4 Jul 2010 22:45:14 +0000 (00:45 +0200)]
Avoid == in test command, it's not portable.

14 years ago* kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
Colin Watson [Sun, 4 Jul 2010 21:00:45 +0000 (22:00 +0100)]
* kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.

14 years agomissing ChangeLog commit.
Vladimir 'phcoder' Serbinenko [Sun, 4 Jul 2010 12:29:01 +0000 (14:29 +0200)]
missing ChangeLog commit.

14 years ago * util/i386/efi/grub-install.in: Don't use empty grub_device.
Vladimir 'phcoder' Serbinenko [Sun, 4 Jul 2010 12:23:55 +0000 (14:23 +0200)]
* util/i386/efi/grub-install.in: Don't use empty grub_device.
Reported by: Tito Keitel.

14 years agoDo not embed when there are multiple (top-level) partmaps.
Grégoire Sutre [Sun, 4 Jul 2010 09:13:31 +0000 (11:13 +0200)]
Do not embed when there are multiple (top-level) partmaps.

14 years ago Bidi and diacritics support.
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:16:35 +0000 (22:16 +0200)]
Bidi and diacritics support.

* Makefile.in (widthspec.bin): New target.
(widthspec.h): Likewise.
(TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
* autogen.sh: Generate unidata.c.
* commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
* commands/ls.c (grub_ls_list_devices): Likewise.
(grub_ls_list_files): Likewise.
* commands/minicmd.c (grub_mini_cmd_cat): Likewise.
(grub_mini_cmd_lsmod): Likewise.
* commands/read.c: Likewise.
* kern/corecmd.c (grub_core_cmd_ls): Likewise.
* kern/rescue_reader.c (grub_rescue_read_line): Likewise.
* lib/arg.c (grub_arg_show_help): Likewise.
* lib/crypto.c (grub_password_get): Likewise.
* normal/auth.c (grub_username_get): Likewise.
* normal/misc.c (grub_normal_print_device_info): Likewise.
* commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
* conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
(gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
(normal/charset.c_DEPENDENCIES): New variable.
(normal_mod_SOURCES): Add normal/charset.c and unidata.c.
(pkglib_MODULES): Remove charset.mod.
(charset_mod_SOURCES): Removed.
(charset_mod_CFLAGS): Likewise.
(charset_mod_LDFLAGS): Likewise.
(pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
* conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
and term/tparm.c.
* conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
(kernel_img_HEADERS): Add terminfo.h.
* font/font.c (ascii_glyph_lookup): Return NULL on failure.
Fill ->font. Reverse ascii bitmaps.
(grub_font_get_xheight): New function.
* font/font.c (grub_font_get_string_width): Moved from here ...
* gfxmenu/font.c (grub_font_get_string_width): ... here.
* font/font.c (grub_font_draw_string): Moved from here ...
* gfxmenu/font.c (grub_font_draw_string): ... here.
* font/font.c (grub_font_dup_glyph): New function.
(grub_font_blit_glyph): Likewise.
(grub_font_blit_glyph_mirror): Likewise.
(blit_comb): Likewise.
(grub_font_construct_dry_run): Likewise.
(grub_font_get_constructed_device_width): Likewise.
(grub_font_construct_glyph): Likewise.
* include/grub/charset.h (grub_ucs4_to_utf8): New proto.
* include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
* include/grub/charset.h (grub_utf8_to_ucs4): ... here.
* include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
(GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
(GRUB_FONT_CODE_LEFT_JOINED): Likewise.
(grub_font_get_xheight): New proto.
(grub_font_get_constructed_device_width): Likewise.
(grub_font_construct_glyph): Likewise.
* include/grub/font.h (grub_font_get_string_width): Moved from here ...
* include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
* include/grub/font.h (grub_font_draw_string): Moved from here ...
* include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
* include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
* include/grub/i386/pc/console.h (grub_console_putchar): ... here.
* include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
(grub_console_getcharwidth): Likewise.
* include/grub/misc.h (grub_xputs): New proto.
(grub_puts): Inlined.
* include/grub/normal.h (grub_print_ucs4): Add margin specification.
(grub_normal_get_line_counter): Removed.
(grub_install_newline_hook): Likewise.
(grub_normal_get_char_counter): New proto.
(grub_normal_reset_more): Likewise.
(grub_xputs_normal): Likewise.
* include/grub/powerpc/ieee1275/console.h: Removed.
* include/grub/sparc64/ieee1275/console.h: Likewise.
* include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
(GRUB_TERM_CODE_TYPE_ASCII): Likewise.
(GRUB_TERM_CODE_TYPE_CP437): Likewise.
(GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
(GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
(GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
(grub_term_input): Pass reference to self. All users updated.
(grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
Pass reference to self. New fields normal_color, highlight_color and
data. All users updated.
(grub_putchar): Removed.
(grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
(grub_unicode_estimate_width): New function.
(grub_term_getcharwidth): Add defaults.
(GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
(GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
(GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
(grub_cls): Remove EXPORT_FUNC.
(grub_setcolorstate): Inline.
(grub_newline_hook): Removed.
* include/grub/terminfo.h: Rewritten. All users updated.
* include/grub/unicode.h: New file.
* include/grub/video.h (grub_video_signed_rect): New type.
* kern/emu/console.c (grub_console_highlight_color): Removed.
(grub_console_normal_color): Likewise.
(grub_console_standard_color): Made static.
(grub_ncurses_putchar): Remove mapping.
(grub_ncurses_getcharwidth): Removed.
(grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
(grub_ncurses_setcolor): Removed.
(grub_ncurses_getcolor): Likewise.
* kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
(grub_console_putchar): ... this.
(grub_console_putchar): Handle argument difference.
* kern/ieee1275/init.c (grub_machine_init): Split console_init into
console_init_early and console_init_lately.
* kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
* kern/misc.c (grub_puts): Removed.
(grub_vprintf): Store UTF-8 string instead of outputting it directly.
(grub_vsnprintf_real): Remove str = NULL support.
* kern/misc.c (grub_utf8_to_ucs4): Move from here ...
* normal/charset.c (grub_utf8_to_ucs4): ... here.
* kern/term.c (grub_putcode): Renamed to ...
(grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
(grub_putchar): Removed.
(grub_xputs_dumb): New function.
(grub_xputs): New variable.
* lib/charset.c: Move from here ...
* normal/charset.c: ... to here.
(grub_ucs4_to_utf8): New function.
(grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
(join_types): New variable.
(unpack_join): New function.
(bidi_types): New variable.
(unpack_bidi): New function.
(get_bidi_type): Likewise.
(get_join_type): Likewise.
(is_mirrored): Likewise.
(grub_unicode_get_comb_type): Likewise.
(grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
(is_type_after): Likewise.
(grub_unicode_aglomerate_comb): Likewise.
(bidi_line_wrap): Likewise.
(grub_bidi_line_logical_to_visual): Likewise.
(grub_bidi_logical_to_visual): Likewise.
(grub_unicode_mirror_code): Likewise.
(grub_unicode_shape_code): Likewise.
* normal/cmdline.c (grub_cmdline_get): Reset more counter.
Don't use grub_putchar.
* normal/main.c (grub_normal_init_page): Use grub_putcode.
(grub_normal_reader_init): Likewise.
(grub_xputs_saved): New variable.
(GRUB_MOD_INIT): Set grub_xputs.
(GRUB_MOD_FINI): Restore grub_xputs.
* normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
(menu_init): Avoid printing gfxmenu error.
(show_menu): Use grub_normal_get_char_counter.
* normal/menu_entry.c (update_screen): Fix out-of-array.
(complete): Avoid NULL dereferencing.
* grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
* normal/menu_text.c (print_spaces): Removed.
(grub_print_ucs4): Likewise.
(grub_print_message_indented): Use grub_print_ucs4.
(print_message): Use grub_putcode.
(print_entry): Hanlde diacritics.
* normal/term.c (term_state): New type.
(grub_more_lines): Removed.
(term_states): New variable.
(grub_normal_line_counter): Renamed to ..
(grub_normal_char_counter): ...this. All users updated.
(grub_normal_get_line_counter): Renamed to ...
(grub_normal_get_char_counter): ... this.
(grub_normal_reset_more): New function.
(process_newline): Removed.
(print_more): New function.
(grub_install_newline_hook): Removed.
(map_code): New function.
(grub_puts_terminal): Use grub_print_ucs4.
(putglyph): New function.
(putcode_real): Likewise.
(grub_putcode): Use putcode_real.
(get_maxwidth): New function.
(get_startwidth): Likewise.
(print_ucs4_terminal): Likewise.
(find_term_state): Likewise.
(put_glyphs_terminal): Likewise.
(print_backlog): Likewise.
(print_ucs4_real): Likewise.
(grub_print_ucs4): Likewise.
(grub_xputs_normal): Likewise.
* term/efi/console.c (grub_console_putchar): Output diacritics.
(grub_console_getcharwidth): Removed.
(grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
* term/gfxterm.c (clear_char): Free chars.
(scroll_up): Avoid leaking memory.
(grub_gfxterm_putchar): Support diacritics.
(grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
* term/i386/pc/console.c (grub_console_term_output): Declare as
GRUB_TERM_CODE_TYPE_VGA.
* term/i386/pc/vga.c (grub_vga_term): Declare as
GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
* term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
GRUB_TERM_CODE_TYPE_VGA.
* term/i386/vga_common.c (map_char): Removed.
(grub_console_putchar): Likewise.
(grub_console_getcharwidth): Likewise.
* term/ieee1275/ofconsole.c: Simplify using terminfo.
(colors): Reordered to match terminfo.
(grub_ofconsole_normal_color): Removed.
(grub_ofconsole_writeesc): Likewise.
(grub_ofconsole_highlight_color): Likewise.
(grub_ofconsole_getcharwidth): Likewise.
(grub_ofconsole_setcolorstate): Likewise.
(grub_ofconsole_setcolor): Likewise.
(grub_ofconsole_getcolor): Likewise.
(grub_ofconsole_readkey): Renamed to ...
(readkey): ... this. Remove escape sequence handling. Return -1 on no
key.
(grub_ofconsole_checkkey): Removed.
(grub_ofconsole_getkey): Likewise.
(grub_ofconsole_getxy): Likewise.
(grub_ofconsole_gotoxy): Likewise.
(grub_ofconsole_cls): Likewise.
(grub_ofconsole_refresh): Likewise.
(grub_ofconsole_terminfo_input): New struct.
(grub_ofconsole_terminfo_output): Likewise.
(grub_ofconsole_term_input): Use terminfo.
(grub_ofconsole_term_output): Likewise.
(grub_console_init): Split into ...
(grub_console_init_early): ...this and ...
(grub_console_init_lately): ...this. Use terminfo.
(grub_ofconsole_putchar): Renamed to ...
(put): ... this. Remove mapping.
(grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
* term/serial.c: Simplify using terminfo.
(xpos): Removed.
(ypos): Likewise.
(keep_track): Likewise.
(registered): Likewise.
(input_buf): Likewise.
(npending): Likewise.
(serial_translate_key_sequence): Likewise.
(fill_input_buf): Likewise.
(grub_serial_checkkey): Likewise.
(grub_serial_getkey): Likewise.
(grub_serial_getxy): Likewise.
(grub_serial_gotoxy): Likewise.
(grub_serial_putchar): Likewise.
(grub_serial_cls): Likewise.
(grub_serial_setcolorstate): Likewise.
(grub_serial_setcursor): Likewise.
(serial_hw_init): Use serial_hw_fetch.
(grub_serial_terminfo_input): New variable.
(grub_serial_terminfo_output): Likewise.
(grub_serial_term_input): Use terminfo.
(grub_serial_term_output): Likewise.
* term/terminfo.c (putstr): Use put.
(grub_terminfo_all_free): New function
(grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
(grub_terminfo_output_register): New function.
(grub_terminfo_output_unregister): Likewise.
(grub_terminfo_getxy): Likewise.
(grub_terminfo_readkey): Likewise.
(grub_terminfo_checkkey): Likewise.
(grub_terminfo_getkey): Likewise.
(grub_terminfo_input_init): Likewise.
(print_terminfo): Likewise.
(grub_cmd_terminfo): Handle encoding.
(grub_terminfo_gotoxy): Track position.
(grub_terminfo_cls): Likewise.
(grub_terminfo_putchar): Likewise.
(grub_terminfo_setcolorstate): Handle colors
(grub_terminfo_cursor_on): This ...
(grub_terminfo_cursor_off): ... and this merged into ...
(grub_terminfo_setcursor): ... this.
* term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
* unicode/ArabicShaping.txt: New file (imported from Unicode).
* unicode/BidiMirroring.txt: Likewise.
* unicode/UnicodeData.txt: Likewise.
* unicode/COPYING: Likewise.
* util/grub-editenv.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/grub-fstest.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/grub-mkdevicemap.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/grub-probe.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/grub-script-check.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/i386/pc/grub-setup.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/import_unicode.py: New file.
* util/grub-mkfont.c (ft_errmsgs): New array.
(grub_glyph_info): Make bitmap a pointer.
(file_formats): New type WIDTH_SPEC.
(grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
(options): Add width-spec.
(help): Likewise.
(add_char): Renamed to ...
(add_glyph): ... this.
(add_glyph): Use index. Show freetype errors. Cut blank space at borders.
(glyph_replace): New type.
(subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
(add_char): New function.
(add_subst): Likewise.
(process_cursive): Likewise.
(add_font): Handle GSUB.
(write_font_width_spec): New function.
(main): Sort glyphs.
* commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
* normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
* kern/term.c (grub_cls): Moved from here...
* normal/term.c (grub_cls): ... here.

14 years agoUpdate ChangeLog
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:07:56 +0000 (22:07 +0200)]
Update ChangeLog

14 years agoFix mismerge
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:06:43 +0000 (22:06 +0200)]
Fix mismerge

14 years agoFix letters reversing in qemu
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:06:19 +0000 (22:06 +0200)]
Fix letters reversing in qemu

14 years agoAdd missing include
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:05:47 +0000 (22:05 +0200)]
Add missing include

14 years agoSkip bidi if no RTL characters are present
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 18:37:08 +0000 (20:37 +0200)]
Skip bidi if no RTL characters are present

14 years agoMerge mainline into bidi
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 17:35:07 +0000 (19:35 +0200)]
Merge mainline into bidi

14 years ago* include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
Colin Watson [Fri, 2 Jul 2010 17:04:54 +0000 (18:04 +0100)]
* include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
suitable for using within the format argument of printf when
converting grub_size_t.
* disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
"x" to convert grub_size_t arguments.

14 years ago * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 16:28:54 +0000 (18:28 +0200)]
* gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
too long captions.
(list_get_minimal_size): Take selection box into account.

14 years ago * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 16:25:42 +0000 (18:25 +0200)]
* font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
NULL font.

14 years agoInline setcolorstate and move grub_Cls out of kernel.img
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 16:20:48 +0000 (18:20 +0200)]
Inline setcolorstate and move grub_Cls out of kernel.img

14 years ago* util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
Colin Watson [Fri, 2 Jul 2010 16:11:42 +0000 (17:11 +0100)]
* util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
devices when iterating over /dev/disk/by-id; they will be handled
later if appropriate, which they aren't always (e.g. LVM).

14 years ago* include/grub/misc.h (grub_reboot): Declare as noreturn.
Colin Watson [Fri, 2 Jul 2010 12:47:14 +0000 (13:47 +0100)]
* include/grub/misc.h (grub_reboot): Declare as noreturn.
* kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
fails.
(grub_halt): Likewise.
* kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
reset-all fails.
(grub_halt): Don't return, even if all of shut-down, power-off, and
poweroff fail.

14 years ago* kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
Colin Watson [Fri, 2 Jul 2010 12:42:18 +0000 (13:42 +0100)]
* kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
arguments, not three.

14 years ago* util/grub-mkconfig_lib.in (uses_abstraction): New function.
Colin Watson [Fri, 2 Jul 2010 11:32:05 +0000 (12:32 +0100)]
* util/grub-mkconfig_lib.in (uses_abstraction): New function.
* util/grub.d/10_linux.in: Use it to check for LVM, so that
LVM-on-RAID is handled correctly.

14 years ago* docs/grub.texi (Changes from GRUB Legacy): New section.
Colin Watson [Fri, 2 Jul 2010 11:13:48 +0000 (12:13 +0100)]
* docs/grub.texi (Changes from GRUB Legacy): New section.
(Future): Fix typo.

14 years ago* util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
Colin Watson [Fri, 2 Jul 2010 09:50:04 +0000 (10:50 +0100)]
* util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
grub.d/README accidentally ends up executable for one reason or
another.  Ignore it.

14 years ago * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 00:47:10 +0000 (02:47 +0200)]
* partmap/gpt.c (MAX_SECTOR_LOG): New definition.
(gpt_partition_map_iterate): Support non-512B sectors.

14 years ago * kern/efi/init.c (grub_efi_init): Disable watchdog.
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 00:43:09 +0000 (02:43 +0200)]
* kern/efi/init.c (grub_efi_init): Disable watchdog.
Tested by: Seth Goldberg.

14 years ago * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
Vladimir 'phcoder' Serbinenko [Thu, 1 Jul 2010 22:40:37 +0000 (00:40 +0200)]
* loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
Properly align mbi.
Reported by: Seth Goldberg.

14 years ago * util/grub-mkrescue.in: Avoid module duplication.
Vladimir 'phcoder' Serbinenko [Thu, 1 Jul 2010 21:35:45 +0000 (23:35 +0200)]
* util/grub-mkrescue.in: Avoid module duplication.

14 years ago * util/grub.d/10_linux.in: Don't use UUID for LVM root.
Sean Finney [Thu, 1 Jul 2010 21:24:21 +0000 (23:24 +0200)]
* util/grub.d/10_linux.in: Don't use UUID for LVM root.

14 years ago * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
Sean Finney [Thu, 1 Jul 2010 21:19:11 +0000 (23:19 +0200)]
* disk/lvm.c (grub_lvm_scan_device): Skip snapshots.

2010-07-01  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/lvm.c (grub_lvm_checkvalue): New function.
(grub_lvm_check_flag): Likewise.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
14 years ago2010-07-01 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 1 Jul 2010 08:52:23 +0000 (10:52 +0200)]
2010-07-01  Robert Millan  <rmh@gnu.org>

* kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
Support 'p' as partition separator on kernel of FreeBSD (used
with GPT labels).
(grub_util_biosdisk_get_grub_dev): Likewise.

14 years ago Yeeloong firmware port.
Vladimir 'phcoder' Serbinenko [Thu, 1 Jul 2010 01:16:56 +0000 (03:16 +0200)]
Yeeloong firmware port.

* boot/mips/yeeloong/fwstart.S: New file.
* bus/cs5536.c (gpiodump): New const.
(set_io_space): New function.
(set_iod): Likewise.
(set_p2d): Likewise.
(grub_cs5536_init_geode): Likewise.
* commands/mips/yeeloong/lsspd.c: New file.
* conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
(serial_mod_SOURCES): New variable.
(serial_mod_CFLAGS): Likewise.
(serial_mod_LDFLAGS): Likewise.
* conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
term/terminfo.c and term/tparm.c.
(pkglib_IMAGES): Add fwstart.img.
(fwstart_img_SOURCES): New variable.
(fwstart_img_CFLAGS): Likewise.
(fwstart_img_ASFLAGS): Likewise.
(fwstart_img_LDFLAGS): Likewise.
(fwstart_img_FORMAT): Likewise.
(pkglib_MODULES): Add lsspd.mod.
(lsspd_mod_SOURCES): New variable.
(lsspd_mod_CFLAGS): Likewise.
(lsspd_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add halt.mod.
(halt_mod_SOURCES): New variable.
(halt_mod_CFLAGS): Likewise.
(halt_mod_LDFLAGS): Likewise.
* conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
(serial_mod_SOURCES): Removed.
(serial_mod_CFLAGS): Likewise.
(serial_mod_LDFLAGS): Likewise.
* disk/ata.c (check_device): New function.
(grub_ata_device_initialize): Use check_device.
(grub_ata_iterate): Recheck devices.
(grub_ata_open): Likewise.
(grub_atapi_iterate): Likewise.
(grub_atapi_open): Likewise.
* include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
(GRUB_ATA_CH1_PORT1): Likewise.
(GRUB_ATA_CH0_PORT2): Likewise.
(GRUB_ATA_CH1_PORT2): Likewise.
* include/grub/mips/loongson.h: New file.
* include/grub/mips/yeeloong/ec.h: Likewise.
* include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
(GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
(GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
* include/grub/misc.h (grub_halt): Declare as noreturn.
* include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
(UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
(UART_ENABLE_FIFO_TRIGGER1): New definition.
(UART_ENABLE_DTRRTS): Likewise.
(UART_ENABLE_MODEM): Removed.
(UART_ENABLE_OUT2): New const.
* include/grub/term.h (grub_term_register_input_active): New function.
(grub_term_register_output_active): Likewise.
* kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
argument.
* kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
(init_pci): New function.
(grub_machine_init): Execute platform init when firmware. Init serial.
(grub_halt): Implement.
(grub_exit): Likewise.
(grub_reboot): Likewise.
* term/serial.c (serial_hw_init): Update macros.
[GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
* util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
(image_targets): New target mipsel-yeeloong-flash.
(generate_image): Support IMAGE_YEELOONG_FLASH.
* video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
(grub_video_sm712_setup): Init card.
(grub_video_sm712_set_palette): Removed.
* video/sm712_init.c: New file.

14 years ago* Makefile.in (install-local): Temporarily prepend $(builddir) to
Colin Watson [Wed, 30 Jun 2010 12:36:58 +0000 (13:36 +0100)]
* Makefile.in (install-local): Temporarily prepend $(builddir) to
PATH when running help2man and then run it on the unadorned
executable names, rather than passing $(builddir)/* paths to
help2man.  This avoids the build directory ending up in generated
manual pages.

14 years agoMerge mainline into yeeloongfw
Vladimir 'phcoder' Serbinenko [Wed, 30 Jun 2010 00:30:05 +0000 (02:30 +0200)]
Merge mainline into yeeloongfw

14 years ago* util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
Colin Watson [Tue, 29 Jun 2010 15:20:49 +0000 (16:20 +0100)]
* util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
to avoid accidents when debugging with 'sh -x'.
* util/grub-mkrescue.in: Likewise.
* util/grub.d/00_header.in: Likewise.
* util/grub.d/10_hurd.in: Likewise.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub.d/10_netbsd.in: Likewise.
* util/grub.d/10_windows.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.
* util/grub.d/30_os-prober.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.

14 years ago* commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
Colin Watson [Tue, 29 Jun 2010 15:15:46 +0000 (16:15 +0100)]
* commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
last character in the buffer.
Reported by: Vladimir Serbinenko.

14 years ago2010-06-29 Robert Millan <rmh@gnu.org>
Robert Millan [Mon, 28 Jun 2010 22:48:53 +0000 (00:48 +0200)]
2010-06-29  Robert Millan  <rmh@gnu.org>

* docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
(Command-line and menu entry commands): Document `badram' command.

14 years ago2010-06-28 Robert Millan <rmh@gnu.org>
Robert Millan [Mon, 28 Jun 2010 21:52:03 +0000 (23:52 +0200)]
2010-06-28  Robert Millan  <rmh@gnu.org>

* util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
* util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
command using ${GRUB_BADRAM} as parameter.

14 years ago* docs/grub.texi (Device map): New section.
Colin Watson [Mon, 28 Jun 2010 11:02:39 +0000 (12:02 +0100)]
* docs/grub.texi (Device map): New section.
(Themes): New section (stub).
* Makefile.in (docs/grub.info): The info documentation now builds
without errors.  Make sure it stays that way.

14 years ago Use normal parser for menu entries.
Vladimir 'phcoder' Serbinenko [Mon, 28 Jun 2010 10:42:50 +0000 (12:42 +0200)]
Use normal parser for menu entries.
Reported by: Thomas Frauendorfer

* include/grub/parser.h (grub_parser_execute): Don't export.
* normal/menu.c (grub_menu_execute_entry_real): New function.
(grub_menu_execute_entry): Use grub_menu_execute_entry_real.

14 years ago* docs/grub.texi (Embedded configuration): New section (replacing
Colin Watson [Mon, 28 Jun 2010 10:32:50 +0000 (11:32 +0100)]
* docs/grub.texi (Embedded configuration): New section (replacing
old "Preset Menu" stub).
(Images): New section.
(configfile): Note that any menu entries defined in `file' are shown
immediately.

14 years ago * mmap/i386/pc/mmap_helper.S: Set CF on return.
Josh Triplett [Mon, 28 Jun 2010 08:17:57 +0000 (10:17 +0200)]
* mmap/i386/pc/mmap_helper.S: Set CF on return.

14 years ago* util/grub-install.in: Add --debug-image= option.
Colin Watson [Mon, 28 Jun 2010 08:06:41 +0000 (09:06 +0100)]
* util/grub-install.in: Add --debug-image= option.

14 years agoChange grub-mkdevicemap to emit /dev/disk/by-id/ names where
Colin Watson [Mon, 28 Jun 2010 07:55:05 +0000 (08:55 +0100)]
Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
possible on Linux.
* util/deviceiter.c (check_device): Rename to ...
(check_device_readable_unique): ... this.  Update all callers.
Maintain and check a list of which devices (by canonicalized name)
have already been seen.
(clear_seen_devices): New function.
(compare_file_names) [__linux__]: New function.
(grub_util_iterate_devices): Clear the list of seen devices on exit
and (just in case) on entry.
(grub_util_iterate_devices) [__linux__]: Iterate over non-partition
devices in /dev/disk/by-id/, in sorted order.  Remove DM-RAID
seen-devices list, superseded by general code in check_device.

14 years ago* commands/cat.c (options): New variable.
Colin Watson [Mon, 28 Jun 2010 07:51:46 +0000 (08:51 +0100)]
* commands/cat.c (options): New variable.
(grub_cmd_cat): Parse options.  If the --dos option is given, print
DOS-style "\r\n" line endings as simple newlines (Debian bug
#586358).
(GRUB_MOD_INIT): Use extcmd.
(GRUB_MOD_FINI): Likewise.
* docs/grub.texi (cat): Document --dos.

14 years ago XEN with Linux grub-mkconfig support.
Vladimir 'phcoder' Serbinenko [Mon, 28 Jun 2010 00:39:49 +0000 (02:39 +0200)]
XEN with Linux grub-mkconfig support.

* conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
* util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
GRUB_CMDLINE_XEN_DEFAULT.
* util/grub.d/20_linux_xen.in: New file.