]> git.proxmox.com Git - grub2.git/log
grub2.git
12 years ago * grub-core/Makefile.core.def (lzma_decompress): Use
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 15:28:26 +0000 (16:28 +0100)]
* grub-core/Makefile.core.def (lzma_decompress): Use
TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.

12 years ago * grub-core/genmod.sh.in: Rewrite the Apple part.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 15:00:27 +0000 (16:00 +0100)]
* grub-core/genmod.sh.in: Rewrite the Apple part.

12 years ago * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:48:57 +0000 (15:48 +0100)]
* grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
comparison.

12 years ago * acinclude.m4 (grub_CHECK_PIC): New test.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:30:11 +0000 (15:30 +0100)]
* acinclude.m4 (grub_CHECK_PIC): New test.
* configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.

12 years ago * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:28:02 +0000 (15:28 +0100)]
* include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
to avoid the warning.

12 years ago * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:26:42 +0000 (15:26 +0100)]
* grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
(LOCAL(firstlist)): ... this. Move it before the firstlist and not
after. All users updated.

12 years ago Use the common size routine in hostfs so we can read disks as well.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:23:31 +0000 (15:23 +0100)]
Use the common size routine in hostfs so we can read disks as well.

* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
(grub_util_get_fd_size): ... this. Return size in bytes.
All users updated.
* grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
grub_util_get_fd_size.

12 years ago * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:17:59 +0000 (15:17 +0100)]
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
Add blocksize retrieval.

12 years ago * configure.ac: Restore CFLAGS after efiemu check.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:12:31 +0000 (15:12 +0100)]
* configure.ac: Restore CFLAGS after efiemu check.

12 years ago * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:10:13 +0000 (15:10 +0100)]
* configure.ac: Move -fnested-functions to CPPFLAGS to workaround
Apple bug.

12 years ago * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:08:08 +0000 (15:08 +0100)]
* grub-core/Makefile.am (MACHO2IMG): Add missing variable.

12 years ago * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:06:39 +0000 (15:06 +0100)]
* grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
(grub_cmd_halt): Likewise.

12 years ago * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:00:54 +0000 (15:00 +0100)]
* grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
for local arithmetics.
Break %sp init into 2 instructions.
Add 0 byte at the end.

12 years ago * grub-core/disk/diskfilter.c (read_segment): Initialise err
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:57:59 +0000 (14:57 +0100)]
* grub-core/disk/diskfilter.c (read_segment): Initialise err
before loops.

12 years ago * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:56:51 +0000 (14:56 +0100)]
* grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
for context.

12 years ago * grub-core/disk/ldm.c (make_vg): Init part.name.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:55:09 +0000 (14:55 +0100)]
* grub-core/disk/ldm.c (make_vg): Init part.name.
(grub_ldm_detect): Silence spurious warning.
(grub_util_is_ldm): Likewise.

12 years ago * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:53:41 +0000 (14:53 +0100)]
* grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
sane value to avoid a spurious warning.

12 years ago * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:51:09 +0000 (14:51 +0100)]
* include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
(GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.

12 years ago * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:48:58 +0000 (14:48 +0100)]
* include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
* grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.

12 years ago * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:44:52 +0000 (14:44 +0100)]
* grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
hardcoding the relevant info.

12 years ago * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:42:20 +0000 (14:42 +0100)]
* grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
missing const qualifiers.
* grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.

12 years ago * util/getroot.c [__APPLE__]: Add missing includes.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:14:08 +0000 (14:14 +0100)]
* util/getroot.c [__APPLE__]: Add missing includes.
(grub_util_biosdisk_is_floppy): Fix usage of undefined variable.

12 years ago * util/grub-mkimage.c (generate_image): Silence spurious warning.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:12:41 +0000 (14:12 +0100)]
* util/grub-mkimage.c (generate_image): Silence spurious warning.

12 years ago * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:10:04 +0000 (14:10 +0100)]
* util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
avoid conflicts.

12 years ago * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:08:58 +0000 (14:08 +0100)]
* util/ieee1275/grub-ofpathname.c: Add missing config.h include.

12 years ago * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:07:53 +0000 (14:07 +0100)]
* util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
and grub_file_close call.

