]> git.proxmox.com Git - grub2.git/log
grub2.git
14 years agomerge trunk into newenv
Vladimir 'phcoder' Serbinenko [Sun, 20 Dec 2009 13:20:37 +0000 (14:20 +0100)]
merge trunk into newenv

14 years ago2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 20 Dec 2009 13:09:16 +0000 (14:09 +0100)]
2009-12-19  Vladimir Serbinenko  <phcoder@gmail.com>

* include/grub/types.h (UNUSED): Removed since it conflicts with
NetBSD headers. All users changed to direct __attribute__ ((unused)).
Reported by GrĂ©goire Sutre.

14 years agoSave 314 bytes on not handling contexts in core
Vladimir 'phcoder' Serbinenko [Sun, 20 Dec 2009 01:52:39 +0000 (02:52 +0100)]
Save 314 bytes on not handling contexts in core

14 years ago2009-12-19 Carles Pina i Estany <carles@pina.cat>
carles [Sat, 19 Dec 2009 23:00:30 +0000 (23:00 +0000)]
2009-12-19  Carles Pina i Estany  <carles@pina.cat>

* include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
(grub_print_ucs4_alloc): Likewise.
(grub_getstringwidth): Likewise.
* normal/main.c (grub_normal_init_page): Gettextize version string.
* normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
(getstringwidth): Renamed to ...
(grub_getstringwidth): ... this. Remove `static' qualifier (now used
in normal/main.c).  Use `grub_utf8_to_ucs4_alloc'.
(grub_print_ucs4): Remove `static' qualifer (now used in
normal/main.c).
* po/POTFILES: Add normal/main.c.

14 years ago2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 19 Dec 2009 20:30:00 +0000 (21:30 +0100)]
2009-12-19  Vladimir Serbinenko  <phcoder@gmail.com>

* include/grub/types.h (UNUSED): Removed since it conflicts with
NetBSD headers. All users changed to direct __attribute__ ((unused)).
Reported by GrĂ©goire Sutre.

14 years ago2009-12-19 Carles Pina i Estany <carles@pina.cat>
carles [Sat, 19 Dec 2009 00:05:41 +0000 (00:05 +0000)]
2009-12-19  Carles Pina i Estany  <carles@pina.cat>

* normal/menu_text.c (STANDARD_MARGIN): New macro.
(print_message_indented): Add `margin_left' and `margin_right'
parameters.
(print_message): Update `print_message_indented' calls. Adds '\n' to the
strings.
(print_timeout): Use `print_message_indented' to print the message.
Deletes `second_stage' parameter.
(run_menu): Update `print_timeout' calls.

14 years ago2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 16:25:06 +0000 (17:25 +0100)]
2009-12-18  Vladimir Serbinenko  <phcoder@gmail.com>

Fix console palette on OpenFirmware.

* term/ieee1275/ofconsole.c (MAX): Removed.
(colors): Redone based on VGA palette.
(grub_ofconsole_setcolor): Discard brightness bit since only 8
colors are supported.
(grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.

14 years agoChangeLog
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 16:24:12 +0000 (17:24 +0100)]
ChangeLog

14 years agomerge mainline into ofconsole
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 16:19:44 +0000 (17:19 +0100)]
merge mainline into ofconsole

14 years agoDiscard brightness bit
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 16:19:12 +0000 (17:19 +0100)]
Discard brightness bit

14 years ago2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 14:20:21 +0000 (15:20 +0100)]
2009-12-18  Vladimir Serbinenko  <phcoder@gmail.com>

Fix potential EfiEmu double prepare.

* efiemu/main.c (prepared): New variable
(grub_efiemu_unload): Set prepare to '0'.
(grub_efiemu_prepare): Return if already prepared. Set prepared.

set_virtual_address_map support.

* include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
prototype.
* include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
prototype.
(grub_efiemu_crc32): Likewise.
(grub_efiemu_crc64): Likewise.
(grub_efiemu_set_virtual_address_map): Likewise.
* include/grub/autoefi.h (grub_autoefi_exit_boot_services):
New definition.
(grub_autoefi_set_virtual_address_map): Likewise.
* kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
* loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
Restructure flow to accomodate it.
* efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
(grub_efiemu_crc): Recompute CRC32.
* efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
(efiemu_ptv_relocated): ... this. Made global. All users updated.
* efiemu/symbols.c (relocated_handle): New variable.
(grub_efiemu_free_syms): Free relocated_handle.
(grub_efiemu_alloc_syms): Allocate relocated_handle.
(grub_efiemu_write_sym_markers): New function.
(grub_efiemu_set_virtual_address_map): Likewise.

