]> git.proxmox.com Git - grub2.git/log
grub2.git
14 years ago * grub-core/normal/term.c (read_terminal_list): Free in a right order.
Vladimir 'phcoder' Serbinenko [Thu, 30 Sep 2010 19:04:09 +0000 (21:04 +0200)]
* grub-core/normal/term.c (read_terminal_list): Free in a right order.

14 years ago * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
Vladimir 'phcoder' Serbinenko [Thu, 30 Sep 2010 18:59:20 +0000 (20:59 +0200)]
* grub-core/script/execute.c (grub_script_execute_sourcecode): Set
flags.

14 years ago * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
Vladimir 'phcoder' Serbinenko [Thu, 30 Sep 2010 17:27:28 +0000 (19:27 +0200)]
* util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
usage.

14 years ago Put terminfo into core on ieee1275 and yeeloong (needed for console).
Vladimir 'phcoder' Serbinenko [Thu, 30 Sep 2010 15:50:01 +0000 (17:50 +0200)]
Put terminfo into core on ieee1275 and yeeloong (needed for console).

* gentpl.py: New groups terminfoinkernel and terminfomodule.
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
and terminfo.h when needed.
* grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
(terminfo): Enable only on terminfokernel.
(extcmd): Likewise.
* include/grub/extcmd.h: Add missing EXPORT_FUNC.
* include/grub/lib/arg.h: Likewise.
* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
incorrect usage of ->.

14 years ago * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 21:58:43 +0000 (23:58 +0200)]
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
[GRUB_MACHINE_EFI && __i386__]: Fix typo.

14 years ago Fix coreboot compilation.
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 21:51:12 +0000 (23:51 +0200)]
Fix coreboot compilation.

* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
Take VBE info into account even if only text is supported.
(fill_vbe_info): Take into account the case when only VGA text
is supported.
* include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
on coreboot, multiboot and qemu.

14 years ago * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 21:19:21 +0000 (23:19 +0200)]
* grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
debug messages.
(grub_relocator_prepare_relocs): Set movers_chunk.srcv.

14 years ago * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 20:51:12 +0000 (22:51 +0200)]
* grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
parameters.

14 years ago * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 20:48:38 +0000 (22:48 +0200)]
* grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
if they were BSD-style.

14 years ago * grub-core/boot/i386/pc/lnxboot.S: Replace
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 20:45:57 +0000 (22:45 +0200)]
* grub-core/boot/i386/pc/lnxboot.S: Replace
GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.

14 years ago Write embedding zone using Reed-Solomon.
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 19:33:38 +0000 (21:33 +0200)]
Write embedding zone using Reed-Solomon.

* Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
* grub-core/Makefile.am (rs_decoder.S): New target.
(kern/i386/pc/startup.S): Depend on rs_decoder.S.
* grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
(multiboot): Move to RS part.
(post_reed_solomon): New label.
(grub_boot_drive): Move to non-RS part since it's modified in memory
on boot.
Include rs_decoder.S.
* grub-core/lib/reed_solomon.c: New file.
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
New definition.
(GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
(GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
(GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
* include/grub/partition.h (grub_partition_map): Change prototype of
embed to allow returning additional sectors.
* include/grub/reed_solomon.h: New file.
* util/grub-setup.c (setup): Handle Reed-Solomon.

14 years ago* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
Colin Watson [Tue, 28 Sep 2010 16:38:34 +0000 (17:38 +0100)]
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
i386 and x86-64 definedness tests.

14 years ago Fix generation of kernel_syms.lst
Yves Blusseau [Mon, 27 Sep 2010 09:11:38 +0000 (11:11 +0200)]
Fix generation of kernel_syms.lst

    * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
    ASM_PREFIX

14 years ago2010-09-26 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 26 Sep 2010 14:11:33 +0000 (16:11 +0200)]
2010-09-26  Robert Millan  <rmh@gnu.org>

Support degraded ZFS arrays in "grub-probe -t device" resolution.

* grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
the pool is an array of devices, iterate through it and return the
first device that passes a stat() test (instead of blindly returning
the first one).

14 years ago2010-09-26 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 26 Sep 2010 13:53:05 +0000 (15:53 +0200)]
2010-09-26  Robert Millan  <rmh@gnu.org>

Build fixes for GNU/kFreeBSD.

* Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
to programs that require ZFS conversion.
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
kernels that don't have FLOPPY_MAJOR.

14 years agoAdd missing dependency on rs_Decoder.S
Vladimir 'phcoder' Serbinenko [Sun, 26 Sep 2010 11:37:08 +0000 (13:37 +0200)]
Add missing dependency on rs_Decoder.S

14 years agoFix missing mreparm=3
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 19:43:04 +0000 (21:43 +0200)]
Fix missing mreparm=3