12 years ago Add LZSS Mach-O support (needed for new xnu kernelcache).
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 12:26:13 +0000 (13:26 +0100)]
Add LZSS Mach-O support (needed for new xnu kernelcache).

* grub-core/Makefile.core.def (xnu): Add file lzss.c
* grub-core/loader/lzss.c: New file.
* grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
on Mach-O open failure.
* grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
Don't free cmdsXX in uncompressedXX is set.
(grub_macho_file): Init new fields.
New argument is_64bit. All users updated.
Handle compressed. Error out if no suitable architecture is found.
Don't close file.
(grub_macho_open): New argument is_64bit. All users updated.
* grub-core/loader/macho32.c: Add defines for new fields.
* grub-core/loader/macho64.c: Likewise.
* grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
(grub_macho_parse): Handle compressed.
Defer actual processing if compressed.
(grub_macho_cmds_iterate): Decompress if compressed. New argument
"filename". All users updated.
(grub_macho_size): New argument "filename". All users updated.
(grub_macho_get_entry_point): Likewise.
(grub_macho_load): Handle compressed.
* include/grub/macho.h (grub_macho_lzss_header): New struct.
(GRUB_MACHO_LZSS_OFFSET): New define.
(grub_decompress_lzss): New proto.
* include/grub/machoload.h (grub_macho_file): New fields to handle
compressed.
(grub_macho_contains_macho64): Remove proto.
(grub_macho_contains_macho32): Likewise.
* util/grub.d/30_os-prober.in: Use kernel cache if available.

12 years ago * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 11:45:32 +0000 (12:45 +0100)]
* grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.

12 years ago Fix make dist.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 11:58:57 +0000 (12:58 +0100)]
Fix make dist.

* Makefile.am (starfield_theme_files): New var.
(starfield_DATA): Use starfield_theme_files.
(EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
Add bootcheck-related files.
* conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
* docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
and font_char_metrics.txt.
* grub-core/Makefile.core.def (kernel): Update extra_dist.
(setjmp): Add lib/ia64/longjmp.S.
* po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
* po/POTFILES.in: Regenerate.
* po/Rules-swiss: use DISTFILES.common.extra2 and not
DISTFILES.common.extra1.
* util/devicemap.c: Removed.
* grub-core/lib/i386/relocator_backward.S: Likewise.
* util/import_gcry.py: Remove unused files. Add extra_dist for
ChangeLog.

12 years ago * grub-core/gettext/gettext.c (grub_mofile_open): Call
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 10:50:53 +0000 (11:50 +0100)]
* grub-core/gettext/gettext.c (grub_mofile_open): Call
grub_gettext_delete_list before changing grub_gettext_max to avoid
running out of array bounds.

12 years ago * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 10:12:32 +0000 (11:12 +0100)]
* grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
grub_vga_text_init/grub_vga_text_fini.

12 years ago * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 10:02:19 +0000 (11:02 +0100)]
* grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.

12 years ago * configure.ac: Bump to 2.00~beta0.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 03:28:40 +0000 (04:28 +0100)]
* configure.ac: Bump to 2.00~beta0.

12 years ago * util/getroot.c (grub_find_root_devices_from_btrfs): Add
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 03:25:13 +0000 (04:25 +0100)]
* util/getroot.c (grub_find_root_devices_from_btrfs): Add
missing initialisation.

12 years ago * grub-core/partmap/msdos.c (message_warn): Clarify messages.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 03:23:58 +0000 (04:23 +0100)]
* grub-core/partmap/msdos.c (message_warn): Clarify messages.

12 years ago Support v2 xnu boot arguments.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 03:04:19 +0000 (04:04 +0100)]
Support v2 xnu boot arguments.

* grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
New argument fsbfreq_out.
(grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
(grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
be used.
* grub-core/loader/machoXX.c (grub_macho_load): New argument
darwin_version.
* grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
* include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
(grub_xnu_boot_params): Rename to ...
(grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
(grub_xnu_boot_params_v2): New struct.

12 years ago * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 02:59:08 +0000 (03:59 +0100)]
* grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
zeroing of CRC field before computing CRC.

12 years ago * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 00:32:38 +0000 (01:32 +0100)]
* grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
Change order of allocations to decrease fragmentation.

12 years ago * Makefile.util.def (grub-ofpathname): Enable on all platforms.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 21:48:29 +0000 (22:48 +0100)]
* Makefile.util.def (grub-ofpathname): Enable on all platforms.

