]> git.proxmox.com Git - grub2.git/log
grub2.git
14 years agomerge mainline into bidi
Vladimir 'phcoder' Serbinenko [Sun, 9 May 2010 09:03:03 +0000 (11:03 +0200)]
merge mainline into bidi

14 years ago Transform (broken) vga terminal into (working) vga video driver.
Vladimir 'phcoder' Serbinenko [Sun, 9 May 2010 09:00:21 +0000 (11:00 +0200)]
Transform (broken) vga terminal into (working) vga video driver.

* conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
video/i386/pc/vga.c.
* include/grub/video.h (grub_video_driver_id):
Add GRUB_VIDEO_DRIVER_VGA.
* term/i386/pc/vga.c: Renamed to ...
* video/i386/pc/vga.c: ...this
(DEBUG_VGA): Removed.
(CHAR_WIDTH): Likewise.
(CHAR_HEIGHT): Likewise.
(TEXT_WIDTH): Likewise.
(TEXT_HEIGHT): Likewise.
(DEFAULT_FG_COLOR): Likewise.
(DEFAULT_BG_COLOR): Likewise.
(colored_char): Likewise.
(xpos): Likewise.
(ypos): Likewise.
(cursor_state): Likewise.
(fg_color): Likewise.
(bg_color): Likewise.
(text_buf): Likewise.
(page): Likewise.
(font): Likewise.
(framebuffer): New variable.
(set_read_map): Disabled.
(setup): New variable.
(is_target): Likewise.
(grub_vga_mod_init): Likewise.
(grub_vga_mod_fini): Likewise.
(check_vga_mem): Likewise.
(write_char): Likewise.
(write_cursor): Likewise.
(scroll_up): Likewise.
(grub_vga_putchar): Likewise.
(grub_vga_getcharwidth): Likewise.
(grub_vga_getwh): Likewise.
(grub_vga_getxy): Likewise.
(grub_vga_gotoxy): Likewise.
(grub_vga_cls): Likewise.
(grub_vga_setcolorstate): Likewise.
(grub_vga_setcursor): Likewise.
(grub_video_vga_init): New function.
(grub_video_vga_setup): Likewise.
(grub_video_vga_fini): Likewise.
(update_target): Likewise.
(grub_video_vga_blit_bitmap): Likewise.
(grub_video_vga_blit_render_target): Likewise.
(grub_video_vga_set_active_render_target): Likewise.
(grub_video_vga_get_active_render_target): Likewise.
(grub_video_vga_swap_buffers): Likewise.
(grub_video_vga_set_palette): Likewise.
(grub_video_vga_get_info_and_fini): Likewise.
(grub_vga_term): Removed.
(grub_video_vga_adapter): New variable.
(GRUB_MOD_INIT): Register a video driver instead of terminal.
(GRUB_MOD_FINI): Unrefister a video driver instead of terminal.

14 years agofix sparc64 compilation
Vladimir 'phcoder' Serbinenko [Fri, 7 May 2010 23:25:18 +0000 (01:25 +0200)]
fix sparc64 compilation

14 years agomacroify keys in ncusest terminal code
Vladimir 'phcoder' Serbinenko [Fri, 7 May 2010 23:08:58 +0000 (01:08 +0200)]
macroify keys in ncusest terminal code

14 years agosimplify setcolor/getcolor
Vladimir 'phcoder' Serbinenko [Fri, 7 May 2010 23:06:22 +0000 (01:06 +0200)]
simplify setcolor/getcolor

14 years agoMove serial encoding handling to terminfo.c
Vladimir 'phcoder' Serbinenko [Fri, 7 May 2010 22:17:23 +0000 (00:17 +0200)]
Move serial encoding handling to terminfo.c

14 years agoSupport serial colors
Vladimir 'phcoder' Serbinenko [Fri, 7 May 2010 16:07:05 +0000 (18:07 +0200)]
Support serial colors

14 years agomerge common serial and ofconsole code into terminfo
Vladimir 'phcoder' Serbinenko [Fri, 7 May 2010 13:44:43 +0000 (15:44 +0200)]
merge common serial and ofconsole code into terminfo

14 years agopass pointer to term to term functions
Vladimir 'phcoder' Serbinenko [Fri, 7 May 2010 00:30:44 +0000 (02:30 +0200)]
pass pointer to term to term functions