14 years agoRemove debug printf
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 19:42:36 +0000 (21:42 +0200)]
Remove debug printf

14 years agoMake mb header to protected part
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 19:42:13 +0000 (21:42 +0200)]
Make mb header to protected part

14 years agoMultiple bugs correction for Reed-Solomon
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 18:40:26 +0000 (20:40 +0200)]
Multiple bugs correction for Reed-Solomon

14 years agohook Reed-Solomon into startup.S
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 17:33:05 +0000 (19:33 +0200)]
hook Reed-Solomon into startup.S

14 years agofix typo
BVK Chaitanya [Sat, 25 Sep 2010 05:18:48 +0000 (10:48 +0530)]
fix typo

14 years ago Fix grub-emu build.
BVK Chaitanya [Sat, 25 Sep 2010 05:13:09 +0000 (10:43 +0530)]
Fix grub-emu build.

* grub-core/kern/emu/main.c: Remove #include <getopt.h>.
* grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
mdraid09 and mdraid1x.

14 years agoC part of Reed-Solomon
Vladimir 'phcoder' Serbinenko [Fri, 24 Sep 2010 12:05:47 +0000 (14:05 +0200)]
C part of Reed-Solomon

14 years agoRe-enable grub-extras.
Colin Watson [Fri, 24 Sep 2010 08:48:27 +0000 (09:48 +0100)]
Re-enable grub-extras.
* autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
avoid confusing Automake.  Run autogen only twice, once for the top
level and once for grub-core.  Add Makefile.util.def and
Makefile.core.def from extra modules to the appropriate autogen
invocations.  If Makefile.common exists in an extra module, include
it in both Makefile.util.am and grub-core/Makefile.core.am;
similarly, include any Makefile.util.common file in Makefile.util.am
and any Makefile.core.common file in grub-core/Makefile.core.am.
* conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
* grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
* gentpl.py (gvar_add): Turn GVARS into a set.
(global_variable_initializers): Sort global variables on output.
(vars_init): New function.
(first_time): Likewise.
(library): Ensure that non-global variable initialisations are
emitted before the first time we emit code for a library block.
Append to variables rather than setting them.  Only emit
noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
each conditional path.
(program): installdir() emits an Autogen macro, so must be passed to
var_add rather than gvar_add.
(data): Likewise.
(script): Likewise.
(rules): New function, centralising handling for different target
types.  Set up Guile association lists for first_time and vars_init,
and send most output to a diversion so that variable initialisations
can be emitted first.
(module_rules): Use new rules function.
(kernel_rules): Likewise.
(image_rules): Likewise.
(library_rules): Likewise.
(program_rules): Likewise.
(script_rules): Likewise.
(data_rules): Likewise.
* configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
* .bzrignore: Add contrib and grub-core/contrib.  Remove
grub-core/Makefile.gcry.am.

14 years ago * grub-core/lib/LzFind.c: Add missing include.
Yves Blusseau [Fri, 24 Sep 2010 07:19:57 +0000 (09:19 +0200)]
* grub-core/lib/LzFind.c: Add missing include.
    * grub-core/lib/LzmaEnc.c: Likewise.
    * grub-core/script/lexer.c: Likewise.
    * grub-core/script/yylex.l: Likewise.
    * util/grub-macho2img.c: Likewise.
    * util/grub-menulst2cfg.c: Likewise.
    * util/grub-mklayout.c: Likewise.
    * util/grub-mkpasswd-pbkdf2.c
    * util/grub-mkrelpath.c: Likewise.
    * util/resolve.c: Likewise.

14 years ago * Makefile.util.def (example_unit_test): Add
BVK Chaitanya [Fri, 24 Sep 2010 03:16:15 +0000 (08:46 +0530)]
* Makefile.util.def (example_unit_test): Add
grub-core/gnulib/libgnu.a.