12 years ago Use write-combining MTRR to speed up video with buggy BIOSes.
Colin Watson [Mon, 27 Feb 2012 21:31:51 +0000 (22:31 +0100)]
Use write-combining MTRR to speed up video with buggy BIOSes.

* grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
(cpuid): New define.
(rdmsr): Likewise.
(wrmsr): Likewise.
(mtrr_base): Likewise.
(mtrr_mask): Likewise.
(grub_vbe_enable_mtrr_entry): New function.
(grub_vbe_enable_mtrr): Likewise.
(grub_vbe_disable_mtrr): Likewise.
(grub_vbe_bios_set_display_start): Disable mtrr when handing the
control off to BIOS.
(grub_video_vbe_init): Fill mtrr.
(grub_video_vbe_fini): Disable mtrr.
(grub_video_vbe_get_info_and_fini): Likewise.
(grub_video_vbe_setup): Enable mtrr.

12 years ago * include/grub/partition.h (grub_partition_map): Change prototype of
Colin Watson [Mon, 27 Feb 2012 21:25:39 +0000 (22:25 +0100)]
* include/grub/partition.h (grub_partition_map): Change prototype of
embed to take a maximum value for nsectors.
* include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
* include/grub/fs.h (grub_fs): Likewise.
* grub-core/partmap/msdos.c (embed_signatures): New array.
(pc_partition_map_embed): Check for and avoid sectors matching any
of the signatures in embed_signatures, up to max_nsectors.
* grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
returned sector map to max_nsectors.
* grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
* grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
* grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
* util/grub-setup.c (setup): Allow for the embedding area being
split into multiple blocklists.  Tell dest_partmap->embed the
maximum number of sectors we care about.

12 years ago * util/grub-install.in: Clarify strings.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 20:36:58 +0000 (21:36 +0100)]
* util/grub-install.in: Clarify strings.
Fix source dir check.

12 years ago * util/grub-install.in: Clarify strings.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 20:31:58 +0000 (21:31 +0100)]
* util/grub-install.in: Clarify strings.
Fix source dir check.

12 years ago * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
Richard Laager [Mon, 27 Feb 2012 19:14:26 +0000 (20:14 +0100)]
* util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
"zfs" and "fuse.zfs" as synonyms.

12 years ago * configure.ac: Put platform and target_cpu substitutions back since
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 18:10:02 +0000 (19:10 +0100)]
* configure.ac: Put platform and target_cpu substitutions back since
they are used for directories.

12 years ago * util/grub.d/10_linux.in: Add ZFS-related arguments.
Richard Laager [Mon, 27 Feb 2012 18:07:09 +0000 (19:07 +0100)]
* util/grub.d/10_linux.in: Add ZFS-related arguments.
* util/grub.d/20_linux_xen.in: Likewise.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
12 years ago * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
Richard Laager [Mon, 27 Feb 2012 16:42:48 +0000 (17:42 +0100)]
* util/getroot.c (find_root_devices_from_poolname): Handle vdevs
with full paths.

12 years ago * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
Richard Laager [Mon, 27 Feb 2012 16:40:38 +0000 (17:40 +0100)]
* util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
unescape.

12 years ago Don't use insecure popen in getroot.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 16:37:23 +0000 (17:37 +0100)]
Don't use insecure popen in getroot.

* util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
(exec_pipe): ... here.
(find_root_devices_from_poolname): Use exec_pipe.

12 years ago Remove platform and target_cpu replacement.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 15:46:52 +0000 (16:46 +0100)]
Remove platform and target_cpu replacement.

* configure.ac: Remove platform and target_cpu substitutions.
* tests/util/grub-shell.in: Use modinfo.
* util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
explicitly.

12 years ago Autodetect platform in grub-install but allow override.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 15:06:18 +0000 (16:06 +0100)]
Autodetect platform in grub-install but allow override.

* util/grub-install.in: Autodetect platform. Support --target and
--directory. Read platform from modinfo.sh.

12 years ago Support btrfs multi-volume probe.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 13:56:28 +0000 (14:56 +0100)]
Support btrfs multi-volume probe.

