]> git.proxmox.com Git - grub2.git/log
grub2.git
14 years ago2010-01-12 BVK Chaitanya <bvk.groups@gmail.com>
BVK Chaitanya [Fri, 26 Mar 2010 15:30:15 +0000 (21:00 +0530)]
2010-01-12  BVK Chaitanya  <bvk.groups@gmail.com>

For loop support to GRUB script.

* include/grub/script_sh.h (grub_script_cmdfor): New struct.
(grub_script_create_cmdfor): New function prototype.
(grub_script_execute_cmdfor): New function prototype.
* script/execute.c (grub_script_execute_cmdfor): New function.
* script/parser.y (command): New for command.
(forcmd): New grammar rule.
* script/script.c (grub_script_create_cmdfor): New function.
* util/grub-script-check.c (grub_script_execute_cmdfor): New
function.

14 years agomerged with mainline
BVK Chaitanya [Fri, 26 Mar 2010 15:25:07 +0000 (20:55 +0530)]
merged with mainline

14 years ago Nested partitions
Vladimir 'phcoder' Serbinenko [Fri, 26 Mar 2010 14:55:50 +0000 (15:55 +0100)]
Nested partitions

* commands/blocklist.c (grub_cmd_blocklist): Don't check whether
'partition' is NULL, grub_partition_get_start already does that.
* commands/loadenv.c (check_blocklists): Likewise.
(write_blocklists): Likewise.
* conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
(grub_fstest_SOURCES): Likewise.
(pkglib_MODULES): Add part_bsd.mod.
(part_bsd_mod_SOURCES): New variable.
(part_bsd_mod_CFLAGS): Likewise.
(part_bsd_mod_LDFLAGS): Likewise.
* conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
(grub_emu_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* include/grub/bsdlabel.h: New file.
* include/grub/partition.h (grub_partition_map): Remove 'probe' and
'get_name'.
(grub_partition): Add 'parent' and 'number'. Remove 'data'.
(grub_partition_map_list): New variable.
(grub_partition_map_register): Inline.
(grub_partition_map_unregister): Likewise.
(FOR_PARTITION_MAPS): New macro.
(grub_partition_map_iterate): Removed.
(grub_partition_get_start): Handle nested partitions.
* include/grub/msdos_partition.h: Remove bsd-related entries.
(grub_pc_partition): Remove.
* kern/disk.c (grub_disk_close): Free partition data.
(grub_disk_adjust_range): Handle nested partitions.
* kern/partition.c (grub_partition_map_probe): New function.
(grub_partition_probe): Parse name to number, handle subpartitions.
(get_partmap): New function.
(grub_partition_iterate): Handle subpartitions.
(grub_partition_get_name): Likewise.
* loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
* loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
* loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
* partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
Set 'number'.
(acorn_partition_map_probe): Remove.
(acorn_partition_map_get_name): Likewise.
* partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
Set 'number'.
Set 'index' to 0 since there can be only one partition entry per sector.
(amiga_partition_map_probe): Remove.
(amiga_partition_map_get_name): Likewise.
* partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
Set 'number'.
Set 'offset' and 'index' to real positions of partitions.
(apple_partition_map_probe): Remove.
(apple_partition_map_get_name): Likewise.
* partmap/bsdlabel.c: New file.
* partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
Set 'number'.
Allocate 'data' so it can be correctly freed.
Set 'index' to offset inside sector.
(gpt_partition_map_probe): Remove.
(gpt_partition_map_get_name): Likewise.
* partmap/msdos.c (grub_partition_parse): Remove.
(pc_partition_map_iterate): Don't force raw access.
Set 'number'.
Make 'ext_offset' a local variable.
(pc_partition_map_probe): Remove.
(pc_partition_map_get_name): Remove.
* partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
Set 'number'.
(sun_partition_map_probe): Remove.
(sun_partition_map_get_name): Likewise.
* parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
(grub_pcpart_type): Likewise.
* util/hostdisk.c (open_device): Handle new numbering scheme.
(grub_util_biosdisk_get_grub_dev): Handle nested partitions.
* util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
* util/grub-probe.c (probe_partmap): Handle nested paritions.
* util/grub-install.in: Insert all subpartition modules.
* util/ieee1275/grub-install.in: Likewise.

14 years agomerge mainline into nestpart
Vladimir 'phcoder' Serbinenko [Fri, 26 Mar 2010 14:44:13 +0000 (15:44 +0100)]
merge mainline into nestpart

14 years ago* kern/dl.c (grub_dl_resolve_symbols): Improve error message
Adrian Glaubitz [Wed, 24 Mar 2010 12:54:39 +0000 (12:54 +0000)]
* kern/dl.c (grub_dl_resolve_symbols): Improve error message
grammar.

14 years ago* .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
<> [Wed, 24 Mar 2010 12:50:15 +0000 (12:50 +0000)]
* .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.

14 years ago* util/grub-install.in: Copy .mo files from @datadir@/locale, to
Colin Watson [Sun, 21 Mar 2010 23:04:02 +0000 (23:04 +0000)]
* util/grub-install.in: Copy .mo files from @datadir@/locale, to
match where 'make install' puts them.
* util/i386/efi/grub-install.in: Likewise.

14 years ago* .bzrignore: Add gentrigtables, grub-script-check,
Colin Watson [Fri, 19 Mar 2010 11:28:05 +0000 (11:28 +0000)]
* .bzrignore: Add gentrigtables, grub-script-check,
grub_script_check_init.c, grub_script_check_init.h, and
trigtables.c.

14 years ago * kern/parser.c: Indented.
Vladimir 'phcoder' Serbinenko [Wed, 17 Mar 2010 23:19:30 +0000 (00:19 +0100)]
* kern/parser.c: Indented.

14 years ago * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
Vladimir 'phcoder' Serbinenko [Wed, 17 Mar 2010 07:22:45 +0000 (08:22 +0100)]
* term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).