14 years agoVariable initialization.
Grégoire Sutre [Thu, 23 Sep 2010 23:13:50 +0000 (01:13 +0200)]
Variable initialization.

14 years ago Support xz compression on yeeloong.
Vladimir 'phcoder' Serbinenko [Thu, 23 Sep 2010 00:10:44 +0000 (02:10 +0200)]
Support xz compression on yeeloong.

* Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
* configure.ac: Check for LZMA.
* grub-core/Makefile.core.def (xz_decompress): New target.
(none_decompress): Likewise.
* grub-core/boot/decompressor/minilib.c: New file.
* grub-core/boot/decompressor/none.c: Likewise.
* grub-core/boot/decompressor/xz.c: Likewise.
* grub-core/kern/mips/cache.S: Change to noreorder nomacro.
* grub-core/kern/mips/cache_flush.S: Likewise.
* grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
* grub-core/kern/mips/startup.S: Move first stage to ...
* grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
nomacro.
* grub-core/kern/mips/startup.S: Change to noreorder nomacro.
* grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
* grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
Allocate statically.
* grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
Allocate statically or use scratch. Don't check CRC32.
* grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
Allocate statically. Don't check CRC32.
* include/grub/decompressor.h: New file.
* include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
Removed.
(GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
(GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
(GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
(GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
(GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
* util/grub-mkimage.c (grub_compression_t): New type.
(PLATFORM_FLAGS_DECOMPRESSORS): New flag.
(image_target_desc): New field default_compression.
(image_targets): Adjust yeeloong targets.
(compress_kernel_xz) [HAVE_LIBLZMA]: New function.
(compress_kernel): New parameter comp.
(generate_image): Likewise. Handle new compression case.
(options): New option --compression
(help): Likewise.
(main): Handle new option.

14 years agoDefine FLOPPY_MAJOR on NetBSD.
Grégoire Sutre [Wed, 22 Sep 2010 21:32:58 +0000 (23:32 +0200)]
Define FLOPPY_MAJOR on NetBSD.

14 years ago* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
Colin Watson [Wed, 22 Sep 2010 15:57:49 +0000 (16:57 +0100)]
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
typo in __i386__ conditional.

14 years ago * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
Vladimir 'phcoder' Serbinenko [Wed, 22 Sep 2010 15:13:21 +0000 (17:13 +0200)]
* grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
include.

14 years ago Implement EFI and ACPI multiboot2 extensions.
Vladimir 'phcoder' Serbinenko [Wed, 22 Sep 2010 12:51:49 +0000 (14:51 +0200)]
Implement EFI and ACPI multiboot2 extensions.

* grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
new tags as supported.
(acpiv2_size): New function.
(grub_multiboot_get_mbi_size): Take new tags into account.
(grub_multiboot_make_mbi): Add new tags.
* include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.

14 years agoFix bugs in asm code
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 22:53:34 +0000 (00:53 +0200)]
Fix bugs in asm code

14 years agoAlign scratch
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 22:52:33 +0000 (00:52 +0200)]
Align scratch

14 years agoWrite total module size before compressing
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 22:51:54 +0000 (00:51 +0200)]
Write total module size before compressing

14 years ago.../serial/common.c - added missing configuration
starous [Tue, 21 Sep 2010 20:00:44 +0000 (22:00 +0200)]
.../serial/common.c - added missing configuration

14 years ago.../serial/common.c - added missing configuration
starous [Tue, 21 Sep 2010 19:57:57 +0000 (21:57 +0200)]
.../serial/common.c - added missing configuration

14 years agoCompressor part
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 19:35:46 +0000 (21:35 +0200)]
Compressor part

14 years agoAllow compression algorithm specification
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 18:30:28 +0000 (20:30 +0200)]
Allow compression algorithm specification

14 years ago* grub-core/normal/menu_entry.c (run): Make sure we always return
Colin Watson [Tue, 21 Sep 2010 18:03:11 +0000 (19:03 +0100)]
* grub-core/normal/menu_entry.c (run): Make sure we always return
a value.

14 years agoMAke a separate scratch for decompressor
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 17:39:51 +0000 (19:39 +0200)]
MAke a separate scratch for decompressor

14 years ago* grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
Colin Watson [Tue, 21 Sep 2010 15:58:08 +0000 (16:58 +0100)]
* grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
NumberOfPages is UINT64 according to the UEFI specification, not
UINTN.  Fix printf format.