* util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
(btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
(BTRFS_IOC_DEV_INFO) [__linux__]: New define.
(BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
(grub_find_root_devices_from_btrfs) [__linux__]: New function.
(grub_find_root_devices_from_mountinfo) [__linux__]: Use
grub_find_root_devices_from_btrfs if on btrfs.

12 years ago Remove any awareness of *.c util files about target.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 13:24:22 +0000 (14:24 +0100)]
Remove any awareness of *.c util files about target.

* Makefile.util.def (grub-setup): Split to ...
(grub-bios-setup): ... and this.
(grub-sparc64-setup): ... and this.
* configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
* docs/man/grub-setup.h2m: Split into ...
* docs/man/grub-sparc64-setup.h2m: ... this.
* docs/man/grub-bios-setup.h2m: ... and this.
* include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
* include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
(GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
(grub_target_addr_t): Remove.
(grub_target_size_t): Remove.
(grub_target_ssize_t): Remove.
* util/grub-install.in: Use new grub-*-setup.
* util/grub-mkimagexx.c (Elf_Word): New define.
(Elf_Half): Likewise.
(Elf_Section): Likewise.
(ELF_ST_TYPE): Likewise.
* util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.

12 years ago Replace grub_target_addr with more appropriate types.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 13:13:24 +0000 (14:13 +0100)]
Replace grub_target_addr with more appropriate types.

* grub-core/commands/efi/fixvideo.c (scan_card): Replace
grub_target_addr with grub_addr.
* grub-core/commands/iorw.c (grub_cmd_read): Replace
grub_target_addr with grub_port.
(grub_cmd_write): Likewise.
* grub-core/commands/memrw.c (grub_cmd_read): Replace
grub_target_addr with grub_addr.
(grub_cmd_write): Likewise.
* grub-core/video/efi_uga.c (find_line_len): Likewise.

12 years ago * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 13:09:09 +0000 (14:09 +0100)]
* include/grub/efi/api.h (grub_efi_runtime_services): Add missing
const qualifier for vendor_guid.

12 years ago * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 13:07:53 +0000 (14:07 +0100)]
* grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
const qualifier.
(efiemu_memequal): Likewise.
(find_variable): Likewise.

12 years ago Fix missing console prototype on qemu-mips.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 13:06:33 +0000 (14:06 +0100)]
Fix missing console prototype on qemu-mips.

* include/grub/mips/qemu_mips/console.h: New file.

12 years ago * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
Matthew Garrett [Mon, 27 Feb 2012 11:02:57 +0000 (12:02 +0100)]
* grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
* include/grub/efi/efi.h: Likewise.
* include/grub/efi/api.h: Add guid for EFI-specified variables.
* include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
* grub-core/normal/charset.c (grub_utf8_process): Move from here ...
* include/grub/charset.h (grub_utf8_process): ... to here. Inline.
* grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
* include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.

12 years ago * include/grub/efi/pci.h: New file to define EFI PCI protocols.
Matthew Garrett [Mon, 27 Feb 2012 10:42:23 +0000 (11:42 +0100)]
* include/grub/efi/pci.h: New file to define EFI PCI protocols.

12 years ago * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 10:39:15 +0000 (11:39 +0100)]
* grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
error.

12 years ago * configure.ac: Remove inappropriate use of program_transform_name
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 10:34:31 +0000 (11:34 +0100)]
* configure.ac: Remove inappropriate use of program_transform_name
on grubdir and bootdir but allow explicit specification of those
variables.

12 years ago * util/grub-mknetdir.in (grub_prefix): Removed.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 10:08:17 +0000 (11:08 +0100)]
* util/grub-mknetdir.in (grub_prefix): Removed.
(subdir): Use @bootdirname@ and @grubdirname@.

12 years ago Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 10:04:50 +0000 (11:04 +0100)]
Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.

12 years ago * po/POTFILES.in: Regenerated.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 09:37:03 +0000 (10:37 +0100)]
* po/POTFILES.in: Regenerated.

12 years ago Remove improper use of program_transform_name on pkglibrootdir.
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 09:35:37 +0000 (10:35 +0100)]
Remove improper use of program_transform_name on pkglibrootdir.