14 years agomake serial use ANSI code recognition in terminfo.mod
Vladimir 'phcoder' Serbinenko [Thu, 6 May 2010 19:32:58 +0000 (21:32 +0200)]
make serial use ANSI code recognition in terminfo.mod

14 years agomove ANSI code recognition to terminfo.mod
Vladimir 'phcoder' Serbinenko [Thu, 6 May 2010 19:11:59 +0000 (21:11 +0200)]
move ANSI code recognition to terminfo.mod

14 years agomerge mainline in bidi
Vladimir 'phcoder' Serbinenko [Thu, 6 May 2010 13:18:46 +0000 (15:18 +0200)]
merge mainline in bidi

14 years ago * video/readers/jpeg.c: Indented.
Vladimir 'phcoder' Serbinenko [Wed, 5 May 2010 19:19:55 +0000 (21:19 +0200)]
* video/readers/jpeg.c: Indented.

14 years ago Various jpeg cleanups.
Vladimir 'phcoder' Serbinenko [Wed, 5 May 2010 19:18:10 +0000 (21:18 +0200)]
Various jpeg cleanups.

* video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
(grub_jpeg_decode_quan_table): Use sizeof.
(grub_jpeg_decode_du): Use ARRAY_SIZE.

14 years ago * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
Peter Hurley [Wed, 5 May 2010 19:03:59 +0000 (21:03 +0200)]
* video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
tables. Ignore non-last ac bit.
(grub_jpeg_decode_quan_table): Likewise.

14 years ago * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
Vladimir 'phcoder' Serbinenko [Wed, 5 May 2010 16:52:13 +0000 (18:52 +0200)]
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
* kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
* kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.

14 years ago * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
Vladimir 'phcoder' Serbinenko [Wed, 5 May 2010 16:44:02 +0000 (18:44 +0200)]
* term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
error.

14 years ago * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
Vladimir 'phcoder' Serbinenko [Wed, 5 May 2010 16:42:33 +0000 (18:42 +0200)]
* term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.

14 years agomerge mainline into bidi
Vladimir 'phcoder' Serbinenko [Wed, 5 May 2010 14:28:52 +0000 (16:28 +0200)]
merge mainline into bidi

14 years agoPause before returning to menu editor
Vladimir 'phcoder' Serbinenko [Mon, 3 May 2010 21:14:23 +0000 (23:14 +0200)]
Pause before returning to menu editor

14 years ago * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
Vladimir 'phcoder' Serbinenko [Mon, 3 May 2010 11:17:12 +0000 (13:17 +0200)]
* commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
condition.

14 years ago * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
Vladimir 'phcoder' Serbinenko [Mon, 3 May 2010 11:12:55 +0000 (13:12 +0200)]
* kern/mm.c (grub_real_malloc): Put magic and size assignment in common
part.

14 years ago * kern/mm.c (grub_mm_init_region): Check for region size after aligning
Vladimir 'phcoder' Serbinenko [Mon, 3 May 2010 11:07:31 +0000 (13:07 +0200)]
* kern/mm.c (grub_mm_init_region): Check for region size after aligning
pointers.

14 years ago * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
Vladimir 'phcoder' Serbinenko [Mon, 3 May 2010 10:53:32 +0000 (12:53 +0200)]
* kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.

14 years ago * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
Christian Franke [Sat, 1 May 2010 19:39:32 +0000 (21:39 +0200)]
* util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
Remove broken Cygwin path conversion.
* util/misc.c: [__CYGWIN__] Add include and define.
[__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
for Cygwin 1.7.
(make_system_path_relative_to_its_root): Simplify loop, replace early
return by break.
[__CYGWIN__] Add conversion to win32 path.
Include "/" case in trailing slash removal.

14 years ago * kern/main.c (grub_load_config): Fix copy-pasted comment.
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 19:32:23 +0000 (21:32 +0200)]
* kern/main.c (grub_load_config): Fix copy-pasted comment.
Reported by: Seth Goldberg

14 years ago * commands/help.c (grub_cmd_help): Fix a typo.
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 19:31:45 +0000 (21:31 +0200)]
* commands/help.c (grub_cmd_help): Fix a typo.
Reported by: Seth Goldberg