Newer XNU parameters.

* include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
* include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
(grub_xnu_fill_devicetree): New prototype.
(grub_xnu_heap_real_start): New variable.
* loader/xnu.c (get_name_ptr): New function.
(grub_xnu_load_driver): Fill namelen and name.

64-bit xnu support.

* conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
and 'loader/macho64.c'.
* conf/i386-pc.rmk: Likewise.
* conf/x86_64-efi.rmk: Likewise.
* include/grub/i386/macho.h (grub_macho_thread64): New structure.
* include/grub/xnu.h (grub_xnu_is_64bit): New variable.
* include/grub/macho.h (grub_macho_segment64): New structure.
* include/grub/machoload.h (grub_macho32_size): Renamed from ...
(grub_macho_size32): ... to this.
(grub_macho32_get_entry_point): Renamed from ...
(grub_macho_get_entry_point32): ... to this.
(grub_macho_contains_macho64): New prototype.
(grub_macho_size64): Likewise.
(grub_macho_get_entry_point64): Likewise.
(grub_macho32_load): Renamed from ...
(grub_macho_load32): ... to this.
(grub_macho32_filesize): Renamed from ...
(grub_macho_filesize32): ... to this.
(grub_macho32_readfile): Renamed from ...
(grub_macho_readfile32): ... to this.
(grub_macho_filesize64): New prototype.
(grub_macho_readfile64): Likewise.
(grub_macho_parse32): Likewise.
(grub_macho_parse64): Likewise.
* loader/macho.c: Split into ...
* loader/machoXX.c: ... and this. Replace 32 with XX.
* loader/macho32.c: New file.
* loader/macho64.c: Likewise.
* loader/xnu.c (grub_xnu_is_64bit): New variable.
(grub_cmd_xnu_kernel): Make 32-bit only.
(grub_cmd_xnu_kernel64): New function.
(grub_xnu_load_driver): Support Mach-O 64.
(grub_cmd_xnu_mkext): Likewise.
* util/grub.d/30_os-prober.in (osx_entry): New function.
Generate entries for 64-bit boot too.

Eliminate ad-hoc tree format in XNU and EfiEmu.

* efiemu/main.c (grub_efiemu_prepare): Update comment.
* efiemu/pnvram.c: Rewritten to use environment variables.
All users updated.

Inline utf16_to_utf8.

* kern/misc.c (grub_utf16_to_utf8): Move from here ...
* include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
All users updated.
* include/grub/misc.h (grub_utf16_to_utf8): Removed.

* bus/usb/usb.c (grub_usb_get_string): Move from here ...
* commands/usbtest.c (grub_usb_get_string): ... move here.
(usb_print_str): Fix error handling.
* include/grub/usb.h (grub_usb_get_string): Remove.

UTF-8 to UTF-16 transformation.

* conf/common.rmk (pkglib_MODULES): Add charset.mod
(charset_mod_SOURCES): New variable.
(charset_mod_CFLAGS): Likewise.
(charset_mod_LDFLAGS): Likewise.
* include/grub/utf.h: New file.
* lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)

Support for device properties.

* include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
(grub_xnu_devprop_device_header): Likewise.
(grub_xnu_devprop_device_descriptor): Likewise.
(grub_xnu_devprop_add_device): New prototype.
(grub_xnu_devprop_remove_device): Likewise.
(grub_xnu_devprop_remove_property): Likewise.
(grub_xnu_devprop_add_property_utf8): Likewise.
(grub_xnu_devprop_add_property_utf16): Likewise.
(grub_cpu_xnu_init): Likewise.
(grub_cpu_xnu_fini): Likewise.
(grub_cpu_xnu_unload): Likewise.
* loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
(property_descriptor): Likewise.
(devices): New variable.
(grub_xnu_devprop_remove_property): New function.
(grub_xnu_devprop_add_device): Likewise.
(grub_xnu_devprop_remove_device): Likewise.
(grub_xnu_devprop_add_property): Likewise.
(grub_xnu_devprop_add_property_utf8): Likewise.
(grub_xnu_devprop_add_property_utf16): Likewise.
(hextoval): Likewise.
(grub_cpu_xnu_fill_devprop): Likewise.
(grub_cmd_devprop_load): Likewise.
(grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
(cmd_devprop_load): New variable.
(grub_cpu_xnu_init): New function.
(grub_cpu_xnu_fini): Likewise.
* loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
* loader/xnu.c (grub_xnu_parse_devtree): Remove.
(grub_cmd_xnu_devtree): Likewise.
(hextoval): New function.
(unescape): Likewise.
(grub_xnu_fill_devicetree): Likewise.

* util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
* util/i386/efi/grub-dumpdevtree: Generate devprop.bin.

14 years agoChangeLog
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 03:58:00 +0000 (04:58 +0100)]
ChangeLog