* configure.ac (pkglibrootdir): Removed.
(grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
* util/grub-mkimage.c: Likewise.

12 years ago * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 09:31:46 +0000 (10:31 +0100)]
* grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
warning.

12 years ago * util/grub-install.in: Use file identifier if no UUID is available
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 01:23:14 +0000 (02:23 +0100)]
* util/grub-install.in: Use file identifier if no UUID is available
or user explicitly prompted for it.

12 years ago * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
Navdeep Parhar [Mon, 27 Feb 2012 01:02:16 +0000 (02:02 +0100)]
* grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
(freebsd_get_zfs): New function.
(grub_freebsd_boot): Pass zfs UUID.
(grub_cmd_freebsd): Set zfs UUID.

12 years ago * conf/Makefile.common (platformdir): Base on pkglibdir and not
Vladimir 'phcoder' Serbinenko [Mon, 27 Feb 2012 00:44:10 +0000 (01:44 +0100)]
* conf/Makefile.common (platformdir): Base on pkglibdir and not
pkglibrootdir.

12 years ago Add configure flag to control libzfs integration.
Mike Gilbert [Sun, 26 Feb 2012 23:57:48 +0000 (00:57 +0100)]
Add configure flag to control libzfs integration.

* configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.

12 years ago * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 23:46:08 +0000 (00:46 +0100)]
* grub-core/disk/diskfilter.c (insert_array): Choose the smallest
device.
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
small devices.

12 years ago Remove grub_{modname}_init and grub_{modname}_fini. They should never
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 23:28:45 +0000 (00:28 +0100)]
Remove grub_{modname}_init and grub_{modname}_fini. They should never
be used directly if it's really a module and GRUB_MOD_INIT shouldn't
be used on non-modules.

* grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
Rename to grub_boot_init.
(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
* grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
[LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
* grub-core/font/font_cmd.c (GRUB_MOD_INIT)
[LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
* grub-core/kern/mips/loongson/init.c: Replace explicit protos with
includes.
(grub_machine_init): Remove empty inits.
* grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
includes.
(grub_machine_init): Remove empty inits.
* grub-core/term/arc/console.c: Remove explicit proto.
* grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
[LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
grub_at_keyboard_fini.
* grub-core/term/gfxterm.c (GRUB_MOD_INIT)
[LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
grub_gfxterm_fini.
* grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
[LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
grub_vgatext_fini.
* grub-core/term/ieee1275/console.c: Remove explicit proto.
* grub-core/term/serial.c (GRUB_MOD_INIT)
[LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
grub_serial_fini.
* grub-core/term/terminfo.c (GRUB_MOD_INIT)
[LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
grub_terminfo_fini.
* grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
(GRUB_MOD_FINI): Likewise.
* grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
[LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
(GRUB_MOD_FINI) [LOONGSON]: Rename to
grub_video_radeon_fuloong2e_fini.
* grub-core/video/sis315pro.c (GRUB_MOD_INIT)
[LOONGSON]: Rename to grub_video_sis315pro_init.
(GRUB_MOD_FINI) [LOONGSON]: Rename to
grub_video_sis315pro_fini.
* grub-core/video/sm712.c (GRUB_MOD_INIT)
[LOONGSON]: Rename to grub_video_sm712_init.
(GRUB_MOD_FINI) [LOONGSON]: Rename to
grub_video_sm712_fini.
* include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
(grub_at_keyboard_fini): Likewise.
* include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
Don't declare grub_{modname}_init.
(GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
* include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
New proto.
(grub_keylayouts_fini) [!EMU]: Likewise.
* include/grub/serial.h (grub_serial_init) [!EMU]:
New proto.
(grub_serial_fini) [!EMU]: Likewise.
* include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
New proto.
(grub_terminfo_fini) [!EMU]: Likewise.
* include/grub/video.h (grub_font_init) [!EMU]:
New proto.
(grub_font_fini) [!EMU]: Likewise.
(grub_gfxterm_init) [!EMU]: Likewise.
(grub_gfxterm_fini) [!EMU]: Likewise.
(grub_video_sm712_init) [!EMU]: Likewise.
(grub_video_sm712_fini) [!EMU]: Likewise.
(grub_video_sis315pro_init) [!EMU]: Likewise.
(grub_video_sis315pro_fini) [!EMU]: Likewise.
(grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
(grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.

12 years ago Make nand a prefix for nand devices.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 22:59:00 +0000 (23:59 +0100)]
Make nand a prefix for nand devices.

* grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.

12 years ago * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 22:55:18 +0000 (23:55 +0100)]
* grub-core/kern/misc.c (grub_stpcpy): Move from here ...
* include/grub/misc.h (grub_stpcpy): ... to here. Inlined.

12 years ago * include/grub/env.h (grub_env_find): Remove prototype.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 22:53:21 +0000 (23:53 +0100)]
* include/grub/env.h (grub_env_find): Remove prototype.
* grub-core/kern/env.c (grub_env_find): Make static.
(grub_env_set): Remove useless set.

12 years ago * grub-core/kern/i386/realmode.S: Remove useless align.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 22:46:34 +0000 (23:46 +0100)]
* grub-core/kern/i386/realmode.S: Remove useless align.

12 years ago * include/grub/dl.h (grub_dl_load_file): Don't export.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 22:44:39 +0000 (23:44 +0100)]
* include/grub/dl.h (grub_dl_load_file): Don't export.

12 years ago * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 22:39:21 +0000 (23:39 +0100)]
* grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
grub_dprintf.

12 years ago * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 22:36:12 +0000 (23:36 +0100)]
* grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
grub_errors.
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
not reloading whole superblock but only the part which is really needed.
Remove useless grub_errors.
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
grub_errors.

12 years ago Don't export grub_get_rtc.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 22:25:47 +0000 (23:25 +0100)]
Don't export grub_get_rtc.

* include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
* grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.

12 years ago * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 21:57:26 +0000 (22:57 +0100)]
* grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.

12 years ago * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 21:53:21 +0000 (22:53 +0100)]
* grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
argument since it can be deduced from diskfilter. All users updated.

12 years ago Remove prio_list.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 21:49:24 +0000 (22:49 +0100)]
Remove prio_list.

* include/grub/list.h (grub_prio_list): Removed.
(GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
GRUB_COMMAND_PRIO_MASK.
(GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
GRUB_COMMAND_FLAG_ACTIVE.
(grub_prio_list_insert): Removed.
(grub_prio_list_remove): Likewise.
(GRUB_AS_PRIO_LIST): Likewise.
(GRUB_AS_PRIO_LIST_P): Likewise.
* include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
(GRUB_COMMAND_FLAG_ACTIVE): Likewise.
* grub-core/kern/list.c (grub_prio_list_insert): Remove.
* grub-core/kern/command.c (grub_register_command_prio): Inline
the prio_list code.
(grub_unregister_command): Likewise.

12 years ago Fix interrupt mixup from previous commit.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 21:10:13 +0000 (22:10 +0100)]
Fix interrupt mixup from previous commit.

* include/grub/i386/pc/int.h (grub_i386_idt): New struct.
(grub_realidt): New var.
* grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
Load idt.
* grub-core/lib/i386/relocator.c (grub_relocator16_idt):
New declaration.
(grub_relocator16_boot): Set grub_relocator16_idt.
* grub-core/kern/i386/realmode.S (realidt): Renamed to ...
(LOCAL(realidt)): ... this.
* grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
* grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
(grub_realidt): New variable.

12 years ago * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 20:04:45 +0000 (21:04 +0100)]
* grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
* grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
* grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
* grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
Gettextize.
* grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
* grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
* po/POTFILES.in: Regenerate.

12 years ago * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 19:36:09 +0000 (20:36 +0100)]
* grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
errors.

12 years ago * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 19:32:37 +0000 (20:32 +0100)]
* grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
\0.
(add_length): Likewise.

12 years ago GDB serial and backtrace support.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 19:31:03 +0000 (20:31 +0100)]
GDB serial and backtrace support.

* grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
(prot_to_real): Likewise.
* grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
* grub-core/Makefile.core.def (backtrace): New module.
(gdb): Likewise.
* grub-core/gdb/cstub.c: New file.
* grub-core/gdb/gdb.c: Likewise.
* grub-core/gdb/i386/idt.c: Likewise.
* grub-core/gdb/i386/machdep.S: Likewise.
* grub-core/gdb/i386/signal.c: Likewise.
* grub-core/lib/i386/backtrace.c: Likewise.
* grub-core/lib/backtrace.c: Likewise.
* include/grub/backtrace.h: Likewise.
* include/grub/gdb.h: Likewise.
* include/grub/i386/gdb.h: Likewise.