14 years ago* grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
Colin Watson [Tue, 21 Sep 2010 15:13:04 +0000 (16:13 +0100)]
* grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
`err' to grub_usb_err_t.
Reported and tested by: KESHAV P.R.

14 years ago* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
Colin Watson [Tue, 21 Sep 2010 12:41:23 +0000 (13:41 +0100)]
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
tpart non-const, so that we can assign to it.  (Since this is a
typedef, the constness refers to the pointer rather than what it
points to.)

14 years ago* conf/Makefile.common (CPPFLAGS_GNULIB): Add
Colin Watson [Tue, 21 Sep 2010 12:37:50 +0000 (13:37 +0100)]
* conf/Makefile.common (CPPFLAGS_GNULIB): Add
$(top_srcdir)/grub-core/gnulib as well as
$(top_builddir)/grub-core/gnulib.
Reported by: KESHAV P.R.

14 years ago* util/grub-install.in: Fix the bootloader ID option to be
Colin Watson [Tue, 21 Sep 2010 11:10:36 +0000 (12:10 +0100)]
* util/grub-install.in: Fix the bootloader ID option to be
consistently --bootloader-id, not --bootloader_id.
Reported by: KESHAV P.R.

14 years ago* grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
Colin Watson [Tue, 21 Sep 2010 10:14:06 +0000 (11:14 +0100)]
* grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
check hash checksum." consistently translatable.

14 years ago * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
Yves Blusseau [Tue, 21 Sep 2010 10:02:59 +0000 (12:02 +0200)]
* conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
    $(top_builddir).

14 years ago* grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
Colin Watson [Tue, 21 Sep 2010 09:56:16 +0000 (10:56 +0100)]
* grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
(GRUB_MOD_INIT): Register sha1sum command.
(GRUB_MOD_FINI): Unregister sha1sum command.

14 years ago Keep boot and grub directory names in sync with utils scripts
Yves Blusseau [Tue, 21 Sep 2010 09:42:30 +0000 (11:42 +0200)]
Keep boot and grub directory names in sync with utils scripts

    * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
    * config.h.in: Add previous macros.
    * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
    * util/grub-install.in: Use $bootdir and $grubdir variables.

14 years ago* grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
Colin Watson [Tue, 21 Sep 2010 09:36:44 +0000 (10:36 +0100)]
* grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
convert partition names to disk names if the new `convert' parameter
is set.
(grub_util_biosdisk_get_grub_dev): If opening the disk device
returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
disk in its own right.  This can happen with Xen disk images.

14 years agoC part of decompressor
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 09:22:52 +0000 (11:22 +0200)]
C part of decompressor

14 years ago * util/grub-editenv.c: Update strings to avoid warnings when generating
Yves Blusseau [Tue, 21 Sep 2010 09:17:54 +0000 (11:17 +0200)]
* util/grub-editenv.c: Update strings to avoid warnings when generating
    grub.pot file.
    * util/grub-setup.c: Likewise.

14 years agoasm part for mips decompressor
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 08:14:08 +0000 (10:14 +0200)]
asm part for mips decompressor

14 years agoRemove dead code in decompressor
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 08:07:12 +0000 (10:07 +0200)]
Remove dead code in decompressor

14 years agoImplementation of ACPI parts
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 06:37:50 +0000 (08:37 +0200)]
Implementation of ACPI parts

14 years ago * configure.ac: Change version to 1.99~beta0.
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 00:33:48 +0000 (02:33 +0200)]
* configure.ac: Change version to 1.99~beta0.

14 years agoImpletment EST multiboot passing
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 00:19:29 +0000 (02:19 +0200)]
Impletment EST multiboot passing

14 years ago * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 00:06:14 +0000 (02:06 +0200)]
* grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
Add BADRAM.
* grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
Likewise.
* include/multiboot.h: Resynced with specification.
* include/multiboot2.h: Likewise.