14 years agoReimpliment grub-dumpdevtree
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 03:57:29 +0000 (04:57 +0100)]
Reimpliment grub-dumpdevtree

14 years agoEliminate empty line
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 03:56:55 +0000 (04:56 +0100)]
Eliminate empty line

14 years agoRemove unwantred commits
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 03:56:03 +0000 (04:56 +0100)]
Remove unwantred commits

14 years agomerge mtrunk into xnu
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 02:57:32 +0000 (03:57 +0100)]
merge mtrunk into xnu

14 years ago30_os-prober update
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 02:33:24 +0000 (03:33 +0100)]
30_os-prober update

14 years ago2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 01:35:15 +0000 (02:35 +0100)]
2009-12-18  Vladimir Serbinenko  <phcoder@gmail.com>

Workaround for broken ATI VBE.

* video/i386/pc/vbe.c (last_set_mode): New variable.
(grub_vbe_set_video_mode): Set 'last_set_mode'.
(grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
(grub_video_vbe_setup): Don't check for reserved flag.

14 years agoChangelog
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 01:21:37 +0000 (02:21 +0100)]
Changelog

14 years agocleaned ATI fixes
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 01:11:26 +0000 (02:11 +0100)]
cleaned ATI fixes

14 years agoMerge trunk into ati
Vladimir 'phcoder' Serbinenko [Fri, 18 Dec 2009 01:04:10 +0000 (02:04 +0100)]
Merge trunk into ati

14 years ago2009-12-17 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Thu, 17 Dec 2009 10:19:12 +0000 (11:19 +0100)]
2009-12-17 Felix Zielcke <fzielcke@z-51.de>

* gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
the `find' command.

14 years agominimalising ATI impact
Vladimir 'phcoder' Serbinenko [Wed, 16 Dec 2009 15:53:01 +0000 (16:53 +0100)]
minimalising ATI impact

14 years ago2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 16 Dec 2009 14:40:31 +0000 (15:40 +0100)]
2009-12-16  Vladimir Serbinenko  <phcoder@gmail.com>

UUID support for HFS.

* fs/hfs.c (grub_hfs_uuid): New function.
(grub_hfs_fs): New value .uuid.
* include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.

14 years agofix ofconsole palette
Vladimir 'phcoder' Serbinenko [Tue, 15 Dec 2009 18:57:23 +0000 (19:57 +0100)]
fix ofconsole palette

14 years agoone more possible fix
Vladimir 'phcoder' Serbinenko [Mon, 14 Dec 2009 17:16:32 +0000 (18:16 +0100)]
one more possible fix

14 years ago2009-12-14 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Mon, 14 Dec 2009 10:06:24 +0000 (11:06 +0100)]
2009-12-14 Felix Zielcke <fzielcke@z-51.de>

Fix a segfault with parsing unknown long options.

* util/grub-mkrelpath.c (options): Zero terminate it.

14 years ago2009-12-13 Carles Pina i Estany <carles@pina.cat>
Carles Pina i Estany [Sun, 13 Dec 2009 19:51:08 +0000 (19:51 +0000)]
2009-12-13  Carles Pina i Estany  <carles@pina.cat>

* include/grub/misc.h (grub_puts): New declaration.
(grub_puts_): Likewise.
* kern/mis.c (grub_puts): New definition.
(grub_puts_): Likewise.

14 years ago2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Sun, 13 Dec 2009 19:46:59 +0000 (19:46 +0000)]
2009-12-13  Robert Millan  <rmh.grub@aybabtu.com>

        * util/grub-probe.c (probe): Improve error message.

14 years agoMerge relocator branch
Robert Millan [Sun, 13 Dec 2009 18:37:44 +0000 (18:37 +0000)]
Merge relocator branch

14 years ago2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Sun, 13 Dec 2009 18:29:15 +0000 (18:29 +0000)]
2009-12-13  Robert Millan  <rmh.grub@aybabtu.com>

        * loader/i386/multiboot_elfxx.c
        (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
        initialization.

14 years ago2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sun, 13 Dec 2009 17:32:06 +0000 (18:32 +0100)]
2009-12-13  Vladimir Serbinenko  <phcoder@gmail.com>

* kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
anything.

14 years agolegacy-like stack handling
Vladimir 'phcoder' Serbinenko [Sun, 13 Dec 2009 17:10:53 +0000 (18:10 +0100)]
legacy-like stack handling

14 years agoFix XNU resume.
Vladimir 'phcoder' Serbinenko [Sun, 13 Dec 2009 17:07:01 +0000 (18:07 +0100)]
Fix XNU resume.

14 years agoCleanup address expressions for readability and using only unsigned arithmetics
Vladimir 'phcoder' Serbinenko [Sun, 13 Dec 2009 17:03:46 +0000 (18:03 +0100)]
Cleanup address expressions for readability and using only unsigned arithmetics

14 years ago2009-12-13 Carles Pina i Estany <carles@pina.cat>
Carles Pina i Estany [Sun, 13 Dec 2009 12:35:20 +0000 (12:35 +0000)]
2009-12-13  Carles Pina i Estany  <carles@pina.cat>

* script/execute.c (grub_script_execute_cmdline): Set grub_errno to
GRUB_ERR_NONE before calling grub_env_set.

14 years ago2009-12-12 Robert Millan <rmh@aybabtu.com>
Robert Millan [Sat, 12 Dec 2009 00:43:32 +0000 (00:43 +0000)]
2009-12-12  Robert Millan  <rmh@aybabtu.com>

        * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
        * genmk.rb (video): New variable.
        (CLEANFILES, VIDEOFILES): Add #{video}.
        (#{video}): New target rule.
        * genvideolist.sh: New file.
        * Makefile.in (pkglib_DATA): Add video.lst.
        (video.lst): New target rule.
        * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
        `video.lst'.
        * util/grub.d/30_os-prober.in: Replace `vbe' with
        ${GRUB_VIDEO_BACKEND}.

14 years agoMerge from trunk
Robert Millan [Fri, 11 Dec 2009 23:11:58 +0000 (23:11 +0000)]
Merge from trunk

14 years agoIndentation fix & missing copyright year.
Robert Millan [Fri, 11 Dec 2009 23:10:57 +0000 (23:10 +0000)]
Indentation fix & missing copyright year.

14 years ago2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Fri, 11 Dec 2009 22:44:47 +0000 (22:44 +0000)]
2009-12-11  Robert Millan  <rmh.grub@aybabtu.com>

        * THANKS: Add David Miller.

14 years agoMerge from trunk
Robert Millan [Fri, 11 Dec 2009 21:20:00 +0000 (21:20 +0000)]
Merge from trunk

14 years agoMerge pciaccess branch
Robert Millan [Fri, 11 Dec 2009 21:12:57 +0000 (21:12 +0000)]
Merge pciaccess branch

14 years ago2009-12-11 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Fri, 11 Dec 2009 10:11:34 +0000 (11:11 +0100)]
2009-12-11 Felix Zielcke <fzielcke@z-51.de>

* util/misc.c: Don't include <errno.h> twice.

14 years ago2009-12-10 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Thu, 10 Dec 2009 18:15:20 +0000 (19:15 +0100)]
2009-12-10 Felix Zielcke <fzielcke@z-51.de>

* disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
name in an error message.
(grub_biosdisk_rw): Likewise.

14 years ago2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 10 Dec 2009 13:45:00 +0000 (14:45 +0100)]
2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>

Eliminate NTFS 4Gib barrier.

* fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
(read_run_data): Likewise.
(grub_ntfs_read_run_list): Likewise.
(grub_ntfs_read_block): Likewise.
(grub_ntfs_iterate_dir): Likewise.
(read_mft): Likewise.
(read_data): Likewise.
Use COM_LOG_LEN.
* fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
to avoid 64-bit division
* include/grub/ntfs.h (COM_LOG_LEN): New definition.
(grub_ntfs_rlst): Use grub_disk_addr_t.

14 years ago2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 10 Dec 2009 13:39:54 +0000 (14:39 +0100)]
2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>

Eliminate grub-fstest 4Gib barrier.

* util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
(read_file): Fix error reporting.

14 years ago2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 10 Dec 2009 13:37:42 +0000 (14:37 +0100)]
2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>

Eliminate hexdump 4Gib barrier.

* commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
* lib/arg.c (grub_arg_parse): Use grub_strtoull.

14 years ago2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Thu, 10 Dec 2009 12:26:22 +0000 (13:26 +0100)]
2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>

* kern/device.c (grub_device_iterate): Ignore errors during first scan.
Fixes amarsh bug.

14 years ago2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
Robert Millan [Wed, 9 Dec 2009 21:43:05 +0000 (21:43 +0000)]
2009-12-09  Bruce Dubbs  <bruce.dubbs@gmail.com>

        Remove miscellaneous files in distclean target.

        * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}

14 years ago2009-12-09 Colin Watson <cjwatson@ubuntu.com>
Colin Watson [Wed, 9 Dec 2009 16:20:17 +0000 (16:20 +0000)]
2009-12-09  Colin Watson  <cjwatson@ubuntu.com>

* util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
if they're already set.  This resolves the conflict between my
grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
fixing the --grub-probe option again.
* util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
change on 2009-10-06, so that we now once again source
`${libdir}/grub/grub-mkconfig_lib' after options have been parsed.