14 years ago * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
Vladimir 'phcoder' Serbinenko [Tue, 16 Mar 2010 23:16:11 +0000 (00:16 +0100)]
* video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
alpha_mask_size == 0 case.

14 years agomerge in mainline
BVK Chaitanya [Tue, 16 Mar 2010 12:12:27 +0000 (17:42 +0530)]
merge in mainline

14 years ago2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
BVK Chaitanya [Sun, 14 Mar 2010 17:07:17 +0000 (22:37 +0530)]
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.

14 years agomerged in mainline
BVK Chaitanya [Sun, 14 Mar 2010 16:50:55 +0000 (22:20 +0530)]
merged in mainline

14 years ago Remove some redundancy in build system.
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 16:17:49 +0000 (17:17 +0100)]
Remove some redundancy in build system.

* Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
(TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
(TARGET_LDFLAGS): Add -nostdlib.
(TARGET_IMG_LDFLAGS): Likewise.
* commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
anything since mmap isn't available.
* conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
Add util/time.c.
(pkglib_MODULES): Remove reboot.mod.
(reboot_mod_SOURCES): Removed.
(reboot_mod_CFLAGS): Likewise.
(reboot_mod_LDFLAGS): Likewise.
* conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
(MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
(DEFSYMFILES): Add kernel_syms.lst.
(kernel_img_HEADERS): Add common headers.
(symlist.c): New target.
(kernel_syms.lst): Likewise.
(pkglib_MODULES): Add memdisk.mod.
(memdisk_mod_SOURCES): New variable.
(memdisk_mod_CFLAGS): Likewise.
(memdisk_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add reboot.mod.
(reboot_mod_SOURCES): New variable.
(reboot_mod_CFLAGS): Likewise.
(reboot_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add date.mod.
(date_mod_SOURCES): New variable.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add datehook.mod.
(datehook_mod_SOURCES): New variable.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add lsmmap.mod.
(lsmmap_mod_SOURCES): New variable.
(lsmmap_mod_CFLAGS): Likewise.
(lsmmap_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add boot.mod.
(boot_mod_SOURCES): New variable.
(boot_mod_CFLAGS): Likewise.
(boot_mod_LDFLAGS): Likewise.
* conf/i386-coreboot.rmk: Removed redundant parts.
* conf/i386-ieee1275.rmk: Likewise.
* conf/i386-pc.rmk: Likewise.
* conf/mips-yeeloong.rmk: Likewise.
* conf/mips.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.
* conf/sparc64-ieee1275.rmk: Likewise.
* conf/x86_64-efi.rmk: Likewise.
* conf/i386-coreboot.rmk: Moved qemu parts ..
* conf/i386-qemu.rmk: ... here
* conf/i386-efi.rmk: Moved common parts to...
* conf/x86-efi.rmk: ... here.
* conf/i386.rmk: Added modules common to all x86 variants.
* configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
* disk/memdisk.c: Remove grub/machine/kernel.h.
* gensymlist.sh.in: Include symbol.h.
* hook/datehook.c: Correct module name.
* include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
(grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
* include/grub/i386/efi/serial.h: New file.
* include/grub/x86_64/efi/serial.h: Likewise.
* util/time.c: Likewise.
* video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.

14 years agoRemove leftover date*.mo on sparc64
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 15:55:51 +0000 (16:55 +0100)]
Remove leftover date*.mo on sparc64

14 years agoShrink the pre-partition-table part of boot.img by eight bytes.
Colin King [Sun, 14 Mar 2010 15:47:05 +0000 (15:47 +0000)]
Shrink the pre-partition-table part of boot.img by eight bytes.

* boot/i386/pc/boot.S (ERR): New macro.
(chs_mode): Use ERR.
(geometry_error): Likewise.
(hd_probe_error): Remove.  This is only used once, so we wrwite
it inline instead.
(read_error): Instead of printing read_error_string, just set up
%si and fall through to ...
(error_message): ... this new function, also used by ERR.

Also-By: Colin Watson <cjwatson@ubuntu.com>
14 years agoMerge mainline into cleanbuild
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 15:41:57 +0000 (16:41 +0100)]
Merge mainline into cleanbuild

14 years agoSpeed up consecutive hostdisk operations on the same device.
Colin Watson [Sun, 14 Mar 2010 15:39:14 +0000 (15:39 +0000)]
Speed up consecutive hostdisk operations on the same device.

* util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
(grub_util_biosdisk_open): Initialise disk->data.
(struct linux_partition_cache): New structure.
(linux_find_partition): Cache partition start positions; these are
expensive to compute on every read and write.
(open_device): Cache open file descriptor in disk->data, so that we
don't have to reopen it and flush the buffer cache for consecutive
operations on the same device.
(grub_util_biosdisk_close): New function.
(grub_util_biosdisk_dev): Set `close' member.

* conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
* conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
* conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
* conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.

14 years agoFix address size in ofwfb on sparc64 (based on info by bvk)
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 15:32:50 +0000 (16:32 +0100)]
Fix address size in ofwfb on sparc64 (based on info by bvk)

14 years ago Compile parts of grub-emu as modules.
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 15:29:52 +0000 (16:29 +0100)]
Compile parts of grub-emu as modules.

* Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
(pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
(all-local): Add $(GRUB_EMU).
(install-local): Install $(GRUB_EMU).
(uninstall): Uninstall $(GRUB_EMU).
* commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
* kern/dl.c: Likewise.
* commands/sleep.c: Not include machine/time.h.
* conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
(COMMON_CFLAGS): Likewise.
(sbin_UTILITIES): Remove grub-emu.
(grub_emu_SOURCES): Removed.
(kernel_img_RELOCATABLE): New variable.
(pkglib_PROGRAMS): Add kernel.img.
(kernel_img_SOURCES): New variable
(kernel_img_CFLAGS): Likewise.
(kernel_img_LDFLAGS): Likewise.
(TARGET_NO_STRIP): Likewise.
(TARGET_NO_DYNAMIC_MODULES): Likewise.
(pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
(grub-emu): New target.
(GRUB_EMU): New variable.
* configure.ac: Whitelist -emu as possible x86_64 architecture.
* efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
* loader/xnu.c: Likewise.
* include/grub/pci.h: Likewise.
* genemuinit.sh: New file.
* genemuinitheader.sh: Likewise.
* genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
Support TARGET_NO_DYNAMIC_MODULES.
* include/grub/dl.h (GRUB_NO_MODULES): New variable.
* commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
* disk/loopback.c: Likewise.
* font/font_cmd.c: Likewise.
* partmap/acorn.c: Likewise.
* partmap/amiga.c: Likewise.
* partmap/apple.c: Likewise.
* partmap/gpt.c: Likewise.
* partmap/msdos.c: Likewise.
* partmap/sun.c: Likewise.
* parttool/msdospart.c: Likewise.
* term/gfxterm.c: Likewise.
* video/bitmap.c: Likewise.
* video/readers/jpeg.c: Likewise.
* video/readers/png.c: Likewise.
* video/readers/tga.c: Likewise.
* video/video.c: Likewise.
* util/grub-emu.c (read_command_list): Removed.
(main): Don't call util_init_nls.
* util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
(grub_util_init_nls) [!GRUB_UTIL]: Likewise.

14 years agoMerge mainline into emu-mod
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 15:27:54 +0000 (16:27 +0100)]
Merge mainline into emu-mod

14 years agoMerge mainline into cleanbuild
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 15:01:31 +0000 (16:01 +0100)]
Merge mainline into cleanbuild

14 years ago * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 14:51:08 +0000 (15:51 +0100)]
* conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
date.mod, datehook.mod.
(datetime_mod_SOURCES): New variable.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.
* conf/sparc64-ieee1275.rmk: Likewise.
* lib/ieee1275/datetime.c: New file.

14 years agoMerge mainline info ofwclock
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 14:49:56 +0000 (15:49 +0100)]
Merge mainline info ofwclock

14 years ago2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 14:49:07 +0000 (15:49 +0100)]
2010-03-14  Vladimir Serbinenko  <phcoder@gmail.com>

* conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
(ieee1275_fb_mod_SOURCES): New variable.
(ieee1275_fb_mod_CFLAGS): Likewise.
(ieee1275_fb_mod_LDFLAGS): Likewise.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
New proto.
* kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
(HEAP_MAX_ADDR): Likewise.
* kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
type.
Correct stop condition.
(grub_ieee1275_devices_iterate): New function.
* video/ieee1275.c: New file.

14 years agoMerge mainline into ofwfb
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 14:43:22 +0000 (15:43 +0100)]
Merge mainline into ofwfb

14 years agoMerge mainline into ofwclock
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 14:41:30 +0000 (15:41 +0100)]
Merge mainline into ofwclock

14 years ago Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 14:38:17 +0000 (15:38 +0100)]
Merge sparc grub-mkimage into generic grub-mkimage and a.out support.

* boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
as scratch.
* boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
SCRATCH_PAD_DISKBOOT as scratch.
(bootit): Pass Openfirmware pointer in %o4.
* conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
of 0x200000.
(grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
with util/grub-mkrawimage.c.
* configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
* include/grub/aout.h (AOUT_MID_SUN): New definition.
(grub_aout_get_type) [GRUB_UTIL]: Removed.
(grub_aout_load) [GRUB_UTIL]: Likewise.
* include/grub/kernel.h (grub_modules_get_end): New proto.
* include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
(SCRATCH_PAD_BOOT): New definition.
(SCRATCH_PAD_DISKBOOT): Likewise.
(GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
* include/grub/sparc64/ieee1275/ieee1275.h
(grub_ieee1275_original_stack): New variable
* include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
New definition
(GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
(GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
(GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
(GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
(GRUB_PLATFORM_IMAGE_RAW): Likewise.
(GRUB_PLATFORM_IMAGE_AOUT): Likewise.
(grub_platform_image_format_t): New type.
* kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
* kern/main.c (grub_modules_get_end)
[GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
* kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
(codestart): Switch stacks.
* kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
variable.
(grub_heap_init): Use grub_modules_get_end.
* loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
stack.
* util/grub-mkrawimage.c (generate_image): Support sparc64.
(main): Likewise.
* util/sparc64/ieee1275/grub-mkimage.c: Removed.

14 years agoMerge mainline into sparc-mkimage
Vladimir 'phcoder' Serbinenko [Sun, 14 Mar 2010 14:21:04 +0000 (15:21 +0100)]
Merge mainline into sparc-mkimage

14 years ago* util/grub-mkrescue.in: Base ISO UUID on UTC.
Thorsten Glaser [Sun, 14 Mar 2010 12:48:55 +0000 (13:48 +0100)]
* util/grub-mkrescue.in: Base ISO UUID on UTC.

14 years ago2010-03-08 Matt Kraai <kraai@ftbfs.org>
Matt Kraai [Mon, 8 Mar 2010 22:20:02 +0000 (22:20 +0000)]
2010-03-08  Matt Kraai  <kraai@ftbfs.org>

* util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
bug #559005).

14 years ago2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 7 Mar 2010 22:02:13 +0000 (23:02 +0100)]
2010-03-07  Vladimir Serbinenko  <phcoder@gmail.com>

* genmoddep.awk: Output all missing symbols and not only first.

14 years ago2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 6 Mar 2010 20:49:59 +0000 (21:49 +0100)]
2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>

* NEWS: Put the date of 1.98 release.

14 years ago2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 6 Mar 2010 20:27:04 +0000 (21:27 +0100)]
2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>

* configure.ac: Update CPPFLAGS and not CFLAGS when checking for
ft2build.h.

14 years ago2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 6 Mar 2010 16:48:15 +0000 (17:48 +0100)]
2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>

* normal/cmdline.c (grub_cmdline_get): Fix gabled line after
completition in the middle of string.

14 years ago2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 6 Mar 2010 16:28:25 +0000 (17:28 +0100)]
2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>

* util/grub-mkrescue.in: Use mktemp with explicit template.

14 years ago2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 6 Mar 2010 16:27:28 +0000 (17:27 +0100)]
2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>

* loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.

14 years ago2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 6 Mar 2010 16:25:40 +0000 (17:25 +0100)]
2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>

* loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
right pointer.

14 years ago2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 6 Mar 2010 16:22:04 +0000 (17:22 +0100)]
2010-03-05  Vladimir Serbinenko  <phcoder@gmail.com>

Fix FreeBSD compilation.

* Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
* configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.

14 years ago2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 5 Mar 2010 14:38:04 +0000 (15:38 +0100)]
2010-03-05  Vladimir Serbinenko  <phcoder@gmail.com>

* util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 5 Mar 2010 14:30:44 +0000 (15:30 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 5 Mar 2010 14:29:28 +0000 (15:29 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/scsi.c (grub_scsi_iterate): Fix a memory leak.

14 years ago2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Thu, 4 Mar 2010 22:16:34 +0000 (23:16 +0100)]
2010-03-04  Robert Millan  <rmh.grub@aybabtu.com>

Support relative image path in theme file.

* gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
(image_set_property): Handle theme_dir and relative path.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 21:33:49 +0000 (22:33 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* configure.ac: Alias amd64 to x86_64.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 20:35:36 +0000 (21:35 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* NEWS: mention multiboot on EFI.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 20:32:11 +0000 (21:32 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* kern/main.c (grub_load_modules): Handle errors from init functions of
embeded modules.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 20:30:58 +0000 (21:30 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* normal/autofs.c (autoload_fs_module): Handle errors.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 16:03:43 +0000 (17:03 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

Disable linux.mod on qemu-mips since it's not functional and leads
to compilation failure.

* conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
* conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
* conf/mips.rmk (linux_mod_SOURCES): Move from here ...
* conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
* conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
* conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
* conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
* conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
* conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
* conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
Reported by: BVK Chaitanya

14 years ago2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
Jordan Uggla [Thu, 4 Mar 2010 15:28:57 +0000 (16:28 +0100)]
2010-03-04  Jordan Uggla  <jordan.uggla@gmail.com>

* INSTALL: Add gettext as a dependency and add qemu to a new section
"Prerequisites for make-check".

14 years ago2010-03-04 Christian Franke <franke@computer.org>
Christian Franke [Thu, 4 Mar 2010 15:25:26 +0000 (16:25 +0100)]
2010-03-04  Christian Franke  <franke@computer.org>

* util/grub-pe2elf.c: Add missing include "progname.h".

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 15:13:35 +0000 (16:13 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* normal/crypto.c (read_crypto_list): Fix a typo.
Reported by: Seth Goldberg.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 15:08:46 +0000 (16:08 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* Makefile.in (DISTCLEANFILES): Add stamp-h1.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 14:50:57 +0000 (15:50 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
ascii.bitmaps.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 14:41:32 +0000 (15:41 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* genmk.rb: Remove terminal*.lst in make clean.

14 years ago2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 4 Mar 2010 14:12:34 +0000 (15:12 +0100)]
2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>

* util/i386/efi/grub-install.in: Copy gettext files.

14 years agoreopen device when the requested access mode changes
Colin Watson [Wed, 3 Mar 2010 20:03:50 +0000 (20:03 +0000)]
reopen device when the requested access mode changes

14 years ago2010-03-03 Colin Watson <cjwatson@ubuntu.com>
Colin Watson [Wed, 3 Mar 2010 10:44:12 +0000 (10:44 +0000)]
2010-03-03  Colin Watson  <cjwatson@ubuntu.com>

* util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
(grub_util_biosdisk_open): Initialise disk->data.
(struct linux_partition_cache): New structure.
(linux_find_partition): Cache partition start positions; these are
expensive to compute on every read and write.
(open_device): Cache open file descriptor in disk->data, so that we
don't have to reopen it and flush the buffer cache for consecutive
operations on the same device.
(grub_util_biosdisk_close): New function.
(grub_util_biosdisk_dev): Set `close' member.

* conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
* conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
* conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
* conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.

14 years agomerge mainline into sparc-mkimage
Vladimir 'phcoder' Serbinenko [Wed, 3 Mar 2010 10:24:36 +0000 (11:24 +0100)]
merge mainline into sparc-mkimage

14 years ago2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Mon, 1 Mar 2010 20:00:02 +0000 (21:00 +0100)]
2010-03-01  Vladimir Serbinenko  <phcoder@gmail.com>

* fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.

14 years ago2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Mon, 1 Mar 2010 19:58:45 +0000 (20:58 +0100)]
2010-03-01  Vladimir Serbinenko  <phcoder@gmail.com>

Wait for user entry basing on presence of output rather than on errors.

* include/grub/normal.h (grub_normal_get_line_counter): New proto.
(grub_install_newline_hook): Likewise.
* normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
* normal/menu.c (show_menu): Check line_counter to determine presence
of output.
* normal/term.c (grub_normal_line_counter): New variable.
(grub_normal_get_line_counter): New function.
(grub_install_newline_hook): Likewise.

14 years ago2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Mon, 1 Mar 2010 19:24:34 +0000 (20:24 +0100)]
2010-03-01  Vladimir Serbinenko  <phcoder@gmail.com>

* commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.

14 years ago2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Mon, 1 Mar 2010 18:07:48 +0000 (19:07 +0100)]
2010-03-01  Vladimir Serbinenko  <phcoder@gmail.com>

