]>
git.proxmox.com Git - grub2.git/log
Vladimir Serbinenko [Sat, 18 Jan 2014 18:43:19 +0000 (19:43 +0100)]
* Makefile.am (default_payload.elf): Add modules
multiboot cbmemc linux16 gzio echo help.
Mike Gilbert [Sat, 18 Jan 2014 18:41:15 +0000 (19:41 +0100)]
* Makefile.util.def: Link grub-ofpathname with zfs libs.
Vladimir Serbinenko [Sat, 18 Jan 2014 18:26:40 +0000 (19:26 +0100)]
* grub-core/commands/macbless.c: Rename FILE and DIR to avoid
conflicts.
Reported by: Andrey Borzenkov.
Andrey Borzenkov [Sat, 18 Jan 2014 17:22:57 +0000 (21:22 +0400)]
fix include loop on MinGW due to libintl.h pulling stdio.h
In file included from ./include/grub/dl.h:23:0,
from grub-core/lib/libgcrypt-grub/cipher/rfc2268.c:3:
./include/grub/list.h:34:18: warning: conflicting types for 'grub_list_push' [en
abled by default]
void EXPORT_FUNC(grub_list_push) (grub_list_t *head, grub_list_t item);
^
./include/grub/symbol.h:68:25: note: in definition of macro 'EXPORT_FUNC'
# define EXPORT_FUNC(x) x
^
In file included from ./include/grub/fs.h:30:0,
from ./include/grub/file.h:25,
from ./grub-core/lib/posix_wrap/stdio.h:23,
from c:\mingw\include\libintl.h:314,
from ./include/grub/i18n.h:33,
from ./include/grub/misc.h:27,
from ./include/grub/list.h:25,
from ./include/grub/dl.h:28,
from grub-core/lib/libgcrypt-grub/cipher/rfc2268.c:3:
./include/grub/partition.h:106:3: note: previous implicit declaration of 'grub_l
ist_push' was here
grub_list_push (GRUB_AS_LIST_P (&grub_partition_map_list),
^
list.h needs just ATTRIBUTE_ERROR from misc.h; split compiler features
into separate file grub/compiler.h and include it instead.
Andrey Borzenkov [Sat, 18 Jan 2014 16:41:24 +0000 (20:41 +0400)]
add BUILD_EXEEXT support to fix make clean on Windows
Add $(BUILD_EXEEXT) to ensure files are removed. Also add CLEANFILES where
appropriate.
Andrey Borzenkov [Sat, 18 Jan 2014 16:04:11 +0000 (20:04 +0400)]
Use _W64 to detect MinGW W64-32 instead of _FILE_OFFSET_BITS
In
94cee4a4c201bb506377b2c26e072eee8cb19d6f I overlooked that config.h
unconditionally sets _FILE_OFFSET_BITS, so it cannot be used to detect
MinGW W64 environment. It looks like Emacs folks already found
solution; instead of _FILE_OFFSET_BITS use _W64 as suggested in
http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00723.html
Andrey Borzenkov [Sat, 18 Jan 2014 16:01:16 +0000 (20:01 +0400)]
Fix ChangeLog date
Vladimir Serbinenko [Sat, 18 Jan 2014 15:57:35 +0000 (16:57 +0100)]
* grub-core/term/terminfo.c: Recognize keys F1-F12.
Andrey Borzenkov [Sat, 18 Jan 2014 15:50:54 +0000 (19:50 +0400)]
reintroduce BUILD_LDFLAGS for the cross-compile case
This allows providing separate LDFLAGS for build and host environments, which
are not necessary the same for cross-compile case. In particular, it allows
building host programs statically to not depend on presence of libraries at
run-time (e.g. MinGW DLLs on Windows) while continue to use default dynamic
linking at build time.
Also fix obsolete comments in confgure.ac - we do use different environment
for build and host now.
Vladimir Serbinenko [Sat, 18 Jan 2014 15:43:29 +0000 (16:43 +0100)]
* util/grub-mount.c: Extend GCC warning workaround to grub-mount.
Vladimir Serbinenko [Sat, 18 Jan 2014 15:41:47 +0000 (16:41 +0100)]
* grub-core/kern/efi/efi.c: Ensure that the result starts with /
and has no //.
Vladimir Serbinenko [Sat, 18 Jan 2014 15:31:10 +0000 (16:31 +0100)]
* NEWS: Add few missing entries.
Colin Watson [Fri, 17 Jan 2014 15:24:50 +0000 (15:24 +0000)]
Prefer more portable test(1) constructs
* util/grub.d/00_header.in (make_timeout): Use && rather than test
-a.
* util/grub.d/10_windows.in: Likewise.
* util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
than test -o.
* util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
rather than test -o.
Colin Watson [Fri, 17 Jan 2014 02:30:52 +0000 (02:30 +0000)]
freebsd/hostdisk.c is only ever compiled on FreeBSD
* grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
redundant preprocessor conditional.
Andrey Borzenkov [Sun, 12 Jan 2014 11:29:21 +0000 (15:29 +0400)]
add part_apple to EFI rescue image to fix missing prefix
On Mac rescue image is booted from HFS+ partition, so bootpath looks like
/ACPI(
a0341d0 ,0)/PCI(1,1f)/ATAPI(0,0,0)/HD(3,5d1,ca3,
0000000000000000 ,20,0)/EndEntire
grub fails to find device for this path because it cannot scan partition
table. The simplest fix is to add part_apple by default.
Colin Watson [Wed, 8 Jan 2014 11:05:20 +0000 (11:05 +0000)]
* Makefile.util.def (grub-macbless): Change mansection to 8.
Leif Lindholm [Tue, 7 Jan 2014 17:52:50 +0000 (17:52 +0000)]
arm64: set correct length of device path end entry
The length of the Device Path End entry in the grub_linux_boot()
function was incorrectly set to 0. This triggers an assert failure
in debug builds of Tianocore.
Set it to sizeof (grub_efi_device_path_t).
Andrey Borzenkov [Tue, 7 Jan 2014 16:34:25 +0000 (20:34 +0400)]
Change grub-mkrescue to use bootaa64.efi too
Also add ChangeLog entry for previous change.
Andrey Borzenkov [Tue, 7 Jan 2014 14:43:02 +0000 (18:43 +0400)]
fix 32 bit compilation on MinGW-w64
Use _FILE_OFFSET_BITS macro to distinguish between native MinGW and
32 bit under MinGW-64. The latter does not require fseeko/ftello
redefinition which it already does in case of _FILE_OFFSET_BITS=64.
Andrey Borzenkov [Tue, 7 Jan 2014 06:38:54 +0000 (10:38 +0400)]
use {grub,boot}aa64.efi for boot images on AArch64
According to UEFI 2.4 specification, default boot file name on AArch64
is BOOTAA64.EFI (3.4.1.1 Removable Media Boot Behavior). Also set default
GRUB image name to grubaa64.efi to match it.
Andrey Borzenkov [Mon, 30 Dec 2013 12:56:19 +0000 (12:56 +0000)]
strip .eh_frame section from arm64-efi kernel
Fixes grub-mkimage error "relocation 0x105 is not implemented yet."
Vladimir Serbinenko [Mon, 30 Dec 2013 05:49:15 +0000 (06:49 +0100)]
* NEWS: Add few missing entries. Correct existing ones.
Vladimir Serbinenko [Sat, 28 Dec 2013 16:25:14 +0000 (17:25 +0100)]
Don't abort() on unavailable coreboot tables if not running on coreboot.
Andrey Borzenkov [Sat, 28 Dec 2013 05:01:20 +0000 (09:01 +0400)]
remove unused error.h from kern/emu/misc.c
Fixes compilation on mingw32, where include is apparently missing.
Colin Watson [Sat, 28 Dec 2013 02:20:27 +0000 (02:20 +0000)]
* NEWS: The cmosclean command in fact dates back to 1.99. Remove
mention of it from 2.02.
Vladimir Serbinenko [Fri, 27 Dec 2013 10:20:37 +0000 (11:20 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Conflicts:
ChangeLog
Colin Watson [Fri, 27 Dec 2013 03:05:38 +0000 (03:05 +0000)]
* NEWS: First draft of 2.02 entry.
Colin Watson [Fri, 27 Dec 2013 03:03:32 +0000 (03:03 +0000)]
* INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
* docs/grub.texi (Getting the source code): Likewise.
Vladimir Serbinenko [Wed, 25 Dec 2013 22:31:42 +0000 (23:31 +0100)]
* grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
As these functions are used on pre-ARMv6 CPUs as well we don't want
to make assembler assume that architecture is higher than default one.
Andrey Borzenkov [Wed, 25 Dec 2013 18:36:28 +0000 (22:36 +0400)]
fix EFI detection on Windows
We are on legacy BIOS if GetFirmwareEnvironmentVariable fails (returns
zero) *and* extended error information is ERROR_INVALID_FUNCTION.
Cf. http://msdn.microsoft.com/en-us/library/windows/desktop/ms724325%28v=vs.85%29.aspx
Vladimir Serbinenko [Tue, 24 Dec 2013 20:53:23 +0000 (21:53 +0100)]
* configure.ac: Set version to 2.02~beta2.
Vladimir Serbinenko [Tue, 24 Dec 2013 19:32:14 +0000 (20:32 +0100)]
* grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
Andrey Borzenkov [Tue, 24 Dec 2013 19:30:16 +0000 (20:30 +0100)]
* util/grub-probe.c: Improve help message and simplify list handling.
Vladimir Serbinenko [Tue, 24 Dec 2013 18:04:46 +0000 (19:04 +0100)]
Fix buffer overflow in grub_efi_print_device_path.
Vladimir Serbinenko [Tue, 24 Dec 2013 17:10:28 +0000 (18:10 +0100)]
Show SATA device path.
Vladimir Serbinenko [Tue, 24 Dec 2013 16:47:27 +0000 (17:47 +0100)]
Revert grub-file usage in grub-mkconfig.
Vladimir Serbinenko [Tue, 24 Dec 2013 16:36:10 +0000 (17:36 +0100)]
Make newly-created files other than grub.cfg world-readable.
Andrey Borzenkov [Tue, 24 Dec 2013 16:26:05 +0000 (17:26 +0100)]
* util/grub.d/00_header.in: Improve compatibility with old config.
Vladimir Serbinenko [Tue, 24 Dec 2013 15:57:28 +0000 (16:57 +0100)]
Make rijndael.c respect aliasing rules.
Trivial backport of
dfb4673da8ee52d95e0a62c9f49ca8599943f22e .
Vladimir Serbinenko [Tue, 24 Dec 2013 15:56:14 +0000 (16:56 +0100)]
Make grub_util_device_is_mapped_stat available in grub-emu core.
Vladimir Serbinenko [Tue, 24 Dec 2013 14:00:46 +0000 (15:00 +0100)]
Add -Qn to TARGET_CFLAGS if it's supported.
Fixes compilation on cygwin.
Reported by: Andrey Borzenkov.
Suggested by: Andrey Borzenkov.
Vladimir Serbinenko [Tue, 24 Dec 2013 13:47:44 +0000 (14:47 +0100)]
Save TARGET_CC version in modinfo.sh.
Suggested by: Andrey Borzenkov.
Vladimir Serbinenko [Tue, 24 Dec 2013 13:16:57 +0000 (14:16 +0100)]
Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
follow the same algorithm to avoid method mismatch. Don't assume
DMRAID- UUID to mean full disk but instead check that mapping is linear.
Vladimir Serbinenko [Tue, 24 Dec 2013 13:14:19 +0000 (14:14 +0100)]
Declare GRUB_EFI_VENDOR_APPLE_GUID.
Vladimir Serbinenko [Tue, 24 Dec 2013 13:05:48 +0000 (14:05 +0100)]
Dump type and vendor specific data when printing device path.
Vladimir Serbinenko [Mon, 23 Dec 2013 17:17:29 +0000 (18:17 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Vladimir Serbinenko [Mon, 23 Dec 2013 16:52:52 +0000 (17:52 +0100)]
ARM64 support for grub-mkrescue.
Vladimir Serbinenko [Mon, 23 Dec 2013 16:51:39 +0000 (17:51 +0100)]
Install modinfo.sh to keep build information around.
Vladimir Serbinenko [Mon, 23 Dec 2013 16:37:19 +0000 (17:37 +0100)]
* grub-core/modinfo.sh.in: Add build config information.
Vladimir Serbinenko [Mon, 23 Dec 2013 16:35:18 +0000 (17:35 +0100)]
ARM64 grub-file and grub-mkconfig support.
Vladimir Serbinenko [Mon, 23 Dec 2013 16:24:52 +0000 (17:24 +0100)]
Remove leftover options defines.
Colin Watson [Mon, 23 Dec 2013 14:43:41 +0000 (14:43 +0000)]
Update some documentation to refer to Git rather than Bazaar.
* docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
than Bazaar.
* po/README: Likewise. Fix spelling mistake.
Colin Watson [Mon, 23 Dec 2013 14:30:35 +0000 (14:30 +0000)]
Don't distribute config.h.
* Makefile.am (platform_HEADERS): Move to ...
(nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
failure when building from a distributed tarball.
Colin Watson [Mon, 23 Dec 2013 13:32:35 +0000 (13:32 +0000)]
* configure.ac: Fix spelling.
* grub-core/commands/parttool.c: Fix grammar.
* grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
Embedding Partition".
Vladimir Serbinenko [Mon, 23 Dec 2013 04:56:31 +0000 (05:56 +0100)]
* include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
Vladimir Serbinenko [Mon, 23 Dec 2013 04:34:13 +0000 (05:34 +0100)]
* grub-core/loader/arm64/linux.c: Add missing bracket.
Vladimir Serbinenko [Mon, 23 Dec 2013 04:33:44 +0000 (05:33 +0100)]
Add arm64-efi recognition to grub-file.
Vladimir Serbinenko [Mon, 23 Dec 2013 04:27:04 +0000 (05:27 +0100)]
Fix ia64-efi recognition in grub-file.
Vladimir Serbinenko [Mon, 23 Dec 2013 04:19:42 +0000 (05:19 +0100)]
Recognize raspberry pi kernel in grub-file.
Vladimir Serbinenko [Mon, 23 Dec 2013 04:01:58 +0000 (05:01 +0100)]
Enable cache on ARM U-Boot port.
Without it the port is reidiculously slow.
Vladimir Serbinenko [Mon, 23 Dec 2013 03:27:53 +0000 (04:27 +0100)]
Fix ARM cache maintainance.
More code was converted from ASM to C for easier handling.
Vladimir Serbinenko [Sun, 22 Dec 2013 21:33:35 +0000 (22:33 +0100)]
* grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
algorithm on v5.
Suggested by: Leif Lindholm.
Andrey Borzenkov [Sun, 22 Dec 2013 19:47:26 +0000 (23:47 +0400)]
grub-mkconfig: fix Xen platform conditions
Andrey Borzenkov [Sun, 22 Dec 2013 18:51:54 +0000 (22:51 +0400)]
split grub-mkresecue help text to facilitate translations
Split single string in help message into several strings used before in shell
grub-mkrescue to minimize changes to existing translations.
Reported by Benno Schulenberg
Leif Lindholm [Wed, 4 Dec 2013 15:21:16 +0000 (15:21 +0000)]
arm64: add EFI Linux loader
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Leif Lindholm [Wed, 4 Dec 2013 13:09:21 +0000 (13:09 +0000)]
fdt: additions required for arm64 Linux loader
- Add grub_fdt_create_empty_tree() function.
- Add 64-bit setprop.
Vladimir Serbinenko [Sun, 22 Dec 2013 17:14:42 +0000 (18:14 +0100)]
Add module loading and parsing boot time checkpoints.
Vladimir Serbinenko [Sun, 22 Dec 2013 17:14:00 +0000 (18:14 +0100)]
* grub-core/loader/arm/linux.c: Pass arguments through on ATAG
platforms.
Lars Wendler [Sun, 22 Dec 2013 15:38:28 +0000 (16:38 +0100)]
* util/grub-mkconfig.in: Skip non-executable files.
Vladimir Serbinenko [Sun, 22 Dec 2013 01:48:42 +0000 (02:48 +0100)]
Workaround buggy timer in raspberry pie by using our own timer
implementation.
Vladimir Serbinenko [Sat, 21 Dec 2013 23:32:55 +0000 (00:32 +0100)]
* include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
Increase to 16 MiB to allow loading the whole memdisk.
Vladimir Serbinenko [Sat, 21 Dec 2013 23:30:19 +0000 (00:30 +0100)]
Fix ARM Linux Loader on non-FDT platforms.
Vladimir Serbinenko [Sat, 21 Dec 2013 19:19:34 +0000 (20:19 +0100)]
* configure.ac: Choose link format based on host_os on emu.
Vladimir Serbinenko [Sat, 21 Dec 2013 17:10:05 +0000 (18:10 +0100)]
* grub-core/osdep/unix/getroot.c: Non-unix build fix.
Vladimir Serbinenko [Sat, 21 Dec 2013 17:09:19 +0000 (18:09 +0100)]
* grub-core/kern/emu/main.c: Build fix for emu.
Vladimir Serbinenko [Sat, 21 Dec 2013 17:08:25 +0000 (18:08 +0100)]
Build fixes for argp.h with older gcc.
Vladimir Serbinenko [Sat, 21 Dec 2013 15:12:24 +0000 (16:12 +0100)]
* util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
in strings.
Suggested by: David Prévot.
Vladimir Serbinenko [Sat, 21 Dec 2013 14:35:15 +0000 (15:35 +0100)]
* include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
Vladimir Serbinenko [Sat, 21 Dec 2013 14:28:28 +0000 (15:28 +0100)]
Enable -Wformat=2 if it's supported.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:47:55 +0000 (14:47 +0100)]
* configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
-Wmissing-declarations if supported.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:40:53 +0000 (14:40 +0100)]
* grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as u32
as both HFS and HFS+ have 32-bit inodes.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:35:46 +0000 (14:35 +0100)]
* include/grub/misc.h (grub_strtol): Fix overflow.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:33:36 +0000 (14:33 +0100)]
* include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
as return type in both conditionals.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:31:47 +0000 (14:31 +0100)]
* include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
to use uint8_t for color.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:28:14 +0000 (14:28 +0100)]
* util/misc.c (grub_util_get_image_size): Check for overflow.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:16:49 +0000 (14:16 +0100)]
* grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
for size.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:15:04 +0000 (14:15 +0100)]
* grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
for pointer difference.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:07:42 +0000 (14:07 +0100)]
* util/import_gcry.py: Skip sample keys.
Vladimir Serbinenko [Sat, 21 Dec 2013 13:04:50 +0000 (14:04 +0100)]
* util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:53:42 +0000 (13:53 +0100)]
* configure.ac: Remove duplicate warning arguments.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:50:13 +0000 (13:50 +0100)]
Add missing static qualifiers.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:47:27 +0000 (13:47 +0100)]
Add missing includes.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:40:18 +0000 (13:40 +0100)]
Inline printf templates when possible to enable format checking.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:36:42 +0000 (13:36 +0100)]
* include/grub/crypto.h: Don't discard const attribute.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:35:28 +0000 (13:35 +0100)]
* grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
was intended.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:34:03 +0000 (13:34 +0100)]
* grub-core/lib/crypto.c: Don't discard const attribute.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:32:39 +0000 (13:32 +0100)]
* grub-core/lib/disk.c: Fix potential overflow.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:28:52 +0000 (13:28 +0100)]
* grub-core/lib/arg.c: Don't discard const attribute.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:26:27 +0000 (13:26 +0100)]
* grub-core/kern/dl.c: Don't discard const attribute.
Vladimir Serbinenko [Sat, 21 Dec 2013 12:23:37 +0000 (13:23 +0100)]
* grub-core/kern/disk.c: Fix potential overflow.