]> git.proxmox.com Git - grub2.git/log
grub2.git
14 years ago2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 31 Jan 2010 00:26:11 +0000 (01:26 +0100)]
2010-01-31  Vladimir Serbinenko  <phcoder@gmail.com>

* font/font.c (find_glyph): Check that bmp_idx is available before
using it.
(grub_font_get_string_width): Never call grub_font_get_glyph_internal
with (font == NULL).

14 years ago2010-01-28 Christian Schmitt <chris@ilovelinux.de>
Christian Schmitt [Thu, 28 Jan 2010 22:10:37 +0000 (23:10 +0100)]
2010-01-28  Christian Schmitt  <chris@ilovelinux.de>

        * util/ieee1275/grub-install.in: Fix nvsetenv arguments.

14 years agofix for grub-script-check to handle empty lines
BVK Chaitanya [Thu, 28 Jan 2010 17:01:06 +0000 (22:31 +0530)]
fix for grub-script-check to handle empty lines

14 years agosync with trunk
BVK Chaitanya [Thu, 28 Jan 2010 16:18:15 +0000 (21:48 +0530)]
sync with trunk

14 years agoadd changelog
BVK Chaitanya [Thu, 28 Jan 2010 16:16:59 +0000 (21:46 +0530)]
add changelog

14 years agofix grub-script-check
BVK Chaitanya [Thu, 28 Jan 2010 16:13:28 +0000 (21:43 +0530)]
fix grub-script-check

14 years ago2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Thu, 28 Jan 2010 15:27:41 +0000 (15:27 +0000)]
2010-01-28  Robert Millan  <rmh.grub@aybabtu.com>

* Makefile.in (check): Exit with fail status when one of the tests
fails.
* tests/example_functional_test.c (example_test): Fix reversed assert.
* tests/example_unit_test.c (example_test): Likewise.

14 years ago2010-01-28 Colin Watson <cjwatson@ubuntu.com>
Colin Watson [Thu, 28 Jan 2010 12:49:40 +0000 (12:49 +0000)]
2010-01-28  Colin Watson  <cjwatson@ubuntu.com>

* util/grub.d/10_linux.in: This script does not use any of the
contents of gettext.sh, only the external command `gettext', so stop
sourcing it.  (Moreover, gettext.sh isn't necessarily installed in
the same prefix as GRUB.)
* util/grub.d/10_kfreebsd.in: Likewise.

14 years ago2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 27 Jan 2010 16:47:36 +0000 (17:47 +0100)]
2010-01-27  Vladimir Serbinenko  <phcoder@gmail.com>

* normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
of the line.

14 years ago2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 27 Jan 2010 16:30:03 +0000 (17:30 +0100)]
2010-01-27  Vladimir Serbinenko  <phcoder@gmail.com>

* kern/disk.c (grub_disk_read): Fix offset computation when reading
last sectors.

14 years ago2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 27 Jan 2010 15:29:21 +0000 (16:29 +0100)]
2010-01-27  Vladimir Serbinenko  <phcoder@gmail.com>

* commands/hashsum.c (hash_file): Avoid possible stack overflow by
having a 4KiB and not 32KiB buffer size.

14 years ago2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 27 Jan 2010 03:18:14 +0000 (03:18 +0000)]
2010-01-27  Robert Millan  <rmh.grub@aybabtu.com>

* util/hostfs.c: Include `<errno.h>'.
(grub_hostfs_read): Handle errors from fseeko() and fread().

14 years ago2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 27 Jan 2010 03:15:03 +0000 (03:15 +0000)]
2010-01-27  Robert Millan  <rmh.grub@aybabtu.com>

* kern/disk.c (grub_disk_read): Fix bug that would cause infinite
loop when using read hooks on files whose size isn't sector-aligned.

14 years ago2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 27 Jan 2010 03:11:20 +0000 (03:11 +0000)]
2010-01-27  Robert Millan  <rmh.grub@aybabtu.com>

Remove unused parameter.

* fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
(grub_iso9660_open): Remove initialization of `data->length'.

14 years ago2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 27 Jan 2010 01:49:11 +0000 (01:49 +0000)]
2010-01-27  Robert Millan  <rmh.grub@aybabtu.com>

* util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
memleak conditions.

14 years ago2010-01-27 Carles Pina i Estany <carles@pina.cat>
carles [Wed, 27 Jan 2010 00:19:46 +0000 (00:19 +0000)]
2010-01-27  Carles Pina i Estany  <carles@pina.cat>

* util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
(grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.

14 years agoCorrect ChangeLog entry date.
carles [Tue, 26 Jan 2010 23:07:37 +0000 (23:07 +0000)]
Correct ChangeLog entry date.

14 years ago2010-01-26 Carles Pina i Estany <carles@pina.cat>
carles [Tue, 26 Jan 2010 21:23:59 +0000 (21:23 +0000)]
2010-01-26  Carles Pina i Estany  <carles@pina.cat>

* util/bin2h.c (usage): Fix warning (space after backslash).

14 years ago2010-01-25 Carles Pina i Estany <carles@pina.cat>
carles [Tue, 26 Jan 2010 20:16:08 +0000 (20:16 +0000)]
2010-01-25  Carles Pina i Estany  <carles@pina.cat>

* font/font.c: Include `grub/fontformat.h.
Remove font file format constants.
(grub_font_load): Use the new macros.
* include/grub/fontformat.h: New file.
* util/grub-mkfont.c: Include `grub/fontformat.c'.
(write_font_pf2): Use the new macros.

14 years ago2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Tue, 26 Jan 2010 18:12:49 +0000 (18:12 +0000)]
2010-01-26  Robert Millan  <rmh.grub@aybabtu.com>

* util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
does.

14 years ago2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Tue, 26 Jan 2010 16:39:37 +0000 (16:39 +0000)]
2010-01-26  Robert Millan  <rmh.grub@aybabtu.com>

* include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.

* boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
(_start): Macroify `0x7F'.

* kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
(make_install_device): Use "(pxe)" as fallback prefix when booting
via PXE.

14 years agoUpdate my email address
Robert Millan [Tue, 26 Jan 2010 15:45:16 +0000 (16:45 +0100)]
Update my email address

14 years agoReset LIBS after check for libgcc symbols in configure.ac.
Grégoire Sutre [Tue, 26 Jan 2010 00:57:56 +0000 (01:57 +0100)]
Reset LIBS after check for libgcc symbols in configure.ac.

14 years ago2010-01-25 Colin Watson <cjwatson@ubuntu.com>
Colin Watson [Mon, 25 Jan 2010 17:04:22 +0000 (17:04 +0000)]
2010-01-25  Colin Watson  <cjwatson@ubuntu.com>

* util/hostdisk.c (open_device): Add trailing newline to debug
message.

14 years ago2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
Grégoire Sutre [Mon, 25 Jan 2010 09:06:55 +0000 (10:06 +0100)]
2010-01-25  Grégoire Sutre  <gregoire.sutre@gmail.com>

* configure.ac: Check for `limits.h'.
* util/misc.c: Include `<limits.h>' (for PATH_MAX).

14 years ago2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Sun, 24 Jan 2010 21:04:29 +0000 (21:04 +0000)]
2010-01-24  Robert Millan  <rmh.grub@aybabtu.com>

* loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
capitalize error strings.

14 years ago2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Sun, 24 Jan 2010 13:30:10 +0000 (14:30 +0100)]
2010-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* util/grub.d/10_hurd.in: Add a recovery mode.

14 years ago2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 23 Jan 2010 21:56:08 +0000 (22:56 +0100)]
2010-01-23  Vladimir Serbinenko  <phcoder@gmail.com>

* configure.ac: Check for libgcc symbols with -nostdlib.

14 years agofix underquoted AC_DEFUN parameters
BVK Chaitanya [Sat, 23 Jan 2010 17:08:10 +0000 (22:38 +0530)]
fix underquoted AC_DEFUN parameters

14 years ago2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 22 Jan 2010 19:42:02 +0000 (20:42 +0100)]
2010-01-22  Vladimir Serbinenko  <phcoder@gmail.com>

