]> git.proxmox.com Git - grub2.git/log
grub2.git
10 years agoAnnotate some debconf questions as internal-use.
Colin Watson [Sun, 8 Dec 2013 23:31:09 +0000 (23:31 +0000)]
Annotate some debconf questions as internal-use.

10 years agoUpdate Conflicts for grub-xen.
Colin Watson [Sun, 8 Dec 2013 23:30:17 +0000 (23:30 +0000)]
Update Conflicts for grub-xen.

10 years agoMention some more bug-fixes in debian/changelog.
Colin Watson [Sun, 8 Dec 2013 22:24:07 +0000 (22:24 +0000)]
Mention some more bug-fixes in debian/changelog.

10 years agoMerge branch 'upstream' into experimental
Colin Watson [Sun, 8 Dec 2013 19:20:37 +0000 (19:20 +0000)]
Merge branch 'upstream' into experimental

10 years ago * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
Vladimir Serbinenko [Sun, 8 Dec 2013 17:27:40 +0000 (18:27 +0100)]
* grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
* grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.

10 years ago * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
Vladimir Serbinenko [Sun, 8 Dec 2013 17:21:10 +0000 (18:21 +0100)]
* grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
compilation with GCC <= 4.2.
* grub-core/kern/emu/argp_common.c: Likewise.

10 years ago * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
Vladimir Serbinenko [Sun, 8 Dec 2013 17:19:42 +0000 (18:19 +0100)]
* include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
right platform rather than leaking to sparc64-emu.

10 years ago * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:16:32 +0000 (18:16 +0100)]
* grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
But ensure that the variables in question are indeed unsigned.

10 years ago * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:14:32 +0000 (18:14 +0100)]
* grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.

10 years ago Remove grub_memalign on emu.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:12:20 +0000 (18:12 +0100)]
Remove grub_memalign on emu.

10 years ago * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
Vladimir Serbinenko [Sun, 8 Dec 2013 17:10:05 +0000 (18:10 +0100)]
* grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
truncate incomplete lines but instead flushes them.

10 years ago Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
Vladimir Serbinenko [Sun, 8 Dec 2013 17:07:41 +0000 (18:07 +0100)]
Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
and implement windows variant.

10 years ago Fix mips-emu compilation.
Vladimir Serbinenko [Sun, 8 Dec 2013 16:49:02 +0000 (17:49 +0100)]
Fix mips-emu compilation.

10 years ago * configure.ac: Check for freetype library usability.
Vladimir Serbinenko [Sun, 8 Dec 2013 09:50:59 +0000 (10:50 +0100)]
* configure.ac: Check for freetype library usability.

10 years ago Make arm-emu work.
Vladimir Serbinenko [Sun, 8 Dec 2013 01:59:21 +0000 (02:59 +0100)]
Make arm-emu work.

10 years ago * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
Vladimir Serbinenko [Sat, 7 Dec 2013 22:28:20 +0000 (23:28 +0100)]
* util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.

10 years agoUpdate color_normal and color_highlight defaults (light-gray instead of white)
Andrey Borzenkov [Sat, 7 Dec 2013 20:00:26 +0000 (00:00 +0400)]
Update color_normal and color_highlight defaults (light-gray instead of white)

10 years agouse light-gray as default color in normal.mod for consistency
Andrey Borzenkov [Sat, 7 Dec 2013 16:00:48 +0000 (20:00 +0400)]
use light-gray as default color in normal.mod for consistency

Defalut font color on PC console seems to be light-gray; this is
what user also gets in rescue prompt and what is defined as
GRUB_TERM_DEFAULT_NORMAL_COLOR. But normal.mod defaults to white.
This makes unpleasant visual effect as colors are changed after kernel
is booted.

Use the same color eveywhere for consistency and default to light-gray
as this is also what at least Linux kernel is using by default.

10 years ago Transform -C option to grub-mkstandalone to --core-compress available
Vladimir Serbinenko [Sat, 7 Dec 2013 15:18:22 +0000 (16:18 +0100)]
Transform -C option to grub-mkstandalone to --core-compress available
in all grub-install flavours.

10 years ago Merge GRUBFS and GRUB_FS variables.
Vladimir Serbinenko [Sat, 7 Dec 2013 15:09:39 +0000 (16:09 +0100)]
Merge GRUBFS and GRUB_FS variables.