14 years ago2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Tue, 8 Dec 2009 16:00:52 +0000 (16:00 +0000)]
2009-12-08  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
        `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
        `util/devicemap.c'.

14 years ago2009-12-08 Carles Pina i Estany <carles@pina.cat>
Carles Pina i Estany [Tue, 8 Dec 2009 00:08:52 +0000 (00:08 +0000)]
2009-12-08  Carles Pina i Estany  <carles@pina.cat>

* include/grub/misc.h (grub_printf_): New declaration.
* kern/misc.c (grub_printf_): New definition.
* normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
instead of `grub_printf' and `_'.
* normal/menu_entry.c (store_completion): Likewise.
(run): Likewise.
(grub_menu_entry_run): Likewise.
* normal/menu_text.c (grub_wait_after_message): Likewise.
(notify_booting): Likewise.
(notify_fallback): Likewise.
(notify_execution_failure): Likewise.

14 years ago2009-12-07 Colin Watson <cjwatson@ubuntu.com>
Colin Watson [Mon, 7 Dec 2009 16:46:24 +0000 (16:46 +0000)]
2009-12-07  Colin Watson  <cjwatson@ubuntu.com>

* configure.ac: Check for vasprintf.
* util/misc.c (asprintf): Move allocation from here ...
(vasprintf): ... to here.  New function.
(xasprintf): New function.
* include/grub/util/misc.h (vasprintf, xasprintf): Add
prototypes.
* util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
* util/grub-mkfont.c (write_font): Likewise.
* util/grub-probe.c (probe): Likewise.
* util/hostdisk.c (make_device_name): Likewise.

14 years ago2009-12-06 David S. Miller <davem@sunset.davemloft.net>
David S. Miller [Mon, 7 Dec 2009 10:54:25 +0000 (11:54 +0100)]
2009-12-06  David S. Miller  <davem@sunset.davemloft.net>

* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
anything even prefixed with 'cdrom' as a cdrom.

14 years ago2009-12-06 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Sun, 6 Dec 2009 09:20:01 +0000 (10:20 +0100)]
2009-12-06 Felix Zielcke <fzielcke@z-51.de>

* util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
mount points.

14 years ago2009-12-05 Carles Pina i Estany <carles@pina.cat>
Carles Pina i Estany [Sat, 5 Dec 2009 19:03:27 +0000 (19:03 +0000)]
2009-12-05  Carles Pina i Estany <carles@pina.cat>

* gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
grub_gettext_msg_list.
(grub_gettext_gettranslation_from_position): Return const char *
and not char *.
(grub_gettext_translate): Add the translated strings into a list,
returns from the list if existing there.
(grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
(grub_gettext_delete_list): Delete the list.
(grub_gettext_env_write_lang): Call grub_gettext_delete_list when
lang environment variable is changed.
(GRUB_MOD_FINI): Call grub_gettext_delete_list.

14 years ago2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 5 Dec 2009 16:10:36 +0000 (17:10 +0100)]
2009-12-05  Vladimir Serbinenko  <phcoder@gmail.com>

Rename kernel.mod to kernel.img.

* conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
(kernel_mod_EXPORTS): Rename to ...
(kernel_img_EXPORTS): ... this.
(kernel_mod_SOURCES): Rename to ...
(kernel_img_SOURCES): ... this.
(kernel_mod_HEADERS): Rename to ...
(kernel_img_HEADERS): ... this. All users updated.
(kernel_mod_CFLAGS): Rename to ...
(kernel_img_CFLAGS): ... this.
(kernel_mod_ASFLAGS): Rename to ...
(kernel_img_ASFLAGS): ... this.
(kernel_mod_LDFLAGS): Rename to ...
(kernel_img_LDFLAGS): ... this.
* conf/x86_64-efi.rmk: Likewise.
* util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
(read_kernel_image): ... this. All users updated.
(read_kernel_image): Read "kernel.img" instead of "kernel.mod".

14 years ago2009-12-05 Carles Pina i Estany <carles@pina.cat>
Carles Pina i Estany [Sat, 5 Dec 2009 11:25:07 +0000 (11:25 +0000)]
2009-12-05  Carles Pina i Estany  <carles@pina.cat>