* term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
stack since heap may be unavailable at that point.
(grub_ofconsole_gotoxy): Likewise.

14 years ago2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 22 Jan 2010 19:40:21 +0000 (20:40 +0100)]
2010-01-22  Vladimir Serbinenko  <phcoder@gmail.com>

* configure.ac: Check for _restgpr_14_x.
* include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
and _savegpr_* prototypes.

14 years ago2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Fri, 22 Jan 2010 17:12:40 +0000 (17:12 +0000)]
2010-01-22  Robert Millan  <rmh.grub@aybabtu.com>

Use generic grub_reboot() for i386-efi.

* kern/efi/efi.c [__i386__] (grub_reboot): Remove.
* kern/i386/efi/startup.S: Include `"../realmode.S"'.
* kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.

14 years ago2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 21 Jan 2010 23:33:07 +0000 (00:33 +0100)]
2010-01-22  Vladimir Serbinenko  <phcoder@gmail.com>

* kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
presence of "prefix" variable as it breaks when normal.mod is
embedded.

14 years ago2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 21 Jan 2010 23:07:28 +0000 (00:07 +0100)]
2010-01-21  Vladimir Serbinenko  <phcoder@gmail.com>

* term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
stack since heap is unavailable at that point.

14 years ago2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 21 Jan 2010 16:35:14 +0000 (17:35 +0100)]
2010-01-21  Vladimir Serbinenko  <phcoder@gmail.com>

* include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
(grub_freebsd_bootinfo): Rewritten.
* loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.

14 years ago2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 21 Jan 2010 12:58:40 +0000 (13:58 +0100)]
2010-01-21  Vladimir Serbinenko  <phcoder@gmail.com>

* util/misc.c (make_system_path_relative_to_its_root): Fix typo.

14 years ago2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Thu, 21 Jan 2010 08:04:49 +0000 (08:04 +0000)]
2010-01-21  Robert Millan  <rmh.grub@aybabtu.com>

* po/POTFILES: Remove mkisofs-related files.  They have their own TLP
domain now.

14 years ago2010-01-20 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Wed, 20 Jan 2010 22:53:53 +0000 (23:53 +0100)]
2010-01-20  Felix Zielcke <fzielcke@z-51.de>

* util/misc.c (make_system_path_relative_to_its_root): Change the work
around for handling "/" to the correct fix.  Fix a memory leak.  Use
xstrdup instead of strdup.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 21:21:08 +0000 (22:21 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* conf/mips.rmk (kernel_img_HEADERS): Add env_private.h

14 years ago2009-11-29 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 20:56:05 +0000 (21:56 +0100)]
2009-11-29  Vladimir Serbinenko  <phcoder@gmail.com>

Optimise glyph lookup by Basic Multilingual Plane lookup array.

* font/font.c (struct grub_font): New member 'bmp_idx'.
(font_init): Initialise 'bmp_idx'.
(load_font_index): Fill 'bmp_idx'.
(find_glyph): Make inline. Use bmp_idx for BMP characters.

14 years agomerge mainline into bmpidx
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 20:53:43 +0000 (21:53 +0100)]
merge mainline into bmpidx

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 20:45:41 +0000 (21:45 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
unnecessary calls.

14 years agomerge mainline into scrollopt
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 20:38:14 +0000 (21:38 +0100)]
merge mainline into scrollopt

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 20:32:41 +0000 (21:32 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

Move context handling out of the kernel.

* conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
* conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
* conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
* conf/i386-efi.rmk: Likewise.
* conf/i386-ieee1275.rmk: Likewise.
* conf/i386-pc.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.
* conf/sparc64-ieee1275.rmk: Likewise.
* conf/x86_64-efi.rmk: Likewise.
* include/grub/env.h: Include grub/menu.h.
(grub_env_var_type): Removed.
(grub_env_var): Replaced field 'type' with 'global'.
(grub_env_find): New prototype.
(grub_env_context_open): Remove EXPORT_FUNC.
(grub_env_context_close): Likewise.
(grub_env_export): Likewise.
(grub_env_set_data_slot): Removed.
(grub_env_get_data_slot): Likewise.
(grub_env_unset_data_slot): Likewise.
(grub_env_unset_menu): New prototype.
(grub_env_set_menu): Likewise.
(grub_env_get_menu): Likewise.
* include/grub/env_private.h: New file.
* include/grub/normal.h (grub_context_init): New prototype.
(grub_context_fini): Likewise.
* kern/corecmd.c (grub_core_cmd_export): Moved from here ...
* normal/context.c (grub_cmd_export): ... to here.
* kern/env.c: Include env_private.h.
(HASHSZ): Moved to include/grub/env_private.h.
(grub_env_context): Likewise.
(grub_env_sorted_var): Likewise.
(current_context): Renamed from this ...
(grub_current_context): ...to this. 'static' removed. All users updated.
(grub_env_find): Removed 'static'.
(grub_env_context_open): Moved to normal/context.c.
(grub_env_context_close): Likewise.
(grub_env_export): Likewise.
(mangle_data_slot_name): Removed.
(grub_env_set_data_slot): Likewise.
(grub_env_get_data_slot): Likewise.
(grub_env_unset_data_slot): Likewise.
* kern/main.c (grub_set_root_dev): Don't export root.
It will be done later.
(grub_main): Don't export prefix.
It will be done later.
* normal/context.c: New file.
* normal/main.c (free_menu): Use grub_env_unset_menu.
(grub_normal_add_menu_entry): Use grub_env_get_menu.
(read_config_file): Use grub_env_get_menu and grub_env_set_menu.
(GRUB_MOD_INIT(normal)): Call grub_context_init.
(GRUB_MOD_FINI(normal)): Call grub_context_fini.

14 years agomerge mainline into newenv
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 20:31:39 +0000 (21:31 +0100)]
merge mainline into newenv

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 19:55:55 +0000 (20:55 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

setpci support.

* commands/setpci.c: New file.
* conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
(setpci_mod_SOURCES): New variable.
(setpci_mod_CFLAGS): Likewise.
(setpci_mod_LDFLAGS): Likewise.

14 years agoUse grub_snprintf in commands/setpci.c
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 19:54:58 +0000 (20:54 +0100)]
Use grub_snprintf in commands/setpci.c

14 years agomerge mainline into setpci
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 19:51:00 +0000 (20:51 +0100)]
merge mainline into setpci

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 19:49:18 +0000 (20:49 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* video/sm712.c (grub_video_sm712_setup): Use GRUB_PCI_REG_CLASS.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 19:42:35 +0000 (20:42 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

Byte-addressable PCI configuration space.

* bus/pci.c (grub_pci_make_address): Use byte address instead of
dword address.
(grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
GRUB_PCI_REG_CACHELINE.
* bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
* bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
* commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
* commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
grub_pci_make_address.
(lock_rom_area): Likewise.
* commands/lspci.c (grub_lspci_iter): Use macroses
GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
of grub_pci_make_address.
* disk/ata.c (grub_ata_pciinit): Likewise.
* include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
(GRUB_PCI_REG_VENDOR): Likewise.
(GRUB_PCI_REG_DEVICE): Likewise.
(GRUB_PCI_REG_COMMAND): Likewise.
(GRUB_PCI_REG_STATUS): Likewise.
(GRUB_PCI_REG_REVISION): Likewise.
(GRUB_PCI_REG_CLASS): Likewise.
(GRUB_PCI_REG_CACHELINE): Likewise.
(GRUB_PCI_REG_LAT_TIMER): Likewise.
(GRUB_PCI_REG_HEADER_TYPE): Likewise.
(GRUB_PCI_REG_BIST): Likewise.
(GRUB_PCI_REG_ADDRESSES): Likewise.
(GRUB_PCI_REG_ADDRESS_REG): Likewise.
(GRUB_PCI_REG_ADDRESS_REG): Likewise.
(GRUB_PCI_REG_ADDRESS_REG): Likewise.
(GRUB_PCI_REG_ADDRESS_REG): Likewise.
(GRUB_PCI_REG_ADDRESS_REG): Likewise.
(GRUB_PCI_REG_ADDRESS_REG): Likewise.
(GRUB_PCI_REG_CIS_POINTER): Likewise.
(GRUB_PCI_REG_SUBVENDOR): Likewise.
(GRUB_PCI_REG_SUBSYSTEM): Likewise.
(GRUB_PCI_REG_ROM_ADDRESS): Likewise.
(GRUB_PCI_REG_CAP_POINTER): Likewise.
(GRUB_PCI_REG_IRQ_LINE): Likewise.
(GRUB_PCI_REG_IRQ_PIN): Likewise.
(GRUB_PCI_REG_MIN_GNT): Likewise.
(GRUB_PCI_REG_MAX_LAT): Likewise.
* loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
* loader/i386/efi/xnu.c (find_framebuf): Likewise.
* video/efi_uga.c (find_framebuf): Likewise.
* util/pci.c (grub_pci_make_address): Use byte-addressed configuration
space.

14 years agomerge mainline into pciclean
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 19:40:30 +0000 (20:40 +0100)]
merge mainline into pciclean

14 years agoAdd comments to loadbios.c
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 19:33:01 +0000 (20:33 +0100)]
Add comments to loadbios.c

14 years ago2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 20 Jan 2010 17:01:12 +0000 (17:01 +0000)]
2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>

* util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
can be reliably determined to be supported.

14 years ago2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 20 Jan 2010 16:30:20 +0000 (16:30 +0000)]
2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>

* loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
that VESA is supported.
(grub_linux_boot): Use generic framebuffer unless VESA is known to be
supported.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 14:43:21 +0000 (15:43 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.

14 years ago2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 20 Jan 2010 14:40:00 +0000 (14:40 +0000)]
2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>

* util/misc.c (make_system_path_relative_to_its_root): Work around
special-casing of "/", as previous incarnation of this routine did.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 14:26:31 +0000 (15:26 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

Fix any-emu compilation.

* conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
* grub_bin2h_SOURCES: New variable.

14 years ago2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 20 Jan 2010 14:10:46 +0000 (14:10 +0000)]
2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>

* util/grub.d/00_header.in: Fix stupid mistake from last commit.

14 years ago2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 20 Jan 2010 13:55:30 +0000 (13:55 +0000)]
2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>

* util/grub.d/00_header.in: Fix handling of locale_dir.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 12:27:23 +0000 (13:27 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
as possible unifont location (Gentoo).
Reported by: Alexander Brüning

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 09:59:15 +0000 (10:59 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

Don't try to generate lists for kernel.img.

* conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
(pkglib_MODULES): Remove kernel.img.
(kernel_img_EXPORTS): Removed.
(kernel_img_RELOCATABLE): New variable.
* conf/x86_64-efi.rmk: Likewise.
* genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 08:53:23 +0000 (09:53 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* include/grub/misc.h (grub_sprintf): Removed. All users switched to
grub_xasprintf or grub_snprintf.
(grub_vsprintf): Likewise.
(grub_snprintf): New proto.
(grub_vsnprintf): Likewise.
(grub_xasprintf): Likewise.
(grub_xvasprintf): Likewise.
* kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
(grub_sprintf): Removed.
(grub_vsnprintf): New function.
(grub_snprintf): Likewise.
(grub_xvasprintf): Likewise.
(grub_xasprintf): Likewise.
(grub_vsprintf): Renamed to ...
(grub_vsnprintf_real): ...this. New argument max_len.

14 years agoChangeLog
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 08:28:35 +0000 (09:28 +0100)]
ChangeLog

14 years agoRename asprint into xasprintf and avsprintf into xvasprintf
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 08:12:47 +0000 (09:12 +0100)]
Rename asprint into xasprintf and avsprintf into xvasprintf

14 years agouse correct size strings in mips/linux.c
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 08:02:01 +0000 (09:02 +0100)]
use correct size strings in mips/linux.c

14 years agoadd missing error handling
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 08:01:25 +0000 (09:01 +0100)]
add missing error handling

14 years ago2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
BVK Chaitanya [Wed, 20 Jan 2010 07:22:29 +0000 (12:52 +0530)]
2010-01-20  BVK Chaitanya  <bvk.groups@gmail.com>

* include/grub/script_sh.h (sourcecode): Remove const qualifier to
fix grub-script-check warning.

14 years agofix grub-script-check warnings
BVK Chaitanya [Wed, 20 Jan 2010 07:18:35 +0000 (12:48 +0530)]
fix grub-script-check warnings

14 years agomerge mainline into asprintf
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 07:06:28 +0000 (08:06 +0100)]
merge mainline into asprintf

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 07:04:39 +0000 (08:04 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* include/grub/font.h (grub_font_load): Fix prototype.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 07:04:01 +0000 (08:04 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 07:02:45 +0000 (08:02 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* include/grub/x86_64/at_keyboard.h: New file.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 07:01:48 +0000 (08:01 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* loader/mips/linux.c: Include missing grub/i18n.h.

14 years agomerge mainline into asprintf
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 06:36:17 +0000 (07:36 +0100)]
merge mainline into asprintf

14 years ago2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 20 Jan 2010 02:50:36 +0000 (02:50 +0000)]
2009-12-20  Robert Millan  <rmh.grub@aybabtu.com>

* normal/menu.c (notify_execution_failure): Clarify error message.

14 years ago2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 20 Jan 2010 02:43:19 +0000 (02:43 +0000)]
2009-12-20  Robert Millan  <rmh.grub@aybabtu.com>

* commands/loadenv.c (check_blocklists): Use `grub_err_t' as
return value (and revert all return statements).  Update users.