14 years agoFix po directory handling.
Colin Watson [Mon, 20 Sep 2010 23:09:23 +0000 (00:09 +0100)]
Fix po directory handling.
* configure.ac: Create po/Makefile.in rather than po/Makefile.
* grub-core/gnulib/Makefile.am: Import gettext module.
* m4/gnulib-cache.m4: Likewise.
* m4/gnulib-comp.m4: Likewise.
* m4/gettext.m4: New file, from gnulib.
* m4/glibc2.m4: Likewise.
* m4/iconv.m4: Likewise.
* m4/intdiv0.m4: Likewise.
* m4/intl.m4: Likewise.
* m4/intldir.m4: Likewise.
* m4/intlmacosx.m4: Likewise.
* m4/intmax.m4: Likewise.
* m4/inttypes-pri.m4: Likewise.
* m4/lcmessage.m4: Likewise.
* m4/lib-ld.m4: Likewise.
* m4/lib-link.m4: Likewise.
* m4/lib-prefix.m4: Likewise.
* m4/lock.m4: Likewise.
* m4/nls.m4: Likewise.
* m4/po.m4: Likewise.
* m4/printf-posix.m4: Likewise.
* m4/progtest.m4: Likewise.
* m4/threadlib.m4: Likewise.
* m4/uintmax_t.m4: Likewise.
* m4/visibility.m4: Likewise.
* po/Makefile.am: Remove.
* po/Makefile.in.in: New file, from gettext.
($(DOMAIN).pot-update): Support POTFILES-shell.
* po/Makevars: New file.
* po/POTFILES-shell: Rename to ...
* po/POTFILES-shell.in: ... this.  Update.
* po/POTFILES: Rename to ...
* po/POTFILES.in: ... this.  Update.
* po/Rules-quot: New file, from gettext.
* po/boldquot.sed: Likewise.
* po/en@boldquot.header: Likewise.
* po/en@quot.header: Likewise.
* po/insert-header.sin: Likewise.
* po/quot.sed: Likewise.
* po/remove-potcdate.sin: Likewise.

14 years ago * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 23:02:24 +0000 (01:02 +0200)]
* util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.

14 years ago * util/grub.d/20_linux_xen.in: Use submenus.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 22:58:59 +0000 (00:58 +0200)]
* util/grub.d/20_linux_xen.in: Use submenus.

14 years ago Support submenus.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 22:47:49 +0000 (00:47 +0200)]
Support submenus.

* grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
parameter submenu. All users updated.
* grub-core/normal/main.c (free_menu): Rename to ...
(grub_normal_free_menu): ... this. Made global.
* grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
if requested.
* grub-core/normal/menu_entry.c (screen): New field submenu.
(make_screen): Set submenu.
(run): Open new context if requested.
* include/grub/menu.h (grub_menu_entry): New field submenu.
* include/grub/normal.h (grub_normal_free_menu): New proto.

14 years ago Menu entries extractor.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 22:07:05 +0000 (00:07 +0200)]
Menu entries extractor.

* grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
variants.
(GRUB_MOD_INIT): Register new variants.
(GRUB_MOD_FINI): Unregister new variants.
* grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
into grub_cmd_legacy_source.
(grub_cmd_legacy_source): Implement extractor variants.
(GRUB_MOD_INIT): Register new variants.
(GRUB_MOD_FINI): Unregister new variants.
* grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
as an extractor.
* grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
search as an extractor.
* grub-core/commands/test.c (GRUB_MOD_INIT): Declare
test as an extractor.
* grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
as an extractor.
* grub-core/normal/context.c (grub_env_context_open): Reorganised.
(grub_env_new_context): New function.
(grub_env_context_open): Likewise.
(grub_env_extractor_open): Likewise.
(grub_env_extractor_close): Likewise.
* grub-core/script/execute.c (grub_script_execute_cmdline): Handle
grub_extractor_level.
* include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
* include/grub/env.h (grub_env_extractor_open): New proto.
(grub_env_extractor_close): Likewise.
* include/grub/normal.h (grub_extractor_level): New external variable.

14 years agoSupport extraction of legacy entries
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 21:10:29 +0000 (23:10 +0200)]
Support extraction of legacy entries

14 years agoRename jail to extractor
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 21:01:34 +0000 (23:01 +0200)]
Rename jail to extractor

14 years agomerge mainline into jail
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 20:41:59 +0000 (22:41 +0200)]
merge mainline into jail

14 years ago Make cutmem accept a region specification.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 20:24:30 +0000 (22:24 +0200)]
Make cutmem accept a region specification.
Suggested by: Samuel Thibault

