]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
15 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.

15 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.

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

15 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

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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

15 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.

15 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.

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

15 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

15 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

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

15 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.

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

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

15 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.

15 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.

15 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.

15 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.

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

15 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.

15 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.

15 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.

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

15 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.

15 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.

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

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

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

15 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.

15 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()

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

15 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.

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

15 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.

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

15 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.

15 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.

15 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.

15 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.

15 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.

15 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

15 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.

15 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.

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

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

15 years ago2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Mon, 18 Jan 2010 07:49:50 +0000 (07:49 +0000)] 
2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>

* include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
(GRUB_VIDEO_LINUX_TYPE_TEXT): ... this.  Update all users.
(GRUB_VIDEO_TYPE_VLFB): Rename to ...
(GRUB_VIDEO_LINUX_TYPE_VESA): ... this.  Update all users.
(GRUB_VIDEO_TYPE_EFI): Rename to ...
(GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this.  Update all users.

15 years ago2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Sun, 17 Jan 2010 17:29:57 +0000 (17:29 +0000)] 
2010-01-17  Robert Millan  <rmh.grub@aybabtu.com>

* include/grub/test.h: Add license header.
* tests/example_functional_test.c: Likewise.
* tests/example_unit_test.c: Likewise.
* tests/lib/functional_test.c: Likewise.
* tests/lib/test.c: Likewise.
* tests/lib/unit_test.c: Likewise.

15 years ago2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 17 Jan 2010 16:52:01 +0000 (17:52 +0100)] 
2010-01-17  Vladimir Serbinenko  <phcoder@gmail.com>

Use flag-based instead of hook-based video mode selection and "auto"
keyword.

* include/grub/video.h (grub_video_adapter): Changed 'setup' member.
(grub_video_set_mode): Changed prototype. All users updated.
(grub_video_check_mode_flag): New inline function.
* video/video.c (parse_modespec): New function.
(grub_video_set_mode): Parse flags and keywords.

15 years ago2010-01-17 Carles Pina i Estany <carles@pina.cat>
carles [Sun, 17 Jan 2010 14:42:19 +0000 (14:42 +0000)] 
2010-01-17  Carles Pina i Estany  <carles@pina.cat>

* util/misc.c (grub_util_info): Fix the order of the parameters in a
fprintf call.

15 years ago2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
Felix Zielcke [Sat, 16 Jan 2010 10:57:47 +0000 (11:57 +0100)] 
2010-01-16  GrĂ©goire Sutre <gregoire.sutre@gmail.com>

* genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.

15 years ago2010-01-16 Carles Pina i Estany <carles@pina.cat>
carles [Sat, 16 Jan 2010 00:39:14 +0000 (00:39 +0000)] 
2010-01-16  Carles Pina i Estany  <carles@pina.cat>

* util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
string.
* util/grub-emu.c (usage): Likewise.
* util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
* util/i386/efi/grub-mkimage.c (usage): Likewise.
* util/i386/pc/grub-mkimage.c (usage): Likewise.
* util/i386/pc/grub-setup.c (usage): Likewise.

15 years ago2010-01-16 Carles Pina i Estany <carles@pina.cat>
carles [Sat, 16 Jan 2010 00:26:52 +0000 (00:26 +0000)] 
2010-01-16  Carles Pina i Estany  <carles@pina.cat>