12 years ago GDB serial and backtrace support.
Lubomir Kundrak [Sun, 26 Feb 2012 18:17:37 +0000 (19:17 +0100)]
GDB serial and backtrace support.

* grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
(prot_to_real): Likewise.
* grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
* grub-core/Makefile.core.def (backtrace): New module.
(gdb): Likewise.
* grub-core/gdb/cstub.c: New file.
* grub-core/gdb/gdb.c: Likewise.
* grub-core/gdb/i386/idt.c: Likewise.
* grub-core/gdb/i386/machdep.S: Likewise.
* grub-core/gdb/i386/signal.c: Likewise.
* grub-core/lib/i386/backtrace.c: Likewise.
* include/grub/backtrace.h: Likewise.
* include/grub/gdb.h: Likewise.
* include/grub/i386/gdb.h: Likewise.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
12 years agoSeveral cleanups
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 18:10:52 +0000 (19:10 +0100)]
Several cleanups

12 years ago * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 18:07:59 +0000 (19:07 +0100)]
* grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
New function.
(add_length): Likewise.
(__argp_fmtstream_update): Handle strings with non-ASCII chars.
* grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
proto.
* grub-core/gnulib/argp-help.c (argp_args_usage): Use
__argp_get_display_len.

12 years ago $"..." support in scripts.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 18:02:46 +0000 (19:02 +0100)]
$"..." support in scripts.

* grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
GRUB_SCRIPT_ARG_TYPE_GETTEXT.
* grub-core/script/yylex.l: Likewise.
* include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
value.

12 years ago * gentpl.py: Remove obsolete pkglib_DATA handling.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 17:54:30 +0000 (18:54 +0100)]
* gentpl.py: Remove obsolete pkglib_DATA handling.

12 years ago Don't transform PACKAGE_TARNAME following a discussion on autoconf
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 17:37:54 +0000 (18:37 +0100)]
Don't transform PACKAGE_TARNAME following a discussion on autoconf
mailing list.

* util/grub-install.in: Don't transform PACKAGE_TARNAME.
* util/grub-kbdcomp.in: Likewise.
* util/grub-mkconfig.in: Likewise.
* util/grub-mkconfig_lib.in: Likewise.
* util/grub-mknetdir.in: Likewise.
* util/grub-mkrescue.in: Likewise.
* util/grub-mkstandalone.in: Likewise.
* util/grub-reboot.in: Likewise.
* util/grub-set-default.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.

12 years ago Remove GRUB_PREFIX.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 17:21:31 +0000 (18:21 +0100)]
Remove GRUB_PREFIX.

* util/grub-mkconfig.in: Remove GRUB_PREFIX.
* util/grub.d/00_header.in: Compute prefix in the only place it's still
used for backward compatibility.

12 years ago Add new all_video module.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 17:09:07 +0000 (18:09 +0100)]
Add new all_video module.

* grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
* grub-core/Makefile.core.def (all_video): New module.
* grub-core/genmoddep.awk: Generate dependency of all_video from
video.lst.
* grub-core/lib/fake_module.c: New file.
* grub-core/normal/main.c (features): Add feature_all_video_module.
* util/grub.d/00_header.in: Define locale_dir based on $prefix and
don't do explicit search again.
insmod all_video in load_video if available.

12 years ago Another round of string clarification and adding TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 16:28:05 +0000 (17:28 +0100)]
Another round of string clarification and adding TRANSLATORS comments.

12 years ago * util/grub-mknetdir.in: Remove erroneous reference to install_device.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 16:23:26 +0000 (17:23 +0100)]
* util/grub-mknetdir.in: Remove erroneous reference to install_device.

12 years ago * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 16:20:30 +0000 (17:20 +0100)]
* grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
to grub_ssize_t.
* grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
* include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.

12 years ago * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 16:16:05 +0000 (17:16 +0100)]
* grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
trailing newline implicitly. All users updated.