* grub-core/mmap/mmap.c (parsemem): New function.
(grub_cmd_cutmem): Handle new arguments.

14 years ago * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 20:11:52 +0000 (22:11 +0200)]
* grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
(GRUB_MOD_INIT): Register new command.
(GRUB_MOD_FINI): Unregister new command.

14 years ago Support some annoying BSD and Minix subpartitions.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 19:45:06 +0000 (21:45 +0200)]
Support some annoying BSD and Minix subpartitions.

* Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
Properly handle concatenation.
* grub-core/kern/device.c (grub_device_iterate): Likewise.
* grub-core/normal/completion.c (iterate_partition): Likewise.
* grub-core/kern/disk.c (grub_disk_open): Make disk->name not
contain partition. All users updated.
* grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
struct.
(grub_openbsdlabel_partition_map): Likewise.
(bsdlabel_partition_map_iterate): Rename to ..
(iterate_real): ... this. New arguments sector, freebsd and pmap.
(bsdlabel_partition_map_iterate): New function.
(netopenbsdlabel_partition_map_iterate): Likewise.
(netbsdlabel_partition_map_iterate): Likewise.
(openbsdlabel_partition_map_iterate): Likewise.
(GRUB_MOD_INIT): Register new partmaps.
(GRUB_MOD_FINI): Unregister new partmaps.
* grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
(grub_partition_msdos_iterate): ... this. All users updated.
Don't support embedding other than in a minix partition.
* include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
proto.
* include/grub/partition.h (grub_partition): New field msdostype.
* util/grub-install.in: Handle openbsd and netbsd types being in
part_bsd module.

14 years agoAdd the comment about net-/openbsdlabel
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 19:34:20 +0000 (21:34 +0200)]
Add the comment about net-/openbsdlabel

14 years agoSupport net-/openbsd labels inside logical partitions
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 19:30:11 +0000 (21:30 +0200)]
Support net-/openbsd labels inside logical partitions

14 years ago Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 18:09:31 +0000 (20:09 +0200)]
Split mdraid.mod into mdraid09.mod and mdraid1x.mod.

* Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
* grub-core/Makefile.core.def (mdraid): Renamed to ...
(mdraid09): ... this.
(mdraid1x): New module.
* grub-core/disk/mdraid_linux.c: Move 1.x parts ...
* grub-core/disk/mdraid1x_linux.c: ...here. All users updated.

14 years ago * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 17:14:29 +0000 (19:14 +0200)]
* grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
vsprintf.

14 years ago* grub-core/commands/efi/lsefimmap.c: Correct header.
Colin Watson [Mon, 20 Sep 2010 16:59:09 +0000 (17:59 +0100)]
* grub-core/commands/efi/lsefimmap.c: Correct header.
* NEWS: Update.

14 years ago* util/grub-editenv.c (argp_parser): Don't pass translated strings
Colin Watson [Mon, 20 Sep 2010 16:56:14 +0000 (17:56 +0100)]
* util/grub-editenv.c (argp_parser): Don't pass translated strings
as printf format strings; the translations might contain '%' which
could cause a crash.
(main): Likewise.
* util/grub-fstest.c (argp_parser): Likewise.
* util/grub-setup.c (argp_parser): Likewise.
(main): Likewise.

14 years ago Use argp in grub-fstest.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 16:38:38 +0000 (18:38 +0200)]
Use argp in grub-fstest.

* util/grub-fstest.c: Don't include getopt.h.
Include argp.h.
(root): New variable.
(args_count): Likewise.
(nparm): Likewise.
(num_disks): Likewise.
(images): Likewise.
(cmd): Likewise.
(debug_str): Likewise.
(args): Likewise.
(options): Transformed to argp.
(usage): Removed.
(main): Split argument parsing into ...
(argp_parser): ... this. Changed to argp format.
(argp): New variable.
(main): Use argp_parse.

14 years ago * grub-core/commands/efi/lsefimmap.c: New file.
Tristan Gingold [Mon, 20 Sep 2010 15:59:25 +0000 (17:59 +0200)]
* grub-core/commands/efi/lsefimmap.c: New file.
* grub-core/Makefile.core.def (lsefimmap): New module.
* include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.