* util/misc.c (grub_util_warn): Gettextizze, print full stop after
the message.
(grub_util_info): Likewise.
(grub_util_error): Likewise.
* util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
and/or new lines in `grub_util_warna', `grub_util_info',
`grub_util_error' calls.
* util/getroot.c: Likewise.
* util/grub-editenv.c: Likewise.
* util/grub-emu.c: Likewise.
* util/grub-fstest.c: Likewise.
* util/grub-mkdevicemap.c: Likewise.
* util/grub-mkfont.c: Likewise.
* util/grub-mkpasswd-pbkdf2.c: Likewise.
* util/grub-mkrelpath.c: Likewise.
* util/grub-pe2elf.c: Likewise.
* util/grub-probe.c: Likewise.
* util/hostdisk.c: Likewise.
* util/i386/efi/grub-mkimage.c: Likewise.
* util/i386/pc/grub-mkimage.c: Likewise.
* util/i386/pc/grub-setup.c: Likewise.
* util/ieee1275/ofpath.c: Likewise.
* util/mkisofs/eltorito.c: Likewise.
* util/mkisofs/rock.c: Likewise.
* util/mkisofs/write.c: Likewise.
* util/raid.c: Likewise.
* util/sparc64/ieee1275/grub-mkimage.c: Likewise.
* util/sparc64/ieee1275/grub-setup.c: Likewise.

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

Enable multiboot on non-pc.

* conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
multiboot.mod and multiboot2.mod to ...
* conf/i386.rmk (pkglib_MODULES): ... here.
* conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
Moved to ...
* conf/i386.rmk (multiboot_mod_SOURCES): .. here.
* conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
Moved to ...
* conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
* conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
Moved to ...
* conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
* conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
Moved to ...
* conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
* conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
relocator.mod.
(ata_mod_SOURCES): Removed.
(ata_mod_CFLAGS): Likewise.
(ata_mod_LDFLAGS): Likewise.
(relocator_mod_SOURCES): Removed.
(relocator_mod_CFLAGS): Likewise.
(relocator_mod_ASFLAGS): Likewise.
(relocator_mod_LDFLAGS): Likewise.
Include i386.mk.
* include/grub/x86_64/multiboot.h: New file.
* loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
Terminate EFI.

15 years ago2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 15 Jan 2010 15:30:57 +0000 (16:30 +0100)] 
2010-01-15  Vladimir Serbinenko  <phcoder@gmail.com>

Video multiboot support.

* include/grub/multiboot.h (grub_multiboot_set_accepts_video):
New prototype.
* include/multiboot.h: Resynced with multiboot specification.
* include/multiboot2.h: Likewise.
* loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
(grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
* loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
(HAS_VGA_TEXT): Likewise.
(accepts_video): New variable.
(grub_multiboot_set_accepts_video): New function.
(grub_multiboot_get_mbi_size): Account for video structures.
(set_video_mode): New function.
(retrieve_video_parameters): Likewise.
(grub_multiboot_make_mbi): Fill video fields.

15 years ago2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 15 Jan 2010 15:11:18 +0000 (16:11 +0100)] 
2010-01-15  Vladimir Serbinenko  <phcoder@gmail.com>

Video driver ids.

* include/grub/video.h (grub_video_driver_id): New type.
(grub_video_adapter): New member 'id'. All users updated.
(grub_video_get_driver_id): New proto.
* video/video.c (grub_video_get_driver_id): New function.

15 years ago2010-01-14 Carles Pina i Estany <carles@pina.cat>
carles [Thu, 14 Jan 2010 23:20:13 +0000 (23:20 +0000)] 
2010-01-14  Carles Pina i Estany  <carles@pina.cat>

* util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
`var=val'.

15 years ago2010-01-14 Carles Pina i Estany <carles@pina.cat>
carles [Thu, 14 Jan 2010 23:07:44 +0000 (23:07 +0000)] 
2010-01-14  Carles Pina i Estany  <carles@pina.cat>

* normal/cmdline.c (print_completion): Gettextizze.

15 years ago2001-01-14 Carles Pina i Estany <carles@pina.cat>
carles [Thu, 14 Jan 2010 23:04:49 +0000 (23:04 +0000)] 
2001-01-14  Carles Pina i Estany  <carles@pina.cat>

* loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.

15 years ago2010-01-14 Carles Pina i Estany <carles@pina.cat>
carles [Thu, 14 Jan 2010 22:31:06 +0000 (22:31 +0000)] 
2010-01-14  Carles Pina i Estany  <carles@pina.cat>

* gettext/gettext.c (grub_gettext_translate): Push and pop
grub_errno.
(grub_gettext_delete_list): Change comment style.
* kern/err.c (grub_error): Gettextizze.
(grub_fatal): Gettextizze.

15 years agoFix $srcdir != $builddir build by moving ascii.h to top dir.
Robert Millan [Thu, 14 Jan 2010 21:17:05 +0000 (22:17 +0100)] 
Fix $srcdir != $builddir build by moving ascii.h to top dir.

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

* include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
(grub_linux16_real_boot): ... this.
* kern/i386/loader.S: Likewise.
* loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
(grub_linux16_boot): New function.  Switches to text mode and calls
grub_linux16_real_boot().

* loader/i386/bsd.c: Include `<grub/video.h>'.
(grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
text mode before calling grub_unix_real_boot().

* loader/i386/multiboot.c: Include `<grub/video.h>'.
(grub_multiboot_boot): Switch to text mode before calling
grub_relocator32_boot().

* loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
(grub_chainloader_boot): Switch to text mode before calling
grub_chainloader_real_boot().

15 years agoSupport --help and --version in grub-bin2h.
Robert Millan [Thu, 14 Jan 2010 20:33:10 +0000 (20:33 +0000)] 
Support --help and --version in grub-bin2h.