14 years ago * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 18:28:07 +0000 (20:28 +0200)]
* commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
name and add N_.
* commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
* commands/iorw.c (GRUB_MOD_INIT): Likewise.
* commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
* commands/regexp.c (GRUB_MOD_INIT): Likewise.
* commands/setpci.c (GRUB_MOD_INIT): Likewise.
* commands/terminal.c (GRUB_MOD_INIT): Likewise.
* efiemu/main.c (GRUB_MOD_INIT): Likewise.
* font/font_cmd.c (GRUB_MOD_INIT): Likewise.
* kern/corecmd.c (GRUB_MOD_INIT): Likewise.
* mmap/mmap.c (GRUB_MOD_INIT): Likewise.
* normal/context.c (GRUB_MOD_INIT): Likewise.
* normal/main.c (GRUB_MOD_INIT): Likewise.
* term/gfxterm.c (GRUB_MOD_INIT): Likewise.
* term/serial.c (GRUB_MOD_INIT): Likewise.
* term/terminfo.c (GRUB_MOD_INIT): Likewise.

14 years ago * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 17:39:32 +0000 (19:39 +0200)]
* kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
        extra == 0.

14 years ago * commands/iorw.c: New file.
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 17:37:04 +0000 (19:37 +0200)]
* commands/iorw.c: New file.
* conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
(iorw_mod_SOURCES): New variable.
(iorw_mod_CFLAGS): Likewise.
(iorw_mod_LDFLAGS): Likewise.

14 years ago Hotkey support
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 17:33:17 +0000 (19:33 +0200)]
Hotkey support

* include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
* normal/main.c (hotkey_aliases): New variable.
(grub_normal_add_menu_entry): Parse "--hotkey".
* normal/menu_text.c (run_menu): Handle hotkeys.

14 years ago * kern/i386/coreboot/init.c (grub_machine_init): Call
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 14:35:15 +0000 (16:35 +0200)]
* kern/i386/coreboot/init.c (grub_machine_init): Call
grub_machine_mmap_init on qemu.

14 years ago * boot/i386/qemu/boot.S: Add a missing .code16.
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 12:38:09 +0000 (14:38 +0200)]
* boot/i386/qemu/boot.S: Add a missing .code16.

14 years ago Use LBIO on coreboot.
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 12:32:48 +0000 (14:32 +0200)]
Use LBIO on coreboot.

* conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
* include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
New declaration.
* kern/i386/coreboot/init.c (grub_machine_init): Don't call
grub_machine_mmap_init on coreboot.
* kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
GRUB_LINUXBIOS_MEMBER_LINK.
(grub_machine_mmap_iterate): Fix declaration.
* kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.

14 years ago Split coreboot and multiboot ports.
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 12:06:53 +0000 (14:06 +0200)]
Split coreboot and multiboot ports.

* conf/i386-multiboot.rmk: New file.
* configure.ac: Add multiboot port.
* include/grub/i386/multiboot/boot.h: New file.
* include/grub/i386/multiboot/console.h: Likewise.
* include/grub/i386/multiboot/init.h: Likewise.
* include/grub/i386/multiboot/kernel.h: Likewise.
* include/grub/i386/multiboot/loader.h: Likewise.
* include/grub/i386/multiboot/memory.h: Likewise.
* include/grub/i386/multiboot/serial.h: Likewise.
* include/grub/i386/multiboot/time.h: Likewise.
* include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
* loader/multiboot.c: Likewise.
* loader/multiboot_mbi2.c: Likewise.
* util/grub-mkrescue.in: Generate multiboot rescue.

14 years ago * kern/parser.c (grub_parser_execute): Cope with read-only config.
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 11:27:13 +0000 (13:27 +0200)]
* kern/parser.c (grub_parser_execute): Cope with read-only config.

14 years ago Merge handling of input and output terminals. Fix a hang.
Vladimir 'phcoder' Serbinenko [Sat, 1 May 2010 11:20:07 +0000 (13:20 +0200)]
Merge handling of input and output terminals. Fix a hang.

* commands/terminal.c (abstract_terminal): New struct.
(handle_command): New function. Based on grub_cmd_terminal_input.
(grub_cmd_terminal_input): Use handle_command.
(grub_cmd_terminal_output): Use handle_command.

14 years ago Fix comment handling.
BVK Chaitanya [Sat, 1 May 2010 10:19:43 +0000 (15:49 +0530)]
Fix comment handling.

* tests/grub_script_comments.in: New testcase.
* conf/tests.rmk: Rules for new testcase.
* script/yylex.l: Updated flex rules.