10 years agosecond attempt to fix using grub device name as install device
Andrey Borzenkov [Sat, 7 Dec 2013 14:58:19 +0000 (18:58 +0400)]
second attempt to fix using grub device name as install device

grub-install already resolved passed install device to grub device. So do the
same as grub-setup and strip parenthesis if we get legacy (hdX).

I accidentally commited revert of 69ca97c820a623f85baf2db1627e19bef9c24e44 and
this patch as part of f585c905054b8c74e6e0a67341e84accfb816912. So this commit
just adds ChangeLog entry and cosmetic whitespace fix.

10 years agofix partition module names when /boot is on diskfilter
Andrey Borzenkov [Sat, 7 Dec 2013 11:00:37 +0000 (15:00 +0400)]
fix partition module names when /boot is on diskfilter

/usr/local/grub2/sbin/grub-install: info: grub-mkimage --directory '/usr/local/grub2/lib/grub/i386-pc' --prefix '(mduuid/e6d1dcf06cea72140bafae74a8677f36)/grub' --output '/boot/grub/i386-pc/core.img' --format 'i386-pc' --compression 'auto'  'ext2' 'msdos' 'msdos' 'diskfilter' 'mdraid1x' 'biosdisk'
.
/usr/local/grub2/sbin/grub-install: error: cannot open `/usr/local/grub2/lib/grub/i386-pc/msdos.mod': No such file or directory.

Introduce common helper for both diskfilter and non-diskfilter case that
converts partition map names into module names.

10 years ago * configure.ac: Make unifont mandatory on coreboot.
Vladimir Serbinenko [Sat, 7 Dec 2013 10:47:19 +0000 (11:47 +0100)]
* configure.ac: Make unifont mandatory on coreboot.

10 years ago * configure.ac: Skip unifont 6.3 pcf and bdf.
Vladimir Serbinenko [Sat, 7 Dec 2013 10:46:46 +0000 (11:46 +0100)]
* configure.ac: Skip unifont 6.3 pcf and bdf.

10 years ago * Makefile.am: Remove partial font files if generation failed.
Vladimir Serbinenko [Sat, 7 Dec 2013 10:39:35 +0000 (11:39 +0100)]
* Makefile.am: Remove partial font files if generation failed.

10 years agoadd grub_qsort_strcmp to use when sorting array of strings
Andrey Borzenkov [Sat, 7 Dec 2013 10:29:00 +0000 (14:29 +0400)]
add grub_qsort_strcmp to use when sorting array of strings

Compare function used in qsort gets arguments by reference, so strcmp
cannot be used directly - it expects pointer to char, but gets pointer
to pointer to char.

Introduce new helper grub_qsort_strcmp and use it in grub-install.
This helper is going to be used in a couple more places as well so
add it to global file, not in grub-install.c.

10 years agofix use of grub-probe instead of ${grub_probe}
Andrey Borzenkov [Sat, 7 Dec 2013 10:24:25 +0000 (14:24 +0400)]
fix use of grub-probe instead of ${grub_probe}

10 years ago Don't add -mlong-calls when compiling with clang.
Vladimir Serbinenko [Fri, 6 Dec 2013 10:58:17 +0000 (11:58 +0100)]
Don't add -mlong-calls when compiling with clang.

10 years ago * configure.ac: Fix a typo.
Vladimir Serbinenko [Fri, 6 Dec 2013 09:02:24 +0000 (10:02 +0100)]
* configure.ac: Fix a typo.

10 years ago Revamp relocation handling.
Vladimir Serbinenko [Fri, 6 Dec 2013 08:18:55 +0000 (09:18 +0100)]
Revamp relocation handling.

Move more code to common dl.c. Add missing veneers for arm and arm64.
Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)

10 years ago * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
Vladimir Serbinenko [Thu, 5 Dec 2013 22:07:10 +0000 (23:07 +0100)]
* util/grub-mkimagexx.c: Fix reloc section generation for ia64.

10 years agogentpl.py: Use python3-style print function
Mike Gilbert [Wed, 4 Dec 2013 15:24:21 +0000 (10:24 -0500)]
gentpl.py: Use python3-style print function

10 years ago * util/grub-install.c: Mention Boot* variable.
Vladimir Serbinenko [Thu, 5 Dec 2013 16:05:21 +0000 (17:05 +0100)]
* util/grub-install.c: Mention Boot* variable.

10 years agoPacify compiler warning
Colin Watson [Thu, 5 Dec 2013 15:48:27 +0000 (15:48 +0000)]
Pacify compiler warning

* grub-core/osdep/linux/hostdisk.c
(grub_util_find_partition_start_os): Initialise start to avoid
spurious compiler warning.

10 years agoOn Linux, read partition start offsets from sysfs if possible
Colin Watson [Thu, 5 Dec 2013 13:51:52 +0000 (13:51 +0000)]
On Linux, read partition start offsets from sysfs if possible

This lets us cope with block device drivers that don't implement
HDIO_GETGEO.  Fixes Ubuntu bug #1237519.

* grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
function.
(sysfs_partition_start): Likewise.
(grub_util_find_partition_start_os): Try sysfs_partition_start
before HDIO_GETGEO.

10 years agogrub-core/lib/fdt.c: correctly update size_dt_struct in add_subnode()
Leif Lindholm [Wed, 4 Dec 2013 12:59:21 +0000 (12:59 +0000)]
grub-core/lib/fdt.c: correctly update size_dt_struct in add_subnode()

10 years ago Handle unaligned .bss on sparc64.
Vladimir Serbinenko [Wed, 4 Dec 2013 19:05:24 +0000 (20:05 +0100)]
Handle unaligned .bss on sparc64.

Current code improperly assumes that both __bss_start and _end are
aligned to 8-bytes. Eliminating this assumption and explicitly align
modules.

10 years ago * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
Vladimir Serbinenko [Wed, 4 Dec 2013 18:54:37 +0000 (19:54 +0100)]
* grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
so it doesn't land in the middle of loaded image.

10 years agoAmend sleep_shift.patch to handle the extra Escape-checking site.
Colin Watson [Wed, 4 Dec 2013 16:12:48 +0000 (16:12 +0000)]
Amend sleep_shift.patch to handle the extra Escape-checking site.

10 years agoFix syntax error in generated grub-xen.postinst.
Colin Watson [Wed, 4 Dec 2013 15:33:04 +0000 (15:33 +0000)]
Fix syntax error in generated grub-xen.postinst.

10 years agoFix generation of grub-emu debhelper files.
Colin Watson [Wed, 4 Dec 2013 14:59:27 +0000 (14:59 +0000)]
Fix generation of grub-emu debhelper files.

10 years agoFix grub-extras setup code.
Colin Watson [Wed, 4 Dec 2013 14:17:32 +0000 (14:17 +0000)]
Fix grub-extras setup code.

10 years agoFix debhelper file autogeneration to handle grub-xen*
Colin Watson [Wed, 4 Dec 2013 14:16:12 +0000 (14:16 +0000)]
Fix debhelper file autogeneration to handle grub-xen*

Putting two platforms (i386-xen and x86_64-xen) in grub-xen* confused
the old platform substitution code.

10 years ago * configure.ac: Move all warning options that may be absent in
Vladimir Serbinenko [Wed, 4 Dec 2013 13:53:25 +0000 (14:53 +0100)]
* configure.ac: Move all warning options that may be absent in
gcc >= 3.1 to optional.

Note: while this allows to compile with older GCC, official requirements
remain the same and no support for older GCC.

10 years agoFix grub-shell to avoid breaking "make distcheck"
Colin Watson [Wed, 4 Dec 2013 13:35:39 +0000 (13:35 +0000)]
Fix grub-shell to avoid breaking "make distcheck"

Copying the themes directory in grub-shell isn't
parallel-test-friendly and breaks on the second test when the source
directory is read-only (as in "make distcheck").  Instead, add a
hidden --themes-directory option to grub-mkrescue et al, and use it
in grub-shell.

10 years ago * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
Vladimir Serbinenko [Wed, 4 Dec 2013 13:32:04 +0000 (14:32 +0100)]
* conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
as it's no longer necessarry.

10 years agoFix Xen build rules.
Colin Watson [Tue, 3 Dec 2013 22:26:50 +0000 (22:26 +0000)]
Fix Xen build rules.

10 years ago * configure.ac: Allow compilation with older GCC for ARM.
Vladimir Serbinenko [Wed, 4 Dec 2013 11:42:09 +0000 (12:42 +0100)]
* configure.ac: Allow compilation with older GCC for ARM.

10 years ago * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
Vladimir Serbinenko [Wed, 4 Dec 2013 11:20:56 +0000 (12:20 +0100)]
* configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
* INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
ppc.

10 years ago * grub-core/kern/emu/main.c: Ignore missing prototype for main.
Vladimir Serbinenko [Wed, 4 Dec 2013 09:28:23 +0000 (10:28 +0100)]
* grub-core/kern/emu/main.c: Ignore missing prototype for main.

10 years ago Pass font config to config.h and not by TARGET_CFLAGS as adding
Vladimir Serbinenko [Wed, 4 Dec 2013 09:25:53 +0000 (10:25 +0100)]
Pass font config to config.h and not by TARGET_CFLAGS as adding
arguments doesn't work if TARGET_CFLAGS is specified on command
line.

10 years ago * configure.ac: Add -Wvla if compiler supports it.
Vladimir Serbinenko [Wed, 4 Dec 2013 09:08:57 +0000 (10:08 +0100)]
* configure.ac: Add -Wvla if compiler supports it.

10 years ago * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
Vladimir Serbinenko [Wed, 4 Dec 2013 09:05:33 +0000 (10:05 +0100)]
* grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
Remove variable length arrays.
* grub-core/term/efi/console.c (grub_console_putchar): Likewise.

10 years ago * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
Vladimir Serbinenko [Wed, 4 Dec 2013 08:48:36 +0000 (09:48 +0100)]
* grub-core/kern/i386/qemu/init.c: Remove variable length arrays.

10 years ago * include/grub/types.h: Declare all byteswaps as inline functions
Vladimir Serbinenko [Wed, 4 Dec 2013 07:42:35 +0000 (08:42 +0100)]
* include/grub/types.h: Declare all byteswaps as inline functions
except compile-time ones.

Solves variable shadowing in constructions like
cpu_to_le (le_to_cpu(x) + 1).

10 years ago * grub-core/kern/efi/efi.c: Remove variable length arrays.
Vladimir Serbinenko [Wed, 4 Dec 2013 07:39:22 +0000 (08:39 +0100)]
* grub-core/kern/efi/efi.c: Remove variable length arrays.

10 years ago * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
Vladimir Serbinenko [Wed, 4 Dec 2013 07:26:13 +0000 (08:26 +0100)]
* grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
minutes.

10 years ago * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
Vladimir Serbinenko [Wed, 4 Dec 2013 07:10:01 +0000 (08:10 +0100)]
* grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
* grub-core/net/drivers/ieee1275/ofnet.c: Likewise.

10 years agoAdd GRUB_RECOVERY_TITLE option, to allow the controversial "recovery mode" text to...
Colin Watson [Tue, 3 Dec 2013 18:47:23 +0000 (18:47 +0000)]
Add GRUB_RECOVERY_TITLE option, to allow the controversial "recovery mode" text to be customised (LP: #1240360).

10 years agoSilence error message on initial installation when /etc/default/grub does not yet...
Colin Watson [Mon, 25 Nov 2013 12:26:17 +0000 (12:26 +0000)]
Silence error message on initial installation when /etc/default/grub does not yet exist.

10 years agoUpdate debian/legacy/update-grub to the version from grub 0.97-67.
Colin Watson [Tue, 3 Dec 2013 18:39:26 +0000 (18:39 +0000)]
Update debian/legacy/update-grub to the version from grub 0.97-67.

10 years agoAdd debian/legacy/update-grub to version control
Colin Watson [Tue, 3 Dec 2013 18:37:49 +0000 (18:37 +0000)]
Add debian/legacy/update-grub to version control

This file is copied from grub-legacy/debian/update-grub.

10 years agoManage grub-extras using a git submodule
Colin Watson [Tue, 3 Dec 2013 18:34:36 +0000 (18:34 +0000)]
Manage grub-extras using a git submodule

10 years agoMerge branch 'upstream' into experimental
Colin Watson [Tue, 3 Dec 2013 18:17:18 +0000 (18:17 +0000)]
Merge branch 'upstream' into experimental

10 years ago* grub-core/Makefile.core.def (setjmp): Distribute
Colin Watson [Tue, 3 Dec 2013 18:11:18 +0000 (18:11 +0000)]
* grub-core/Makefile.core.def (setjmp): Distribute
lib/arm64/setjmp.S.

10 years agoMake grub-xen contain both i386-xen and x86_64-xen ports.
Colin Watson [Tue, 3 Dec 2013 17:47:44 +0000 (17:47 +0000)]
Make grub-xen contain both i386-xen and x86_64-xen ports.

They may well both be useful on the same system, and there isn't much
value in separating them.

10 years agobump version
Colin Watson [Tue, 3 Dec 2013 17:33:03 +0000 (17:33 +0000)]
bump version

10 years agoRemove some repetition.
Colin Watson [Tue, 3 Dec 2013 17:29:13 +0000 (17:29 +0000)]
Remove some repetition.

10 years agoNew port to arm64-efi.
Colin Watson [Tue, 3 Dec 2013 17:15:10 +0000 (17:15 +0000)]
New port to arm64-efi.

10 years agoChangelog for hidden timeout revamp.
Colin Watson [Tue, 3 Dec 2013 17:12:11 +0000 (17:12 +0000)]
Changelog for hidden timeout revamp.

10 years agoMerge branch 'upstream' into experimental
Colin Watson [Tue, 3 Dec 2013 17:10:32 +0000 (17:10 +0000)]
Merge branch 'upstream' into experimental

10 years agoMerge branch 'cjwatson/timeout-style'
Colin Watson [Tue, 3 Dec 2013 16:15:45 +0000 (16:15 +0000)]
Merge branch 'cjwatson/timeout-style'

10 years agoCredit and bug reference.
Colin Watson [Tue, 3 Dec 2013 16:14:01 +0000 (16:14 +0000)]
Credit and bug reference.

10 years agoReduce nesting level.
Colin Watson [Tue, 3 Dec 2013 16:11:00 +0000 (16:11 +0000)]
Reduce nesting level.

10 years ago * util/config.c: Add missing pointer adjustment.
Vladimir Serbinenko [Mon, 2 Dec 2013 05:51:13 +0000 (06:51 +0100)]
* util/config.c: Add missing pointer adjustment.
Reported by: qwertial

10 years agofix libgrub.pp build post arm64 merge
Andrey Borzenkov [Sat, 30 Nov 2013 18:36:10 +0000 (22:36 +0400)]
fix libgrub.pp build post arm64 merge

grub-core/kern/arm64/dl_helper.c:26:28: fatal error: grub/cpu/reloc.h: No such file or directory

10 years agoMissing ChangeLog entry
Vladimir Serbinenko [Sat, 30 Nov 2013 15:51:35 +0000 (16:51 +0100)]
Missing ChangeLog entry

10 years agoNew port arm64-efi
Leif Lindholm [Sat, 30 Nov 2013 15:49:05 +0000 (16:49 +0100)]
New port arm64-efi

10 years agodocument sleep command exit codes
Andrey Borzenkov [Sat, 30 Nov 2013 10:57:11 +0000 (14:57 +0400)]
document sleep command exit codes

10 years ago Ensure that -mno-unaligned-access or some equivalent option is used.
Vladimir Serbinenko [Sat, 30 Nov 2013 10:31:14 +0000 (11:31 +0100)]
Ensure that -mno-unaligned-access or some equivalent option is used.

10 years ago * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
Vladimir Serbinenko [Sat, 30 Nov 2013 10:19:06 +0000 (11:19 +0100)]
* grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
-march=armv3.

10 years ago Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
Vladimir Serbinenko [Sat, 30 Nov 2013 10:14:30 +0000 (11:14 +0100)]
Remove leftover GRUB_IA64_DL_TRAMP_SIZE.

10 years agoRemove a few references to GRUB_HIDDEN_TIMEOUT*
Colin Watson [Fri, 29 Nov 2013 17:19:37 +0000 (17:19 +0000)]
Remove a few references to GRUB_HIDDEN_TIMEOUT*

Reported by Andrey Borzenkov.

10 years agoConsolidate timeout generation code a bit.
Colin Watson [Fri, 29 Nov 2013 16:11:53 +0000 (16:11 +0000)]
Consolidate timeout generation code a bit.

10 years agoConsistently ignore GRUB_TIMEOUT if GRUB_HIDDEN_TIMEOUT is set
Colin Watson [Fri, 29 Nov 2013 15:30:44 +0000 (15:30 +0000)]
Consistently ignore GRUB_TIMEOUT if GRUB_HIDDEN_TIMEOUT is set

Pointed out by Vladimir Serbinenko.

10 years agoFix documentation of behaviour after pressing ESC
Colin Watson [Fri, 29 Nov 2013 15:25:43 +0000 (15:25 +0000)]
Fix documentation of behaviour after pressing ESC

Pointed out by Andrey Borzenkov.

10 years agoAdd GRUB_TIMEOUT_STYLE_BUTTON support
Colin Watson [Fri, 29 Nov 2013 15:18:05 +0000 (15:18 +0000)]
Add GRUB_TIMEOUT_STYLE_BUTTON support

Suggested by Vladimir Serbinenko.

10 years agoMove deprecated grub-mkconfig options to a separate table
Colin Watson [Fri, 29 Nov 2013 14:59:25 +0000 (14:59 +0000)]
Move deprecated grub-mkconfig options to a separate table

Suggested by Andrey Borzenkov.

10 years agoFix "make -C docs dvi"
Colin Watson [Fri, 29 Nov 2013 13:48:23 +0000 (13:48 +0000)]
Fix "make -C docs dvi"

* docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
builds, since we don't have an EPS version of font_char_metrics.png.
Add leading dot to image extension per the Texinfo documentation.

10 years agoMerge branch 'upstream' into experimental
Colin Watson [Fri, 29 Nov 2013 12:29:22 +0000 (12:29 +0000)]
Merge branch 'upstream' into experimental

10 years agoFix build with FreeType 2.5.1
Colin Watson [Fri, 29 Nov 2013 12:19:36 +0000 (12:19 +0000)]
Fix build with FreeType 2.5.1

* util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
<freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
* util/grub-gen-widthspec.c: Likewise.
* util/grub-mkfont.c: Likewise.

10 years agoBuild-depend on libxen-dev for the Xen port
Colin Watson [Fri, 29 Nov 2013 10:58:09 +0000 (10:58 +0000)]
Build-depend on libxen-dev for the Xen port

Also restrict grub-xen* architectures to "i386 amd64" rather than
"any-i386 any-amd64", since libxen-dev is only available on Linux.

10 years agofix using grub device name as install device
Andrey Borzenkov [Fri, 29 Nov 2013 07:32:34 +0000 (11:32 +0400)]
fix using grub device name as install device

Shell version of grub-install called grub-setup which resolved
install device name and called main setup routine. C version of
grub-install calls main setup routine directly, which leads
to the error:

grub2-install: info: grub-bios-setup  --verbose  --force  --skip-fs-probe --directory='/boot/grub2/i386-pc' --device-map='/boot/grub2/device.map' '(hd2)'.
grub2-install: info: reading /boot/grub2/i386-pc/boot.img.
grub2-install: info: reading /boot/grub2/i386-pc/core.img.
grub2-install: info: root is `(null)', dest is `(hd2)'.
grub2-install: info: Opening dest.
grub2-install: info: drive = -1.
grub2-install: error: disk `(hd2)' not found.

Move resolving of destination device name into main setup routine
so it is done consistently in both cases.

10 years ago * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
Vladimir Serbinenko [Fri, 29 Nov 2013 04:52:20 +0000 (05:52 +0100)]
* grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.

10 years ago * util/grub-fstest.c: Remove variable length arrays.
Vladimir Serbinenko [Fri, 29 Nov 2013 04:50:32 +0000 (05:50 +0100)]
* util/grub-fstest.c: Remove variable length arrays.

10 years ago * grub-core/osdep/linux/ofpath.c: Check return value of read.
Vladimir Serbinenko [Fri, 29 Nov 2013 04:46:19 +0000 (05:46 +0100)]
* grub-core/osdep/linux/ofpath.c: Check return value of read.

10 years ago * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
Vladimir Serbinenko [Fri, 29 Nov 2013 03:14:26 +0000 (04:14 +0100)]
* util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
computing crc32 rather than handling with md fundtions directly.

10 years ago * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
Vladimir Serbinenko [Fri, 29 Nov 2013 03:05:44 +0000 (04:05 +0100)]
* util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
checking fwstart.img rather than md fundtions directly.

10 years ago * util/grub-mkrescue.c (main): Check that fread succeeded.
Vladimir Serbinenko [Fri, 29 Nov 2013 02:54:21 +0000 (03:54 +0100)]
* util/grub-mkrescue.c (main): Check that fread succeeded.

10 years ago* conf/Makefile.common: Remove -mexplicit-relocs and -DUSE_ASCII_FALLBACK on yeeloong.
Vladimir Serbinenko [Fri, 29 Nov 2013 02:45:50 +0000 (03:45 +0100)]
* conf/Makefile.common: Remove -mexplicit-relocs and -DUSE_ASCII_FALLBACK on yeeloong.

-DUSE_ASCII_FALLBACK is already added by font snippets.
-mexplicit-relocs isn't needed is compiler/assemblera are
configured properly.
If they're not we shouldn't attempt to fix it by ourselves.
Binary compare between before and after shows no difference.