* normal/menu_text.c (grub_color_menu_high): Gettexttize string.
(print_spaces): New function.
(grub_print_ucs4): New function.
(getstringwidth): New function.
(print_message_indented): New function.
(print_message): Gettexttize strings using print_message_indented.
(run_menu): Replaces grub_printf by print_spaces and dynamic terminal
width.
(get_entry_number): Gettextize and uses dynamic terminal width.
(notify_booting, notify_fallback, notify_execution_failure):
Gettextize.
* normal/menu_entry.c (store_completion): Cleanup the gettextized
string.
(run): Likewise.
(grub_menu_entry_run): Likewise.
* PO/POTFILES: Add normal/menu_entry.c.

14 years agoIgnore some VBE info
Vladimir 'phcoder' Serbinenko [Sat, 5 Dec 2009 10:29:47 +0000 (11:29 +0100)]
Ignore some VBE info

14 years ago2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 5 Dec 2009 10:08:26 +0000 (11:08 +0100)]
2009-12-05  Vladimir Serbinenko  <phcoder@gmail.com>

* configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".

14 years ago2009-12-05 Carles Pina i Estany <carles@pina.cat>
Carles Pina i Estany [Sat, 5 Dec 2009 09:31:36 +0000 (09:31 +0000)]
2009-12-05  Carles Pina i Estany  <carles@pina.cat>

* util/grub-install.in: Install gettext .mo files.
* util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.

14 years ago2009-12-05 Carles Pina i Estany <carles@pina.cat>
Carles Pina i Estany [Sat, 5 Dec 2009 09:25:46 +0000 (09:25 +0000)]
2009-12-05  Carles Pina i Estany  <carles@pina.cat>

* gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
grub_dprintf.

14 years ago2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Sat, 5 Dec 2009 01:43:17 +0000 (01:43 +0000)]
2009-12-05  Robert Millan  <rmh.grub@aybabtu.com>

        * kern/ieee1275/openfw.c (grub_reboot): Disable for i386.  The
        non-firmware-dependant one in realmode.S takes precedence.