14 years agoadded few more test cases
BVK Chaitanya [Sat, 1 May 2010 10:09:59 +0000 (15:39 +0530)]
added few more test cases

14 years agofix comment and brace handling
BVK Chaitanya [Fri, 30 Apr 2010 08:20:41 +0000 (13:50 +0530)]
fix comment and brace handling

14 years ago* commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
Samuel Thibault [Wed, 28 Apr 2010 21:18:16 +0000 (23:18 +0200)]
* commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
if argc is 1.

14 years ago* docs/grub.texi (play): Document that zero pitches produce rests.
Samuel Thibault [Wed, 28 Apr 2010 20:59:27 +0000 (22:59 +0200)]
* docs/grub.texi (play): Document that zero pitches produce rests.

14 years ago * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
Vladimir 'phcoder' Serbinenko [Tue, 27 Apr 2010 20:08:24 +0000 (22:08 +0200)]
* conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
autogen issues.

14 years ago * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
Christian Franke [Mon, 26 Apr 2010 01:35:55 +0000 (03:35 +0200)]
* include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
* util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
(grub_get_prefix): Remove function.
* util/grub-emu.c (main): Replace grub_get_prefix () call by
make_system_path_relative_to_its_root ().
* util/sparc64/ieee1275/grub-setup.c (main): Likewise.

14 years ago * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
Christian Franke [Sat, 24 Apr 2010 21:18:57 +0000 (23:18 +0200)]
* Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
(kernel_img_LDFLAGS): Remove -static-libgcc.

14 years ago * configure.ac: Do not CHECK_BSS_START_SYMBOL
Christian Franke [Sat, 24 Apr 2010 20:41:52 +0000 (22:41 +0200)]
* configure.ac: Do not CHECK_BSS_START_SYMBOL
and CHECK_END_SYMBOL if grub-emu is built.
Unset TARGET_OBJ2ELF if grub-emu is built
without module support.

14 years ago Nilfs2 support.
Jiro SEKIBA [Sat, 24 Apr 2010 20:09:08 +0000 (22:09 +0200)]
Nilfs2 support.

* conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
(grub_fstest_SOURCES): Likewise.
(pkglib_MODULES): Add nilfs2.mod.
(nilfs2_mod_SOURCES): New variable.
(nilfs2_mod_CFLAGS): Likewise.
(nilfs2_mod_LDFLAGS): Likewise.
* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
* conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
* fs/nilfs2.c: New file.

14 years ago * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
Vladimir 'phcoder' Serbinenko [Wed, 21 Apr 2010 19:26:56 +0000 (21:26 +0200)]
* configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
is not supported.

14 years agoAdd grub-mkconfig support for NetBSD.
Grégoire Sutre [Mon, 19 Apr 2010 19:25:41 +0000 (21:25 +0200)]
Add grub-mkconfig support for NetBSD.

14 years ago Fix emu build with grub-emu-pci and grub-emu-modules.
BVK Chaitanya [Mon, 19 Apr 2010 10:34:56 +0000 (16:04 +0530)]
Fix emu build with grub-emu-pci and grub-emu-modules.

* include/grub/util/misc.h: Export grub_util_{info,error,warn}
functions.
* include/grub/libpciaccess.h: New file.
* conf/any-emu.rmk: Update kernel headers for emu build.

14 years agofix emu build with grub-emu-pci and grub-emu-modules
BVK Chaitanya [Mon, 19 Apr 2010 09:45:59 +0000 (15:15 +0530)]
fix emu build with grub-emu-pci and grub-emu-modules

14 years ago * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
Vladimir 'phcoder' Serbinenko [Mon, 19 Apr 2010 01:28:55 +0000 (03:28 +0200)]
* fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.

14 years ago * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
Vladimir 'phcoder' Serbinenko [Mon, 19 Apr 2010 00:41:48 +0000 (02:41 +0200)]
* fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.

14 years ago * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 18:41:06 +0000 (20:41 +0200)]
* boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
Retrieve chosen/bootpath if bootpath isn't hardcoded.
* conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
util/ieee1275/ofpath.c.
* util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
* util/ieee1275/grub-ofpathname.c: ... this. All users updated
* include/grub/sparc64/ieee1275/boot.h
(GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
(GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
* util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
* util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
const char *.
* util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
(setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
install.

14 years agoChangeLog
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 18:38:59 +0000 (20:38 +0200)]
ChangeLog

14 years agoRevert useless and wrong parts
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 18:38:40 +0000 (20:38 +0200)]
Revert useless and wrong parts

14 years agomerge mainline into sparcfixes
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 18:28:30 +0000 (20:28 +0200)]
merge mainline into sparcfixes