14 years ago2010-01-20 Dan Merillat <debian@dan.merillat.org>
Colin Watson [Wed, 20 Jan 2010 02:11:07 +0000 (02:11 +0000)]
2010-01-20  Dan Merillat  <debian@dan.merillat.org>

* kern/device.c (grub_device_iterate): Allocate new part_ent
structure based on sizeof (*p) rather than sizeof (p->next), to
account for structure padding.

* util/grub-probe.c (probe_raid_level): Return -1 immediately if
disk is NULL, which might happen for LVM physical volumes with no
LVM signature.

14 years agoMerge mips branch
Robert Millan [Wed, 20 Jan 2010 01:55:41 +0000 (01:55 +0000)]
Merge mips branch

14 years ago2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 20 Jan 2010 01:29:06 +0000 (01:29 +0000)]
2009-12-20  Robert Millan  <rmh.grub@aybabtu.com>

* loader/mips/linux.c (grub_cmd_initrd)
(GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.

14 years ago2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 20 Jan 2010 01:19:53 +0000 (01:19 +0000)]
2009-12-20  Robert Millan  <rmh.grub@aybabtu.com>

* kern/mips/yeeloong/init.c (grub_video_sm712_init)
(grub_video_video_init, grub_video_bitmap_init)
(grub_font_manager_init, grub_term_gfxterm_init)
(grub_at_keyboard_init): New extern declarations.
(grub_machine_init): Initialize gfxterm and at_keyboard.