14 years ago2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Thu, 3 Dec 2009 23:07:29 +0000 (23:07 +0000)]
2009-12-04  Robert Millan  <rmh.grub@aybabtu.com>

        * commands/halt.c: Replace misc arch-specific headers with
        `<grub/misc.h>'.
        * commands/reboot.c: Likewise.
        * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
        `<grub/misc.h>'.
        * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
        (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
        (kernel_img_SOURCES): ... to here.

        * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
        * include/grub/i386/pc/init.h: Likewise.
        * include/grub/powerpc/ieee1275/kernel.h: Likewise.
        * include/grub/sparc64/ieee1275/kernel.h: Likewise.

        * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.

        * include/grub/i386/halt.h: Remove.
        * include/grub/i386/reboot.h: Likewise.

        * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.

14 years agoFix compilation issue for ppc
Vladimir 'phcoder' Serbinenko [Thu, 3 Dec 2009 21:45:41 +0000 (22:45 +0100)]
Fix compilation issue for ppc

14 years ago2009-12-03 David S. Miller <davem@sunset.davemloft.net>
David S. Miller [Thu, 3 Dec 2009 11:18:56 +0000 (12:18 +0100)]
2009-12-03  David S. Miller  <davem@sunset.davemloft.net>

* conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
* util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
"progname.h"
* util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
* util/sparc64/ieee1275/grub-setup.c: Likewise.
(usage): Add missing comma in printf.

14 years ago2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Wed, 2 Dec 2009 22:48:02 +0000 (22:48 +0000)]
2009-12-02  Robert Millan  <rmh.grub@aybabtu.com>

        Use the same reboot approach on i386 coreboot and qemu as we do on
        BIOS.

        * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
        (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
        * kern/i386/reboot.c: Remove.
        * include/grub/i386/reboot.h (grub_reboot): Export function.
        * kern/i386/pc/startup.S (grub_reboot): Move from here ...
        * kern/i386/realmode.S (grub_reboot): ... to here.  Jump to
        0xf000:0xfff0 instead of 0xffff:0x0000.
        [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
        * kern/i386/qemu/startup.S: Include `"../realmode.S"'.

14 years ago2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Wed, 2 Dec 2009 16:13:45 +0000 (17:13 +0100)]
2009-12-02  Vladimir Serbinenko  <phcoder@gmail.com>

Rename kernel.mod to kernel.img.

* conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
(kernel_mod_EXPORTS): Rename to ...
(kernel_img_EXPORTS): ... this.
(kernel_mod_SOURCES): Rename to ...
(kernel_img_SOURCES): ... this.
(kernel_mod_HEADERS): Rename to ...
(kernel_img_HEADERS): ... this. All users updated.
(kernel_mod_CFLAGS): Rename to ...
(kernel_img_CFLAGS): ... this.
(kernel_mod_ASFLAGS): Rename to ...
(kernel_img_ASFLAGS): ... this.
(kernel_mod_LDFLAGS): Rename to ...
(kernel_img_LDFLAGS): ... this.
* conf/x86_64-efi.rmk: Likewise.
* util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
(read_kernel_image): ... this. All users updated.
(read_kernel_image): Read "kernel.img" instead of "kernel.mod".

14 years agoChangeLog
Vladimir 'phcoder' Serbinenko [Wed, 2 Dec 2009 08:03:51 +0000 (09:03 +0100)]
ChangeLog

14 years agoMerge mainline into pci
Vladimir 'phcoder' Serbinenko [Wed, 2 Dec 2009 07:51:42 +0000 (08:51 +0100)]
Merge mainline into pci

14 years agoMerged mainline into pci
Vladimir 'phcoder' Serbinenko [Mon, 30 Nov 2009 18:09:11 +0000 (19:09 +0100)]
Merged mainline into pci

14 years agomerged mainline into pci
Vladimir 'phcoder' Serbinenko [Mon, 30 Nov 2009 15:39:59 +0000 (16:39 +0100)]
merged mainline into pci

14 years ago2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Mon, 30 Nov 2009 01:25:57 +0000 (01:25 +0000)]
2009-11-30  Robert Millan  <rmh.grub@aybabtu.com>

        Fix $srcdir != $objdir build.

        * Makefile.in (po/%.po):  Rewrite as ...
        ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.

14 years ago2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Sun, 29 Nov 2009 11:40:32 +0000 (12:40 +0100)]
2009-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>

Fix GNU/Hurd grub-install crash.
* util/grub-probe.c (probe): Try to access `path' only when it is not
NULL.

14 years ago2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Sat, 28 Nov 2009 19:40:44 +0000 (20:40 +0100)]
2009-11-28  Vladimir Serbinenko  <phcoder@gmail.com>

Correct module naming.

* video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
(GRUB_MOD_INIT(efi_uga)): ... to this
(GRUB_MOD_FINI(efi_fb)): Renamed from this ...
(GRUB_MOD_FINI(efi_uga)): ... to this
* video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
(GRUB_MOD_INIT(efi_gop)): ... to this
(GRUB_MOD_FINI(efi_fb)): Renamed from this ...
(GRUB_MOD_FINI(efi_gop)): ... to this

14 years ago2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Sat, 28 Nov 2009 19:31:30 +0000 (19:31 +0000)]
2009-11-28  Robert Millan  <rmh.grub@aybabtu.com>

        * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
        translatable.
        (usage): Translate `arg' strings using gettext().
        Thanks to Jordi Mallach for the suggestion.

14 years agoChangeLog
Vladimir 'phcoder' Serbinenko [Sat, 28 Nov 2009 13:15:53 +0000 (14:15 +0100)]
ChangeLog

14 years agoFix declarations of previous commit
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 23:46:09 +0000 (00:46 +0100)]
Fix declarations of previous commit

14 years ago2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 23:24:57 +0000 (00:24 +0100)]
2009-11-28  Vladimir Serbinenko  <phcoder@gmail.com>

GOP support. Based on patch from Bean
(http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)

* video/efi_gop.c: New file.
* include/grub/efi/graphics_output.h: Likewise.
* conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
(efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
variables.
* conf/x86_64-efi.rmk: Likewise.

14 years agoGOP support
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 23:15:04 +0000 (00:15 +0100)]
GOP support
Also-By: Bean Lee <>
14 years ago2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 23:13:51 +0000 (00:13 +0100)]
2009-11-28  Vladimir Serbinenko  <phcoder@gmail.com>

Rename efi_fb to efi_uga.

* conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
'efi_uga.mod'.
(efi_fb_mod_SOURCES): Rename this ...
(efi_uga_mod_SOURCES): ... to this.
(efi_fb_mod_CFLAGS): Rename this ...
(efi_uga_mod_CFLAGS): ... to this.
(efi_fb_mod_LDFLAGS): Rename this ...
(efi_uga_mod_LDFLAGS): ... to this.
* conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
'efi_uga.mod'.
(efi_fb_mod_SOURCES): Rename this ...
(efi_uga_mod_SOURCES): ... to this.
(efi_fb_mod_CFLAGS): Rename this ...
(efi_uga_mod_CFLAGS): ... to this.
(efi_fb_mod_LDFLAGS): Rename this ...
(efi_uga_mod_LDFLAGS): ... to this.
* video/efi_fb.c: Move this ...
* video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.

14 years agofinish renaiming efi_Fb to efi_uga
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 22:48:20 +0000 (23:48 +0100)]
finish renaiming efi_Fb to efi_uga

14 years ago2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Fri, 27 Nov 2009 17:33:35 +0000 (17:33 +0000)]
2009-11-27  Robert Millan  <rmh.grub@aybabtu.com>

        * po/README: New file.  Explain our PO file workflow.

14 years ago2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Fri, 27 Nov 2009 17:11:38 +0000 (17:11 +0000)]
2009-11-27  Robert Millan  <rmh.grub@aybabtu.com>

        * po/ChangeLog: Remove.  Move relevant entries back to ...
        * ChangeLog: ... here.
        * po/ca.po: Remove (now handled by TLP).
        * po/id.po: Likewise.
        * po/zh_CN.po: Likewise.
        * Makefile.in (LINGUAS): Initialize in a way that supports
        empty set.

14 years ago2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Fri, 27 Nov 2009 16:46:00 +0000 (16:46 +0000)]
2009-11-27  Robert Millan  <rmh.grub@aybabtu.com>

        * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
        reliing on po/LINGUAS.
        ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
        (po/%.po): ... this.

14 years agoRename efi_fb to efi_uga
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 15:33:22 +0000 (16:33 +0100)]
Rename efi_fb to efi_uga

14 years agoFix compilation on x86_64-efi
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 09:57:52 +0000 (10:57 +0100)]
Fix compilation on x86_64-efi

14 years agoPorted XNU to relocator framework
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 09:17:49 +0000 (10:17 +0100)]
Ported XNU to relocator framework

14 years agoMerged relocators in xnu-reloc
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 08:43:16 +0000 (09:43 +0100)]
Merged relocators in xnu-reloc

14 years agoPorted xnu to relocator framework
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 08:42:50 +0000 (09:42 +0100)]
Ported xnu to relocator framework

14 years agoAdd support for realloc (NULL, size) in relocators
Vladimir 'phcoder' Serbinenko [Fri, 27 Nov 2009 08:41:24 +0000 (09:41 +0100)]
Add support for realloc (NULL, size) in relocators

14 years agoFixes for backwards relocator
Vladimir 'phcoder' Serbinenko [Thu, 26 Nov 2009 21:51:00 +0000 (22:51 +0100)]
Fixes for backwards relocator

14 years agoImproved cache handling in mips
Vladimir 'phcoder' Serbinenko [Thu, 26 Nov 2009 21:20:06 +0000 (22:20 +0100)]
Improved cache handling in mips

14 years agoFix warning on some build systems
Vladimir 'phcoder' Serbinenko [Thu, 26 Nov 2009 21:19:37 +0000 (22:19 +0100)]
Fix warning on some build systems

14 years ago2009-11-26 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Thu, 26 Nov 2009 16:15:16 +0000 (17:15 +0100)]
2009-11-26 Felix Zielcke <fzielcke@z-51.de>

* util/i386/efi/grub-mkimage.c: Include "progname.h".
(main): Use `program_name' instead of nonexistent `progname'.