* configure.ac: Update version to 1.98.

14 years ago2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 26 Feb 2010 13:32:24 +0000 (14:32 +0100)]
2010-02-26  Vladimir Serbinenko  <phcoder@gmail.com>

* util/grub.d/10_linux.in (linux_entry): Don't default to
gfxpayload=keep if Linux doesn't support video handover.

14 years ago2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 25 Feb 2010 14:10:18 +0000 (15:10 +0100)]
2010-02-25  Vladimir Serbinenko  <phcoder@gmail.com>

Don't compile video modules on yeeloong since video subsystem is part
of kernel.

* conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
* conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
* conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
* include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
* include/grub/bitmap_scale.h: Likewise.
* include/grub/bufio.h: Likewise.
* include/grub/font.h: Likewise.
* include/grub/gfxterm.h: Likewise.
* include/grub/video.h: Likewise.
* include/grub/vbe.h: Don't include video_fb.h.
* video/i386/pc/vbe.c: Include video_fb.h.
* commands/i386/pc/vbetest.c: Include video.h.

14 years ago2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
Colin Watson [Thu, 25 Feb 2010 13:30:50 +0000 (13:30 +0000)]
2010-02-25  Jordan Uggla  <jordan.uggla@gmail.com>

* util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
* util/grub-mkconfig_lib.in (save_default_entry): Only save a new
default entry if GRUB_SAVEDEFAULT=true.  This allows using
GRUB_DEFAULT=saved on its own to let grub-reboot work, without
saving a new default on every boot.