14 years agoTARGET_IMG_LDFLAGS_AC now always expects a number appended to it. Fixed
Grégoire Sutre [Sun, 18 Apr 2010 17:57:50 +0000 (19:57 +0200)]
TARGET_IMG_LDFLAGS_AC now always expects a number appended to it.  Fixed
grub_prefix in grub-mkconfig for NetBSD and OpenBSD.

14 years agoShave off bytes to compensate boot.img size increase
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 16:22:58 +0000 (18:22 +0200)]
Shave off bytes to compensate boot.img size increase

14 years agoSupport cross-disk installs. On non-cross-disk retrieve bootpath from chosen/bootpath
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 14:35:08 +0000 (16:35 +0200)]
Support cross-disk installs. On non-cross-disk retrieve bootpath from chosen/bootpath

14 years agoCorrect path to grub-ofpathname
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 14:31:27 +0000 (16:31 +0200)]
Correct path to grub-ofpathname

14 years agoUse ofpathname in grub-setup on sparc
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 12:02:13 +0000 (14:02 +0200)]
Use ofpathname in grub-setup on sparc

14 years ago * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 11:00:06 +0000 (13:00 +0200)]
* po/POTFILES: Renamed multiboot_loader.c to multiboot.c

14 years ago * util/hostdisk.c (make_device_name): Change to new partition naming.
Vladimir 'phcoder' Serbinenko [Sun, 18 Apr 2010 10:59:04 +0000 (12:59 +0200)]
* util/hostdisk.c (make_device_name): Change to new partition naming.

14 years ago * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
Vladimir 'phcoder' Serbinenko [Sat, 17 Apr 2010 16:58:56 +0000 (18:58 +0200)]
* disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.

14 years ago * Makefile.in: Add missing localedir setting.
Christian Franke [Sat, 17 Apr 2010 15:17:36 +0000 (17:17 +0200)]
* Makefile.in: Add missing localedir setting.

14 years agoRestore TEXTDOMAINDIR correction from r1889, lost apparently by
Colin Watson [Wed, 14 Apr 2010 12:59:58 +0000 (13:59 +0100)]
Restore TEXTDOMAINDIR correction from r1889, lost apparently by
mistake in r2156.  Noticed by Anthony Fok.
* util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
@localedir@.
* util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.

14 years ago Fix a spurious, uninitialized variable warning.
BVK Chaitanya [Wed, 14 Apr 2010 08:18:49 +0000 (13:48 +0530)]
Fix a spurious, uninitialized variable warning.

* loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
Initialize variable, shdr.
(grub_freebsd_load_elfmodule): Likewise.
(grub_freebsd_load_elf_meta): Likewise.

14 years agofix uninitialized warning
BVK Chaitanya [Wed, 14 Apr 2010 08:08:05 +0000 (13:38 +0530)]
fix uninitialized warning

14 years ago Fix for escaped dollar in double quoted strings.
BVK Chaitanya [Tue, 13 Apr 2010 15:55:27 +0000 (21:25 +0530)]
Fix for escaped dollar in double quoted strings.

* script/yylex.l: Updated flex rules.
* conf/tests.rmk: Rule for new testcase.
* tests/grub_script_dollar.in: New testcase.

14 years agoadd missing testcase
BVK Chaitanya [Tue, 13 Apr 2010 15:31:56 +0000 (21:01 +0530)]
add missing testcase

14 years agofix and testcase for \$ in grub script dquote strings
BVK Chaitanya [Tue, 13 Apr 2010 15:28:12 +0000 (20:58 +0530)]
fix and testcase for \$ in grub script dquote strings