* kern/main.c (grub_main): Revert grub_printf delay kludge.

* util/grub-install.in: Revert embed of `at_keyboard.mod' and
`gfxterm.mod' into core image.

* conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
(kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
(kernel_img_FORMAT): Copy to ...

* conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
(kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
(kernel_img_FORMAT): ... here, and ...

* conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
(kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
(kernel_img_FORMAT): ... here.

(kernel_img_SOURCES): Add files necessary for output (gfxterm)
and input (at_keyboard) terminals in kernel.
(kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.

(pkglib_MODULES): Remove `pci.mod'.
(pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
(sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
(at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
(at_keyboard_mod_LDFLAGS): Remove variables.

14 years agoResync
Robert Millan [Wed, 20 Jan 2010 00:47:55 +0000 (00:47 +0000)]
Resync

14 years agoMerge kernel-font branch
Robert Millan [Wed, 20 Jan 2010 00:42:55 +0000 (00:42 +0000)]
Merge kernel-font branch

14 years agoRemove a debug comment.
Robert Millan [Wed, 20 Jan 2010 00:34:57 +0000 (00:34 +0000)]
Remove a debug comment.

14 years ago2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 20 Jan 2010 00:08:46 +0000 (01:08 +0100)]
2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>

* include/multiboot.h: Resynced with spec.
* include/multiboot2.h: Likewise.
* loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.

14 years agoAdd (unused) mode_mask parameter to grub_video_sm712_setup()
Robert Millan [Mon, 18 Jan 2010 22:07:05 +0000 (22:07 +0000)]
Add (unused) mode_mask parameter to grub_video_sm712_setup()

14 years agoSync with trunk
Robert Millan [Mon, 18 Jan 2010 20:51:35 +0000 (20:51 +0000)]
Sync with trunk

14 years ago2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Mon, 18 Jan 2010 20:20:34 +0000 (20:20 +0000)]
2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>

* include/grub/term.h (grub_term_register_input,
grub_term_register_output): Check return of terminal init()
routines, and abort if errors are raised.

* commands/terminal.c: Update copyright year.

14 years agoResync
Robert Millan [Mon, 18 Jan 2010 19:45:50 +0000 (19:45 +0000)]
Resync

14 years ago2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Mon, 18 Jan 2010 19:43:39 +0000 (19:43 +0000)]
2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>

* include/grub/term.h (grub_term_register_input,
grub_term_register_output): Check return of terminal init()
routines, and abort if errors are raised.

* commands/terminal.c: Update copyright year.

14 years agoResync with trunk
Robert Millan [Mon, 18 Jan 2010 19:34:26 +0000 (19:34 +0000)]
Resync with trunk

14 years ago2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Mon, 18 Jan 2010 19:31:10 +0000 (19:31 +0000)]
2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>

* commands/terminal.c (grub_cmd_terminal_input)
(grub_cmd_terminal_output): Check return of terminal init()
routines, and abort if errors are raised.

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

* include/grub/i386/bsd.h: Fix include pathes.

14 years ago2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Mon, 18 Jan 2010 16:40:23 +0000 (17:40 +0100)]
2010-01-18  Vladimir Serbinenko  <phcoder@gmail.com>

Add missing *BSD copyright headers.

* include/grub/aout.h: Add BSD licence.
* include/grub/i386/bsd.h: Parts under different licences moved to ...
* include/grub/i386/freebsd_linker.h: ... here,
* include/grub/i386/freebsd_reboot.h: ... here,
* include/grub/i386/netbsd_bootinfo.h: ... here,
* include/grub/i386/netbsd_reboot.h: ... here,
* include/grub/i386/openbsd_bootarg.h: ... here,
* include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
licence to each file.

14 years ago2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Mon, 18 Jan 2010 16:22:03 +0000 (16:22 +0000)]
2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>

* acinclude.m4: Remove `nop' assembly instruction; it's not
implemented by all architectures.

14 years ago2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Mon, 18 Jan 2010 16:08:25 +0000 (16:08 +0000)]
2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>

* loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
ELILO.  This is no longer necessary.

14 years agoAdd missing ChangeLog entry for -r2078
BVK Chaitanya [Mon, 18 Jan 2010 14:19:19 +0000 (19:49 +0530)]
Add missing ChangeLog entry for -r2078

14 years ago2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Mon, 18 Jan 2010 13:45:40 +0000 (13:45 +0000)]
2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>

Fix annoying UI bug in rescue mode.  Thanks to Tristan Gingold for
spotting it back in 2008.  Shame on me for forgetting he did.

* kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.

14 years ago2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
BVK Chaitanya [Mon, 18 Jan 2010 12:29:18 +0000 (17:59 +0530)]
2010-01-18  BVK Chaitanya  <bvk.groups@gmail.com>

Added new tool, grub-scrit-check to verify grub.cfg syntax.

* util/grub-script-check.c: grub-script-check tool.
* conf/common.rmk: Make rules for grub-script-check.

14 years agoupdate copyright year
BVK Chaitanya [Mon, 18 Jan 2010 11:28:31 +0000 (16:58 +0530)]
update copyright year

14 years agomerge trunk
BVK Chaitanya [Mon, 18 Jan 2010 11:28:03 +0000 (16:58 +0530)]
merge trunk