14 years ago2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 24 Feb 2010 14:24:21 +0000 (15:24 +0100)]
2010-02-24  Vladimir Serbinenko  <phcoder@gmail.com>

* normal/crypto.c (read_crypto_list): Fix a memory leak.
* normal/term.c (read_terminal_list): Likewise.
* normal/main.c (grub_normal_init_page): Likewise.
(grub_normal_read_line_real): Likewise.

14 years ago2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 24 Feb 2010 14:21:36 +0000 (15:21 +0100)]
2010-02-24  Vladimir Serbinenko  <phcoder@gmail.com>

* loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
memory leak.
Reported by: Seth Goldberg.

14 years agoRemove trailing spaces in kern/device.c
Vladimir 'phcoder' Serbinenko [Wed, 24 Feb 2010 10:29:11 +0000 (11:29 +0100)]
Remove trailing spaces in kern/device.c

14 years ago2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
Colin Watson [Wed, 24 Feb 2010 10:02:16 +0000 (10:02 +0000)]
2010-02-24  Joey Korkames  <joey+lists@kidfixit.com>

* term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
duplicate declaration of `start'.

14 years ago2010-02-10 Colin King <colin.king@ubuntu.com>
Colin Watson [Mon, 22 Feb 2010 12:42:13 +0000 (12:42 +0000)]
2010-02-10  Colin King  <colin.king@ubuntu.com>
2010-02-10  Colin Watson  <cjwatson@ubuntu.com>

Shrink the pre-partition-table part of boot.img by eight bytes.

* boot/i386/pc/boot.S (ERR): New macro.
(chs_mode): Use ERR.
(geometry_error): Likewise.
(hd_probe_error): Remove.  This is only used once, so we wrwite
it inline instead.
(read_error): Instead of printing read_error_string, just set up
%si and fall through to ...
(error_message): ... this new function, also used by ERR.

14 years ago2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Mon, 22 Feb 2010 08:18:59 +0000 (09:18 +0100)]
2010-02-20  Vladimir Serbinenko  <phcoder@gmail.com>

* fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
filename.
Reported by: Georgy Buranov

14 years ago2010-02-20 Carles Pina i Estany <carles@pina.cat>
carles [Sat, 20 Feb 2010 23:31:35 +0000 (23:31 +0000)]
2010-02-20  Carles Pina i Estany  <carles@pina.cat>

* util/grub-mkrawimage.c (usage): Change string formatting to
improve gettext.

14 years ago2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
Manoel Rebelo Abranches [Sat, 20 Feb 2010 10:23:13 +0000 (11:23 +0100)]
2010-02-20  Manoel Rebelo Abranches <mrabran@br.ibm.com>

* term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
backspace keys.

14 years ago2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 20 Feb 2010 10:15:51 +0000 (11:15 +0100)]
2010-02-20  Vladimir Serbinenko  <phcoder@gmail.com>

* video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
Reported by: Michael Suchanek.

14 years ago2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Thu, 18 Feb 2010 07:56:31 +0000 (08:56 +0100)]
2010-02-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
* util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.

14 years ago2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Tue, 16 Feb 2010 12:23:08 +0000 (13:23 +0100)]
2010-02-16  Vladimir Serbinenko  <phcoder@gmail.com>

Remove any reference to non-free fonts.

* commands/videotest.c (grub_cmd_videotest): Use unifont by default.
* docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
uses non-free components.
* font/font.c (grub_font_get_name): Remove example name.
* gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
* gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
* gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
* gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.

14 years ago2010-02-16 Georgy Buranov <gburanov@gmail.com>
Georgy Buranov [Tue, 16 Feb 2010 12:13:02 +0000 (13:13 +0100)]
2010-02-16  Georgy Buranov <gburanov@gmail.com>

* disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.

14 years agoFix yeeloong compilation
Vladimir 'phcoder' Serbinenko [Mon, 15 Feb 2010 18:03:07 +0000 (19:03 +0100)]
Fix yeeloong compilation

14 years ago2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Mon, 15 Feb 2010 18:01:38 +0000 (19:01 +0100)]
2010-02-15  Vladimir Serbinenko  <phcoder@gmail.com>

* term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
Double divisor.
(serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
features.
(GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.

14 years ago2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Mon, 15 Feb 2010 17:59:40 +0000 (18:59 +0100)]
2010-02-15  Vladimir Serbinenko  <phcoder@gmail.com>

* gensymlist.sh.in: Use TARGET_CC instead of CC.

14 years agoUse alias->path
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 19:05:09 +0000 (20:05 +0100)]
Use alias->path

14 years agoMerge ofwfb into ofwclock
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 19:04:45 +0000 (20:04 +0100)]
Merge ofwfb into ofwclock

14 years agoRename get_time_args to set_time_args
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 19:04:26 +0000 (20:04 +0100)]
Rename get_time_args to set_time_args

14 years agoRevert gratuituos change of alias.name
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 19:03:19 +0000 (20:03 +0100)]
Revert gratuituos change of alias.name

14 years ago2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Sun, 14 Feb 2010 17:36:26 +0000 (18:36 +0100)]
2010-02-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
* docs/grub.texi (Command-line and menu entry commands): Document play
command.

14 years ago2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Sun, 14 Feb 2010 17:14:16 +0000 (18:14 +0100)]
2010-02-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
parse arguments as inline tempo and notes.  Move code for playing notes
to...
(play): ... new function.

14 years ago2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Sun, 14 Feb 2010 16:25:52 +0000 (17:25 +0100)]
2010-02-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
grub_uint16_t instead of short.
(grub_cmd_play): Use grub_uint32_t instead of int, convert data from
disk from little endian to cpu endianness.

14 years ago2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Sun, 14 Feb 2010 16:07:34 +0000 (17:07 +0100)]
2010-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
GRUB_TICKS_PER_SECOND instead of 120.

14 years ago2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 13:52:10 +0000 (14:52 +0100)]
2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>

* term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
escape sequence after \e.

14 years ago2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 13:51:06 +0000 (14:51 +0100)]
2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>

* term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
non-ASCII characters.

14 years ago2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 13:47:50 +0000 (14:47 +0100)]
2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>

* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
set root in single quotes to prevent \, from being unescaped.

14 years ago2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 13:46:19 +0000 (14:46 +0100)]
2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>

Prevent unknown commands from stopping menuentry execution.

* script/execute.c (grub_script_execute_cmdline): Print error after
unknown command.

14 years agoIncrease stack size on sparc
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 13:32:21 +0000 (14:32 +0100)]
Increase stack size on sparc

14 years ago2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 12:18:33 +0000 (13:18 +0100)]
2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>

* fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
Reported by: Pavel Pisa.

14 years ago2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 14 Feb 2010 01:10:46 +0000 (02:10 +0100)]
2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>

* io/gzio.c (grub_gzio_open): Use grub_zalloc.

14 years agoFix raw image addresses
Vladimir 'phcoder' Serbinenko [Sat, 13 Feb 2010 17:48:33 +0000 (18:48 +0100)]
Fix raw image addresses

14 years agoMerge mainline int sparc-mkimage-unify
Vladimir 'phcoder' Serbinenko [Sat, 13 Feb 2010 15:49:21 +0000 (16:49 +0100)]
Merge mainline int sparc-mkimage-unify

14 years ago2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 13 Feb 2010 15:48:22 +0000 (16:48 +0100)]
2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>

Merge grub_ieee1275_map_physical into grub_map and rename to
grub_ieee1275_map

* include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
* include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
Remove.
* kern/ieee1275/openfw.c (grub_map): Rename to ...
(grub_ieee1275_map): ... this. All users updated. Add phys_lo when
necessary.
* kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.

14 years ago2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 13 Feb 2010 15:44:34 +0000 (16:44 +0100)]
2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
opening and not after.