14 years agoEnclose all translated strings in grub.cfg in single quotes, and
Carles Pina i Estany [Tue, 13 Apr 2010 12:57:56 +0000 (13:57 +0100)]
Enclose all translated strings in grub.cfg in single quotes, and
escape them appropriately (Ubuntu bug #552921).
* util/grub-mkconfig_lib.in (gettext_quoted): New function.
* util/grub.d/10_hurd.in: Use it.
* util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
* util/grub.d/10_linux.in (linux_entry): Likewise.
Also-By: Colin Watson <cjwatson@ubuntu.com>
14 years ago Fix cygwin compilation.
Vladimir 'phcoder' Serbinenko [Sun, 11 Apr 2010 19:24:21 +0000 (21:24 +0200)]
Fix cygwin compilation.

* configure.ac: Define NEED_REGISTER_FRAME_INFO.
* include/grub/misc.h (__register_frame_info)
[NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
(__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
* kern/misc.c (__register_frame_info)
[NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
(__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.

14 years ago * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
Vladimir 'phcoder' Serbinenko [Sun, 11 Apr 2010 14:14:51 +0000 (16:14 +0200)]
* configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.

14 years ago Unify libgcc processing.
Vladimir 'phcoder' Serbinenko [Sat, 10 Apr 2010 23:14:31 +0000 (01:14 +0200)]
Unify libgcc processing.

* Makefile.in (kernel_img_LDFLAGS): New variable.
* conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
* conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
overwriting.
* conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
* conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
* conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
* conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
* conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
overwriting. Remove -lgcc and -static-libgcc
* conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
* conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
* conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
(kernel_img_LDFLAGS): Append instead of overwriting.
Remove -lgcc and -static-libgcc
* conf/sparc64-ieee1275.rmk: Likewise.
* include/grub/powerpc/libgcc.h: Move to ...
* include/grub/libgcc.h: .. this.
* include/grub/libgcc.h: Don't export most of the function on x86.
(__bswapsi2): New export.
(__bswapdi2): Likewise.
* include/grub/mips/libgcc.h: Removed.
* include/grub/sparc64/libgcc.h: Likewise.

14 years ago * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
Vladimir 'phcoder' Serbinenko [Sat, 10 Apr 2010 18:28:25 +0000 (20:28 +0200)]
* util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
disk_info_msg (conflicts with gettexting into languages with cases).

14 years agomissing part of patch
Grégoire Sutre [Sat, 10 Apr 2010 15:09:24 +0000 (17:09 +0200)]
missing part of patch

14 years ago Add grub-probe support for NetBSD.
Grégoire Sutre [Sat, 10 Apr 2010 15:07:33 +0000 (17:07 +0200)]
Add grub-probe support for NetBSD.

* util/getroot.c (find_root_device): Convert block device to
character device on NetBSD.
* util/probe.c (probe): Require character device on NetBSD.
* util/hostdisk.c: NetBSD specific headers.
(configure_device_driver): new function to tune device driver
parameters (currently only for NetBSD floppy driver).
(grub_util_biosdisk_open): NetBSD specific code (get disk size
via disklabel ioctl).
(open_device): call configure_device_driver on NetBSD.
(convert_system_partition_to_system_disk): NetBSD specific code.
(device_is_wholedisk): Likewise.
(grub_util_biosdisk_get_grub_dev): Likewise.
(make_device_name): Fixed a typo in bsd_part_str.
* configure.ac: check for opendisk() and getrawpartition() on
NetBSD and set LIBUTIL.
* Makefile.in: add LIBUTIL to LIBS.

14 years ago Documentation fix.
BVK Chaitanya [Sat, 10 Apr 2010 13:58:59 +0000 (19:28 +0530)]
Documentation fix.

* util/grub-script-check.c: Better help message.

14 years agomerged with mainline
BVK Chaitanya [Sat, 10 Apr 2010 13:48:24 +0000 (19:18 +0530)]
merged with mainline

14 years ago Fix FreeBSD build.
BVK Chaitanya [Sat, 10 Apr 2010 13:41:32 +0000 (19:11 +0530)]
Fix FreeBSD build.

* configure.ac: Flex version check.
* conf/common.rmk: Add -Wno-error to sh.mod.
* script/yylex.l: Remove all #pragma.

14 years agomerged with mainline
BVK Chaitanya [Sat, 10 Apr 2010 13:08:09 +0000 (18:38 +0530)]
merged with mainline

14 years agomerged with mainline
BVK Chaitanya [Sat, 10 Apr 2010 12:39:56 +0000 (18:09 +0530)]
merged with mainline

14 years agoflex version check is now done by awk alone
BVK Chaitanya [Sat, 10 Apr 2010 12:36:45 +0000 (18:06 +0530)]
flex version check is now done by awk alone

14 years ago * include/grub/util/misc.h (canonicalise_file_name): Add missing
Vladimir 'phcoder' Serbinenko [Sat, 10 Apr 2010 10:46:12 +0000 (12:46 +0200)]
* include/grub/util/misc.h (canonicalise_file_name): Add missing
prototype.
Reported by: Seth Goldberg.

14 years ago * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
Vladimir 'phcoder' Serbinenko [Sat, 10 Apr 2010 01:05:03 +0000 (03:05 +0200)]
* loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
Rename "module" to "module2".
Reported by: Seth Goldberg.

14 years ago * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
Vladimir 'phcoder' Serbinenko [Sat, 10 Apr 2010 00:45:26 +0000 (02:45 +0200)]
* include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
EXPORT_FUNC.
Reported by: Seth Goldberg.

14 years ago * lib/posix_wrap/locale.h: Add missing file.
Vladimir 'phcoder' Serbinenko [Sat, 10 Apr 2010 00:08:01 +0000 (02:08 +0200)]
* lib/posix_wrap/locale.h: Add missing file.
Reported by: Seth Goldberg.

14 years ago grub-emu module load support.
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 23:59:00 +0000 (01:59 +0200)]
grub-emu module load support.

* Makefile.in (TARGET_NO_MODULES): New variable. All users of
NO_DYNAMIC_MODULES switched to this.
(TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
(CFLAGS): Likewise.
* conf/any-emu.rmk: Generate symlist.
(kernel_img_HEADERS): Add util/datetime.h.
(kernel_img_HEADERS) [sdl]: Add sdl.h.
(kernel_img_HEADERS) [libusb]: Add libusb.h.
(kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
kern/$(target_cpu)/cache.S.
* configure.ac (grub-emu-modules): New option.
* genmk.rb: Handle multiple source lists.
* include/grub/sdl.h: New file.
* include/grub/libusb.h: Likewise.
* util/grub-emu.c (main): Hanle (host) root.
* util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
GRUB_ERR_UNKNOWN_DEVICE.
* util/misc.c: Move mm functions to ...
* util/mm.c: ... here. All users updated.

14 years agoFix usb support
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 23:56:51 +0000 (01:56 +0200)]
Fix usb support

14 years agoMerge mainline into emu-modload
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 23:25:46 +0000 (01:25 +0200)]
Merge mainline into emu-modload

14 years agoFix grub-setup on sparc compilation
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 21:16:08 +0000 (23:16 +0200)]
Fix grub-setup on sparc compilation

14 years agoRemove newline_hook declaration
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 21:15:33 +0000 (23:15 +0200)]
Remove newline_hook declaration

14 years ago * Makefile.in (RMKFILES): Search in srcdir and not current directory.
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 21:04:00 +0000 (23:04 +0200)]
* Makefile.in (RMKFILES): Search in srcdir and not current directory.
(MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
missing files.
(maintainer-clean): Remove libgcrypt-grub.

14 years ago * term/efi/console.c (grub_console_checkkey): Macroify key contants.
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 19:35:52 +0000 (21:35 +0200)]
* term/efi/console.c (grub_console_checkkey): Macroify key contants.

14 years ago * normal/menu_text.c (print_message): Clean up the message and show
EFI Coder [Fri, 9 Apr 2010 19:16:17 +0000 (21:16 +0200)]
* normal/menu_text.c (print_message): Clean up the message and show
the Fn information when on EFI
* term/efi/console.c (grub_console_checkkey): Add F4 support.

14 years ago * normal/autofs.c (read_fs_list): New parameter 'prefix'.
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 19:07:24 +0000 (21:07 +0200)]
* normal/autofs.c (read_fs_list): New parameter 'prefix'.
All users updated.
* normal/crypto.c (read_crypto_list): Likewise.
* normal/dyncmd.c (read_command_list): Likewise.
* normal/term.c (read_terminal_list): Likewise.
* normal/main.c (read_lists): Use explicit prefix.
(read_lists_hook): Use read_lists.
(grub_normal_execute): Likewise.

14 years ago * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 18:40:14 +0000 (20:40 +0200)]
* util/grub-mkrescue.in: Fix incorrect path in coreboot part.
Reported by: Thomas Schmitt.
Add -no-emul-boot to grub-mkisofs parameters.

14 years agomerge mainline into bidi
Vladimir 'phcoder' Serbinenko [Fri, 9 Apr 2010 17:40:31 +0000 (19:40 +0200)]
merge mainline into bidi