Felix Zielcke [Wed, 25 Nov 2009 18:13:35 +0000 (19:13 +0100)]
2009-11-25 Felix Zielcke <fzielcke@z-51.de>
* util/grub.d/10_linux.in (linux_entry): Quote the arguments to
printf and print a newline after the menuentry header line.
* util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
Felix Zielcke [Wed, 25 Nov 2009 17:37:04 +0000 (18:37 +0100)]
2009-11-25 Felix Zielcke <fzielcke@z-51.de>
autoconf >= 2.60 support $(localedir).
* INSTALL: Note that autoconf 2.60 is required.
* configure.ac (AC_PREREQ): Bump to 2.60.
* util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
* util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
Felix Zielcke [Tue, 24 Nov 2009 14:00:25 +0000 (15:00 +0100)]
2009-11-24 Felix Zielcke <fzielcke@z-51.de>
* util/grub-mkrelpath.c: New file.
* conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
(grub_mkrelpath_SOURCES): New variable.
* include/grub/util/misc.h: New function prototype.
* util/misc.c (make_system_path_relative_to_its_root): New function.
* util/grub-mkconfig_lib.in (bindir): New variable.
(grub_mkrelpath): Likewise.
(make_system_path_relative_to_its_root): Use grub-mkrelpath.
* util/probe.c (probe): Make the file path relative to its root.
Change a info message to use the GRUB path. Enable again the
check if we can read the file with GRUB facilities.
* util/i386/pc/grub-setup.c (setup): Make core.img path relative
to its root.
Felix Zielcke [Tue, 24 Nov 2009 12:55:33 +0000 (13:55 +0100)]
* Set TARGET_CC= to really use gcc-4.4 everywhere. Also pass it and CC
as arguments to ./configure instead of env vars so they get
preserved.
* Set TARGET_CC=$(CC) to really use gcc-4.4 everywhere. Also pass it
and CC as arguments to ./configure instead of env vars so they get
preserved.
Felix Zielcke [Tue, 24 Nov 2009 07:29:49 +0000 (08:29 +0100)]
Create fake devices for devices not listed in device.map.
This also makes dmraid and multipath work as long as
search --fs-uuid works. (Closes: #442382, #540549, LP: #392136)
Robert Millan [Mon, 23 Nov 2009 20:30:56 +0000 (20:30 +0000)]
2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
* util/hostdisk.c: Include `<grub/i18n.h>'.
(find_grub_drive): Use ARRAY_SIZE for map size calculation.
(make_device_name): Rewrite using asprintf.
(convert_system_partition_to_system_disk): Replace 0 with NULL.
(find_system_device): If a device is not found, generate one just
by reusing the OS path name.
(read_device_map): Make it permissible for device.map not to exist.
Robert Millan [Mon, 23 Nov 2009 15:37:33 +0000 (15:37 +0000)]
2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
* script/sh/execute.c: Move from here ...
* script/execute.c: ... to here. Update all users.
* script/sh/function.c: Move from here ...
* script/function.c: ... to here. Update all users.
* script/sh/lexer.c: Move from here ...
* script/lexer.c: ... to here. Update all users.
* script/sh/main.c: Move from here ...
* script/main.c: ... to here. Update all users.
* script/sh/parser.y: Move from here ...
* script/parser.y: ... to here. Update all users.
* script/sh/script.c: Move from here ...
* script/script.c: ... to here. Update all users.
* include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
`<grub/machine/machine.h>'
[!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
* util/misc.c: Remove `<grub/machine/machine.h>' and
`<grub/machine/time.h>'.
* Makefile.in (enable_grub_emu): Remove variable.
Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
* conf/any-emu.rmk: New file.
* conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
(grub_emu_init.c): Move from here ...
* conf/any-emu.rmk: ... to here.
* conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
(grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
* conf/any-emu.rmk: ... to here.
Robert Millan [Mon, 23 Nov 2009 13:18:07 +0000 (13:18 +0000)]
2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
* Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
`$(XGETTEXT)'.
* include/grub/i18n.h (N_): New macro.
* util/mkisofs/mkisofs.h: Likewise.
* util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
around N_().
(usage): Use gettext() to translate help strings when printing them.
Felix Zielcke [Sun, 22 Nov 2009 19:45:24 +0000 (20:45 +0100)]
Use grub-probe to get the GRUB device of /boot/grub instead of
passing (hd0) to grub-install when creating the core.img with
chainloading. This avoids the (UUID=) hack slowness in case
/boot/grub is on a different disk then (hd0) in device.map.
Felix Zielcke [Sat, 21 Nov 2009 22:23:35 +0000 (23:23 +0100)]
2009-11-21 Felix Zielcke <fzielcke@z-51.de>
* Makefile.in (target): Use make's builtin $(shell) function
instead of calling directly $(SHELL) to create the locale directories,
inside the $(foreach) function.
Samuel Thibault [Sat, 21 Nov 2009 17:00:23 +0000 (18:00 +0100)]
2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
* util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
<hurd/fs.h>
[__GNU__] (grub_guess_root_device): Call file_name_lookup and
file_get_storage_info to implement grub_guess_root_device.
Robert Millan [Sat, 21 Nov 2009 13:22:41 +0000 (13:22 +0000)]
2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
* util/grub-mkrescue.in: Use source directory direcly (without copiing
or hardlinking it). Remove -J option, Joliet is not compatible with
multiple source directories.
Robert Millan [Sat, 21 Nov 2009 13:11:38 +0000 (13:11 +0000)]
2009-11-21 Carles Pina i Estany <carles@pina.cat>
2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
* util/grub-mkrescue.in: Recognize `--override-directory' option.
(process_input_dir): New function. Process an arbitrary input
directory.
Misc adjustments to support both "override mode" and system-wide mode.
Felix Zielcke [Sat, 21 Nov 2009 09:13:54 +0000 (10:13 +0100)]
Change the bt-utf-source build dependency to xfonts-unifont. It's
more complete, better maintained and grub-mkfont supports actually
more then BDF fonts as input, thanks to libfreetype.
* include/grb/i18n_grub.h: same than i18n.h but for Grub Kernel.
* include/grub/misc.h: includes i18n_grub.h.
* normal/menu_text.c: gettize more strings.
* po/POTFILES: Update with new file.
* po/ca.po: New strings.