15 years ago2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
Robert Millan [Thu, 14 Jan 2010 18:52:39 +0000 (18:52 +0000)] 
2010-01-05  Jordan Uggla  <jordan.uggla@gmail.com>
2010-01-05  Colin Watson  <cjwatson@ubuntu.com>

* util/grub-reboot.in: Make sure prev_saved_entry always gets a
non-empty value.

15 years agofix changelog dates
Colin Watson [Thu, 14 Jan 2010 14:06:36 +0000 (14:06 +0000)] 
fix changelog dates

15 years agomerge from trunk
Colin Watson [Thu, 14 Jan 2010 14:04:44 +0000 (14:04 +0000)] 
merge from trunk

15 years ago2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
BVK Chaitanya [Thu, 14 Jan 2010 13:45:21 +0000 (19:15 +0530)] 
2010-01-14  BVK Chaitanya  <bvk.groups@gmail.com>

Unit testing framework for GRUB.

* Makefile.in: Test framework build rules for 'make check'.
* conf/tests.rmk: Build rules for individual tests and framework.

* include/grub/test.h: Header file for whitebox tests.
* tests/lib/functional_test.c: Framework support for whitebox
functional tests.
* tests/lib/test.c: Common whitebox testing code for unit and
functional tests.
* tests/lib/unit_test.c: Framework support for whitebox unit
tests.

* tests/util/grub-shell-tester.in: Support utility for grub-script
tests.
* tests/util/grub-shell.in: Utility to execute grub-script
commands in a Qemu instance.

* tests/example_functional_test.c: Example whitebox functional
test.
* tests/example_grub_script_test.in: Example grub-script test.
* tests/example_scripted_test.in: Example scripted test.
* tests/example_unit_test.c: Example whitebox unit test.

15 years agomerge trunk
BVK Chaitanya [Thu, 14 Jan 2010 13:15:19 +0000 (18:45 +0530)] 
merge trunk

15 years agouse qemu-system-i386 instead of qemu
BVK Chaitanya [Thu, 14 Jan 2010 13:09:12 +0000 (18:39 +0530)] 
use qemu-system-i386 instead of qemu

15 years agoremoved unnecessary grub_test_* wrappers
BVK Chaitanya [Thu, 14 Jan 2010 11:47:51 +0000 (17:17 +0530)] 
removed unnecessary grub_test_* wrappers

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

* conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
Add loader/i386/multiboot_mbi.c.
(multiboot2_mod_SOURCES): Likewise.
* conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
(multiboot2_mod_SOURCES): Likewise.
* include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
(grub_multiboot_make_mbi): Likewise.
(grub_multiboot_free_mbi): Likewise.
(grub_multiboot_init_mbi): Likewise.
(grub_multiboot_add_module): Likewise.
(grub_multiboot_set_bootdev): Likewise.
* loader/i386/multiboot.c (mbi): Removed.
(mbi_dest): Likewise.
(alloc_mbi): New variable.
(grub_multiboot_payload_size): Removed. All users updated.
(grub_multiboot_pure_size): New variable.
(grub_multiboot_boot): Use grub_multiboot_make_mbi.
(grub_multiboot_unload): Use grub_multiboot_free_mbi.
(grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
(grub_fill_multiboot_mmap): Likewise.
(grub_multiboot_get_bootdev): Likewise.
(grub_multiboot): Use multiboot_mbi functions.
* loader/i386/multiboot_mbi.c: New file.

15 years agoMerge mainline into abstractmbi
Vladimir 'phcoder' Serbinenko [Thu, 14 Jan 2010 11:34:23 +0000 (12:34 +0100)] 
Merge mainline into abstractmbi

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

* kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
it would result in module crash.

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

* term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
(grub_ofconsole_getwh): Split to ...
(grub_ofconsole_getwh): ... this.
(grub_ofconsole_dimensions): ...and this.
(grub_ofconsole_init_output): Call grub_ofconsole_dimensions.

15 years ago2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 13 Jan 2010 19:10:57 +0000 (19:10 +0000)] 
2010-01-13  Robert Millan  <rmh.grub@aybabtu.com>

* util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.

15 years ago2010-01-12 Carles Pina i Estany <carles@pina.cat>
carles [Tue, 12 Jan 2010 20:37:45 +0000 (20:37 +0000)] 
2010-01-12  Carles Pina i Estany  <carles@pina.cat>

* Makefile.in (DUSE_ASCII_FAILBACK): New macro.

15 years agoSmall cleanup
Vladimir 'phcoder' Serbinenko [Tue, 12 Jan 2010 18:47:02 +0000 (19:47 +0100)] 
Small cleanup

15 years ago2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Tue, 12 Jan 2010 16:56:05 +0000 (17:56 +0100)] 
2010-01-12  Vladimir Serbinenko  <phcoder@gmail.com>