14 years agoPrevent relocator of overwriting itself
Vladimir 'phcoder' Serbinenko [Thu, 26 Nov 2009 15:52:10 +0000 (16:52 +0100)]
Prevent relocator of overwriting itself

14 years agoFix wrong segment selector
Vladimir 'phcoder' Serbinenko [Thu, 26 Nov 2009 15:50:56 +0000 (16:50 +0100)]
Fix wrong segment selector

14 years ago2009-11-26 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Thu, 26 Nov 2009 15:29:06 +0000 (16:29 +0100)]
2009-11-26  Felix Zielcke  <fzielcke@z-51.de>

* conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
* conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.

14 years ago2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
Robert Millan [Thu, 26 Nov 2009 00:45:53 +0000 (00:45 +0000)]
2009-11-26  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
        commit.
        * conf/i386-efi.rmk: Likewise.
        * conf/i386-ieee1275.rmk: Likewise.
        * conf/powerpc-ieee1275.rmk: Likewise.
        * conf/sparc64-ieee1275.rmk: Likewise.
        * conf/x86_64-efi.rmk: Likewise.

14 years ago2009-11-26 Felix Zielcke <fzielcke@z-51.de>
Felix Zielcke [Thu, 26 Nov 2009 00:08:42 +0000 (01:08 +0100)]
2009-11-26  Felix Zielcke  <fzielcke@z-51.de>

* conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.