Also-By: Robert Millan <rmh.grub@aybabtu.com>
Also-By: Vladimir Serbinenko <phcoder@gmail.com>
14 years ago Pause the execution (10s max) if any errors are displayed so the user
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 15:46:35 +0000 (17:46 +0200)]
Pause the execution (10s max) if any errors are displayed so the user
has a chance to see them.

* grub-core/kern/err.c (grub_err_printed_errors): New variable.
(grub_print_error): Increment grub_err_printed_errors.
* grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
execution if any errors were displayed.
(show_menu): Remove old code for pause.
* grub-core/normal/menu_entry.c (run): Likewise.
* grub-core/normal/term.c (grub_normal_char_counter): Removed. All
users updated.
(grub_normal_get_char_counter): Likewise.
* include/grub/err.h (grub_err_printed_errors): New external variable.
* include/grub/normal.h (grub_normal_get_char_counter): Removed.

14 years ago Support multiboot VBE info.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 15:01:28 +0000 (17:01 +0200)]
Support multiboot VBE info.

* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
Take VBE info into account.
(fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
(retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
Call fill_vbe_info when appropriate.
(grub_multiboot_make_mbi): Account for the size occupied by VBE info.
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
as supported.
(grub_multiboot_get_mbi_size): Take new tags into account.
(fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
(retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
Call fill_vbe_tag when appropriate.
(grub_multiboot_make_mbi): Properly align tags.
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
function.
* include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
proto.
* include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.

14 years ago Suport manual terminal geometry specification.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 14:27:33 +0000 (16:27 +0200)]
Suport manual terminal geometry specification.

* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
Save state in grub_ofconsole_terminfo_output.
(grub_ofconsole_term): Use grub_terminfo_getwh.
(grub_ofconsole_getwh): Removed.
* grub-core/term/serial.c (grub_serial_getwh): Removed.
(grub_serial_term): Use grub_terminfo_getwh.
* grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
(options): New struct.
(OPTION_*): New enum.
(grub_cmd_terminfo): Transform into extcmd and handle new parameters.
* include/grub/terminfo.h (grub_terminfo_output_state): New fields
width and height.
(grub_terminfo_getwh): New proto.
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.

14 years ago Handle legacy "terminal" command.
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 14:15:50 +0000 (16:15 +0200)]
Handle legacy "terminal" command.

* grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
and FLAG_TERMINAL.
(legacy_commands): Add terminal and title.
(grub_legacy_parse): Handle terminal. Simplify title handling.

14 years ago * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 14:12:15 +0000 (16:12 +0200)]
* grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
parameters overflow.

14 years ago* .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
Colin Watson [Mon, 20 Sep 2010 13:03:47 +0000 (14:03 +0100)]
* .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
widthspec.h.
* docs/grub.texi (Shell-like scripting): Document `!'.
(Network): Simplify using new i386-pc-pxe format.  Mention
grub-mknetdir.
* NEWS: Update.

14 years ago* Makefile.am (SUBDIRS): Restore "."; it's important to force
Colin Watson [Mon, 20 Sep 2010 12:55:49 +0000 (13:55 +0100)]
* Makefile.am (SUBDIRS): Restore "."; it's important to force
ordering, so that e.g. ascii.h is built before grub-core/font/font.c
when needed.

14 years agoAdd terminal support in legacy_parser
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 12:48:17 +0000 (14:48 +0200)]
Add terminal support in legacy_parser

14 years ago* grub-core/commands/efi/lsefisystab.c: Correct header.
Colin Watson [Mon, 20 Sep 2010 12:18:41 +0000 (13:18 +0100)]
* grub-core/commands/efi/lsefisystab.c: Correct header.
* grub-core/commands/efi/lssal.c: Likewise.
* grub-core/commands/testload.c: Likewise.

14 years ago* util/grub-mkrescue.in: Add explicit root argument to --set to
Colin Watson [Mon, 20 Sep 2010 12:14:44 +0000 (13:14 +0100)]
* util/grub-mkrescue.in: Add explicit root argument to --set to
prevent the UUID being interpreted as an argument to --set (matches
previous change to prepare_grub_to_access_device).

14 years ago* kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
Colin Watson [Mon, 20 Sep 2010 11:12:33 +0000 (12:12 +0100)]
* kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
on FreeBSD.  Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
the verbosity of later #ifs.
(find_partition_start): Define this function on FreeBSD too.
(device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
function.
(grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
on FreeBSD.

14 years ago * util/grub-editenv.c: Use argp instead of getopt.
Yves Blusseau [Mon, 20 Sep 2010 10:39:28 +0000 (12:39 +0200)]
* util/grub-editenv.c: Use argp instead of getopt.

14 years ago * util/grub-setup.c: Use argp instead of getopt.
Yves Blusseau [Mon, 20 Sep 2010 10:37:37 +0000 (12:37 +0200)]
* util/grub-setup.c: Use argp instead of getopt.

14 years ago Use gnulib-tool to create gnulib source files.
Yves Blusseau [Mon, 20 Sep 2010 10:35:33 +0000 (12:35 +0200)]
Use gnulib-tool to create gnulib source files.

    * Add gnulib files generated by gnulib-tool in build-aux, m4 and
    grub-core/gnulib directories
    * .bzignore: Add **/.deps and autogenerated gnulib files
    * configure.ac: Assign auxiliary directory to build-aux, add invocation
    of gnulib macros, add grub-core/gnulib/Makefile
    * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
    include m4 directory to aclocal.
    * Makefile.util.def: Remove direct compilation of gnulib source files
    and use the new grub-core/gnulib/libgnu.a.
    * build-aux/config.rpath: move config.rpath from top directory to
    build-aux
    * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
    in gnulib headers
    * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
    * grub-core/Makefile.core.def: Remove unnecessary extra_dist
    * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
    header.
    * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
    string.

14 years agomerge mainline into gingold3
Vladimir 'phcoder' Serbinenko [Mon, 20 Sep 2010 10:23:10 +0000 (12:23 +0200)]
merge mainline into gingold3

14 years ago * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
Yves Blusseau [Mon, 20 Sep 2010 09:49:57 +0000 (11:49 +0200)]
* .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
    grub-core/genmod.sh and grub-core/gensyminfo.sh

14 years ago Add a test for echo command options.
BVK Chaitanya [Mon, 20 Sep 2010 08:23:55 +0000 (13:53 +0530)]
Add a test for echo command options.

* tests/grub_cmd_echo.in: New test.
* Makefile.util.def: Rules for new test.

14 years agoecho test case
BVK Chaitanya [Mon, 20 Sep 2010 08:21:16 +0000 (13:51 +0530)]
echo test case

14 years ago Remove crc.mod and move crc command to hashsum.mod.
Szymon Janc [Sun, 19 Sep 2010 23:40:58 +0000 (01:40 +0200)]
Remove crc.mod and move crc command to hashsum.mod.
Remove lib/crc.c - users updated to use gcrypt implementation.

* grub-core/commands/crc.c: Removed.
* grub-core/Makefile.core.def (crc): Module removed.
* grub-core/commands/hashsum.c (aliases[]): Add crc alias.
* grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
* grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
* grub-core/lib/crc.c: Removed.
* include/grub/lib/crc.h: Removed.
* Makefile.util.def (crc): Remove lib/crc.c
* grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
* util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
* Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
* Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
* Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
* grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.

14 years ago * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
Vladimir 'phcoder' Serbinenko [Sun, 19 Sep 2010 22:06:45 +0000 (00:06 +0200)]
* grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.

14 years ago Split config.h for util and core.
Vladimir 'phcoder' Serbinenko [Sun, 19 Sep 2010 20:22:43 +0000 (22:22 +0200)]
Split config.h for util and core.

* acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
(ADDR32): Likewise.
(DATA32): Likewise.
(BSS_START_SYMBOL): Likewise.
(END_SYMBOL): Likewise.
(NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
(grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
* config.h.in: New file.
* configure.ac: Use config-util.h as config define file.
Rename MACHINE into GRUB_MACHINE. All users updated.
(NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
updated.
(NESTED_FUNC_ATTR): Likewise.
Substitue new variables.
(COND_HAVE_ASM_USCORE): New conditional.
* grub-core/Makefile.am (ASM_PREFIX): New variable.
(kernel_syms.lst): Use ASM_PREFIX.
* grub-core/kern/emu/console.c: Include config-util.h.
* grub-core/kern/emu/misc.c: Likewise.
* grub-core/kern/emu/mm.c: Likewise.
* include/grub/emu/misc.h: Likewise.
* include/grub/libgcc.h: Likewise.