* loader/i386/pc/multiboot2.c: Removed stalled file.

15 years ago2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Tue, 12 Jan 2010 12:36:44 +0000 (13:36 +0100)] 
2010-01-12  Vladimir Serbinenko  <phcoder@gmail.com>

* util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
Reported by: GrĂ©goire Sutre

15 years agobuild only functional tests on make
BVK Chaitanya [Tue, 12 Jan 2010 10:19:40 +0000 (15:49 +0530)] 
build only functional tests on make

15 years agomerge trunk
BVK Chaitanya [Tue, 12 Jan 2010 05:32:49 +0000 (11:02 +0530)] 
merge trunk

15 years agoadded boot device selection to grub-shell
BVK Chaitanya [Tue, 12 Jan 2010 05:24:37 +0000 (10:54 +0530)] 
added boot device selection to grub-shell

15 years agobuild tests on make, but run on make check
BVK Chaitanya [Tue, 12 Jan 2010 04:46:17 +0000 (10:16 +0530)] 
build tests on make, but run on make check

15 years agoremoved unnecessary EXPORT_* macro usage
BVK Chaitanya [Tue, 12 Jan 2010 03:53:24 +0000 (09:23 +0530)] 
removed unnecessary EXPORT_* macro usage

15 years agofixed an error message
BVK Chaitanya [Tue, 12 Jan 2010 03:30:55 +0000 (09:00 +0530)] 
fixed an error message

15 years ago2010-01-11 Carles Pina i Estany <carles@pina.cat>
carles [Mon, 11 Jan 2010 20:43:11 +0000 (20:43 +0000)] 
2010-01-11  Carles Pina i Estany  <carles@pina.cat>

* font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
By default: disabled.
* Makefile.in (font/ascii.h): Remove the non-needed grub/bin2h size
parameter.

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

* util/misc.c (canonicalize_file_name): New function.
(make_system_path_relative_to_its_root): Use canonicalize_file_name()
instead of realpath().

15 years ago2010-01-11 Colin Watson <cjwatson@ubuntu.com>
Colin Watson [Mon, 11 Jan 2010 12:00:57 +0000 (12:00 +0000)] 
2010-01-11  Colin Watson  <cjwatson@ubuntu.com>

* util/grub-install.in (usage): Clarify meaning of --root-directory,
and make it clearer that it's optional.  Based on confusion
witnessed on IRC.

15 years ago2010-01-11 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Mon, 11 Jan 2010 10:30:47 +0000 (11:30 +0100)] 
2010-01-11  Felix Zielcke <fzielcke@z-51.de>

* po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.

15 years ago2010-01-10 Carles Pina i Estany <carles@pina.cat>
carles [Mon, 11 Jan 2010 00:10:38 +0000 (00:10 +0000)] 
2010-01-10  Carles Pina i Estany  <carles@pina.cat>

* font/font.c: Update copyright years.
* util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.

15 years ago2010-01-10 Carles Pina i Estany <carles@pina.cat>
carles [Sun, 10 Jan 2010 23:33:57 +0000 (23:33 +0000)] 
2010-01-10  Carles Pina i Estany  <carles@pina.cat>

* font/font.c: Include `ascii.h'.
(ASCII_BITMAP_SIZE): New macro.
(ascii_font_glyph): Define.
(ascii_glyph_lookup): New function.
(grub_font_get_string_width): Change comment. If glyph not found, use
ascii_glyph_lookup.
(grub_font_get_glyph_with_fallback): If glyph not available returns
ascii_glyph_lookup.
* util/grub-mkfont.c (file_formats): New enum.
(options): Add `ascii-bitmaps' new option.
(usage): Add `asii-bitmaps' new option.
(write_font_ascii_bitmap): New function.
(write_font): Rename to ...
(write_font_p2): ... this. Remove print_glyphs call.
(main): Use file_format. Implement code for ranges if ascii-bitmaps is
used. Call print_glyphs.
* Makefile.in (pkgdata_DATA): Add `font/ascii.h'.

15 years agoEliminate obnoxious length parameter
Robert Millan [Sun, 10 Jan 2010 23:03:42 +0000 (00:03 +0100)] 
Eliminate obnoxious length parameter

15 years ago2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Sun, 10 Jan 2010 22:13:53 +0000 (23:13 +0100)] 
2010-01-10  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
        (grub_bin2h_SOURCES): New variable.
        * util/bin2h.c: New file.

15 years ago2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 10 Jan 2010 21:35:46 +0000 (22:35 +0100)] 
2010-01-10  Vladimir Serbinenko  <phcoder@gmail.com>

* term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
in premature implicit newline.