]>
git.proxmox.com Git - grub2.git/log
Toomas Soome [Thu, 16 Apr 2015 05:22:08 +0000 (08:22 +0300)]
zfs: com.delphix:hole_birth feature support
In the past birth was always zero for holes. This feature started
to make use of birth for holes as well, so change code to test for
valid DVA address instead.
Andrei Borzenkov [Wed, 29 Apr 2015 16:18:54 +0000 (19:18 +0300)]
grub-mkconfig: use $pkgdatadir in scripts
Otherwise scripts will source wrong grub-mkconfig_lib.
Vladimir Serbinenko [Fri, 24 Apr 2015 15:52:30 +0000 (17:52 +0200)]
Remove -V in grub-mkrescue.c
It clashhes with -V which is alias to -volid.
Toomas Soome [Mon, 13 Apr 2015 16:52:28 +0000 (19:52 +0300)]
getroot: include sys/mkdev.h for makedev
Solaris (like) systems need to include sys/mkdev.h for makedev() function.
Toomas Soome [Mon, 13 Apr 2015 16:49:15 +0000 (19:49 +0300)]
core/partmap: rename 'sun' to avoid clash with predefined symbol
the symbol “sun” is defined macro in solaris derived systems, from
gcc -dM -E:
and therefore can not be used as name.
Paul Menzel [Sat, 11 Apr 2015 19:40:50 +0000 (21:40 +0200)]
docs/grub.texi: Fix spelling of cbfstool
Andrei Borzenkov [Mon, 6 Apr 2015 16:25:02 +0000 (19:25 +0300)]
core: avoid NULL derefrence in grub_divmod64s
It can be called with NULL for third argument. grub_divmod32* for
now are called only from within wrappers, so skip check.
Reported-By: Michael Zimmermann <sigmaepsilon92@gmail.com>
Andrei Borzenkov [Sat, 28 Mar 2015 19:13:35 +0000 (22:13 +0300)]
do not emit cryptomount without crypto UUID
Sarah Newman [Fri, 27 Mar 2015 19:56:43 +0000 (12:56 -0700)]
grub-core/loader/i386/xen.c: Initialized initrd_ctx so we don't free a random pointer from the stack.
Signed-off-by: Sarah Newman <srn@prgmr.com>
Andrei Borzenkov [Fri, 27 Mar 2015 15:58:57 +0000 (18:58 +0300)]
net: trivial grub_cpu_to_XX_compile_time cleanup
Lunar [Fri, 27 Mar 2015 14:15:13 +0000 (15:15 +0100)]
syslinux: Support {vesa,}menu.c32.
Steve McIntyre [Fri, 27 Mar 2015 13:51:51 +0000 (14:51 +0100)]
Recognize EFI platform even in case of mismatch between Linux and EFI.
Some x86 systems might be capable of running a 64-bit Linux kernel but
only use a 32-bit EFI (e.g. Intel Bay Trail systems). It's useful for
grub-install to be able to recognise such systems, to set the default
x86 platform correctly.
To allow grub-install to know the size of the firmware rather than
just the size of the kernel, there is now an extra EFI sysfs file to
describe the underlying firmware. Read that if possible, otherwise
fall back to the kernel type as before.
Signed-off-by: Steve McIntyre <steve@einval.com>
Michael Zimmermann [Fri, 27 Mar 2015 13:44:41 +0000 (14:44 +0100)]
Add missing initializers to silence suprious warnings.
Leif Lindholm [Fri, 27 Mar 2015 13:37:16 +0000 (14:37 +0100)]
dl_helper: Cleanup
Use the new thumb_get_instruction_word/thumb_set_instruction_word
helpers throughout.
Style cleanup (missing spaces).
Move Thumb MOVW/MOVT handlers into Thumb relocation section of file.
Martin Wilck [Fri, 27 Mar 2015 13:27:56 +0000 (14:27 +0100)]
efinet: Check for immediate completition.
This both speeds GRUB up and workarounds unexpected EFI behaviour.
Vladimir Serbinenko [Fri, 27 Mar 2015 13:04:41 +0000 (14:04 +0100)]
Make Makefile.util.def independent of platform.
Daniel Kahn Gillmor [Fri, 27 Mar 2015 12:26:48 +0000 (13:26 +0100)]
util/mkimage: Use stable timestamp when generating binaries.
Vladimir Serbinenko [Fri, 20 Mar 2015 20:42:48 +0000 (21:42 +0100)]
modinfo.sh.in: Add missing config variables.
Vladimir Serbinenko [Fri, 20 Mar 2015 20:41:17 +0000 (21:41 +0100)]
Makefile.core.def: Remove obsolete LDADD_KERNEL
Vladimir Serbinenko [Fri, 20 Mar 2015 20:14:23 +0000 (21:14 +0100)]
arp, icmp: Fix handling in case of oversized or invalid packets.
This restrict ARP handling to MAC and IP addresses but in practice we need
only this case anyway and other cases are very rar if exist at all. It makes
code much simpler and less error-prone.
Colin Watson [Mon, 23 Mar 2015 14:27:41 +0000 (14:27 +0000)]
hostfs: Drop unnecessary feature test macros
_BSD_SOURCE was added to allow the use of DT_DIR, but that was removed
in
e768b77068a0b030a07576852bd0f121c9a077eb . While adding
_DEFAULT_SOURCE as well works around problems with current glibc,
neither is in fact needed nowadays.
Vladimir Serbinenko [Fri, 20 Mar 2015 12:00:53 +0000 (13:00 +0100)]
compiler-rt-emu: Add missing file.
Vladimir Serbinenko [Fri, 20 Mar 2015 11:59:00 +0000 (12:59 +0100)]
emunet: Fix init error checking.
Otherwise emunet doesn't expose any cards.
Vladimir Serbinenko [Fri, 20 Mar 2015 11:58:08 +0000 (12:58 +0100)]
fddboot_test: Add -no-pad to xorriso.
Vladimir Serbinenko [Fri, 20 Mar 2015 11:55:27 +0000 (12:55 +0100)]
grub-mkrescue: pass all unrecognized options unchanged to xorriso.
Vladimir Serbinenko [Fri, 20 Mar 2015 10:13:58 +0000 (11:13 +0100)]
cacheinfo: Add missing license information.
Andrei Borzenkov [Thu, 19 Mar 2015 18:31:26 +0000 (21:31 +0300)]
grub-fs-tester: add LVM RAID1 support
LVM miscalculates bitmap size with small extent, so start with 16K as
for other RAID types.
Until version 2.02.103 LVM counts metadata segments twice when checking
available space, reduce segment count by one to account for this bug.
Andrei Borzenkov [Thu, 19 Mar 2015 18:30:27 +0000 (21:30 +0300)]
core: add LVM RAID1 support
Closes 44534.
Andrei Borzenkov [Mon, 16 Mar 2015 18:16:19 +0000 (21:16 +0300)]
grub-fs-tester: explicitly set segment type for LVM mirror
LVM mirror defaults to RAID1 today and can be different on different
systems as set in lvm.conf.
Andrei Borzenkov [Sun, 15 Mar 2015 18:06:26 +0000 (21:06 +0300)]
grub-fs-tester: better estimation of filesystem time for LVM/RAID
Write activity with LVM/RAID can happen after filesystem is unmounted.
In my testing modification time of loop files was 15 - 20 seconds
after unmount. So use time as close to unmount as possible as
reference instead.
Vladimir Serbinenko [Fri, 6 Mar 2015 21:33:20 +0000 (22:33 +0100)]
hfsplus: Fix potential access to uninited memory on invalid FS
Jon McCune [Thu, 5 Mar 2015 23:33:41 +0000 (00:33 +0100)]
autogen.sh: Allow overriding the python to be used by setting $PYTHON.
Some installations have several python versions installed. Allow user
to choose which one to use by setting $PYTHON.
Andrei Borzenkov [Thu, 5 Mar 2015 17:19:47 +0000 (20:19 +0300)]
update gnulib/argp-help.c to fix garbage in grub-mknetdir --help output
argp_help attempts to translate empty string, which results in printing
meta information about translation, like in
bor@opensuse:~/build/grub> grub2-mknetdir --help
Использование: grub2-mknetdir [ПАРАМЕТР…]
Project-Id-Version: grub 2.02-pre2
Report-Msgid-Bugs-To: bug-grub@gnu.org
...
Update gnulib/argp-help.c to the current version which fixes this
(commit
b9bfe78424b871f5b92e5ee9e7d21ef951a6801d ).
Andrey Borzenkov [Thu, 5 Mar 2015 16:25:56 +0000 (19:25 +0300)]
update m4/extern-inline.m4 to upstream version to fix compilation on FreeBSD
In file included from util/grub-mkimage.c:54:0:
./grub-core/gnulib/argp.h:627:49: error: '__sbistype' is static but
used in inline function '_option_is_short' which is not static
[-Werror] cc1: all warnings being treated as errors gmake[2]: ***
[util/grub_mkimage-grub-mkimage.o] Error 1
Update m4/extern-inline.m4 to current upstream gnulib version that
contains fix for this (commit
b9bfe78424b871f5b92e5ee9e7d21ef951a6801d ).
Reported-By: Beeblebrox <zaphod@berentweb.com>
Vladimir Serbinenko [Wed, 4 Mar 2015 13:19:29 +0000 (14:19 +0100)]
syslinux_parse: Fix the case of unknown localboot.
Reported by: Jordan Uggla
Vladimir Serbinenko [Wed, 4 Mar 2015 00:01:45 +0000 (01:01 +0100)]
configure.ac: Fix the name of pciaccess header.
Vladimir Serbinenko [Wed, 4 Mar 2015 00:00:19 +0000 (01:00 +0100)]
Fix canonicalize_file_name clash.
canonicalize_file_name clashed with gnulib function. Additionally
it was declared in 2 places: emu/misc.h and util/misc.h. Added
grub_ prefix and removed second declaration.
Vladimir Serbinenko [Tue, 3 Mar 2015 19:59:36 +0000 (20:59 +0100)]
Remove emu libusb support.
It's disabled by default and has been broken for a long time.
As nobody is interested in fixing and maintaining it, remove it.
Vladimir Serbinenko [Tue, 3 Mar 2015 19:49:48 +0000 (20:49 +0100)]
configure.ac: Remove unused COND_clang
Vladimir Serbinenko [Tue, 3 Mar 2015 19:23:42 +0000 (20:23 +0100)]
Remove libgcc dependency.
libgcc for boot environment isn't always present and compatible.
libgcc is often absent if endianness or bit-size at boot is different
from running OS.
libgcc may use optimised opcodes that aren't available on boot time.
So instead of relying on libgcc shipped with the compiler, supply
the functions in GRUB directly.
Tests are present to ensure that those replacement functions behave the
way compiler expects them to.
Vladimir Serbinenko [Tue, 3 Mar 2015 08:12:10 +0000 (09:12 +0100)]
types.h: Use __builtin_bswap* with clang.
clang pretends to be GCC 4.2 but we use __builtin_bswap* only with GCC 4.3+.
clang support __builtin_bswap*, so use it.
Vladimir Serbinenko [Tue, 3 Mar 2015 08:07:53 +0000 (09:07 +0100)]
configure.ac: Set $CPPFLAGS when checking for no_app_regs.
Fixes compilation for sparc64 with clang.
Vladimir Serbinenko [Fri, 27 Feb 2015 13:26:00 +0000 (14:26 +0100)]
Don't continue to query block-size if disk doesn't have it.
Stops poluting screen with a lot of "block-size: exception -21".
Andrei Borzenkov [Sat, 28 Feb 2015 17:19:57 +0000 (20:19 +0300)]
grub-probe: free temporary variable
Vladimir Serbinenko [Sat, 28 Feb 2015 15:23:27 +0000 (16:23 +0100)]
exclude.pot: Add new technical strings
Vladimir Serbinenko [Sat, 28 Feb 2015 15:22:46 +0000 (16:22 +0100)]
grub-probe: Mark a "[default=]" for translation.
Vladimir Serbinenko [Sat, 28 Feb 2015 14:14:16 +0000 (15:14 +0100)]
grub-shell: Add missing --locale-directory.
Fixes the language tests is no make install was done.
Vladimir Serbinenko [Sat, 28 Feb 2015 14:13:41 +0000 (15:13 +0100)]
ntfs_test: Skip is setfattr is unavailable.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:20:59 +0000 (22:20 +0100)]
emu/cache: Change declaration of __clear_cache to match builtin declaration.
Fixes compile of arm64-emu.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:10:29 +0000 (22:10 +0100)]
arm/dl: Fix handling of nonstandard relocation sizes
Vladimir Serbinenko [Thu, 26 Feb 2015 21:10:09 +0000 (22:10 +0100)]
gzio: Optimize by removing division.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:07:22 +0000 (22:07 +0100)]
raid6: Optimize by removing division.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:06:19 +0000 (22:06 +0100)]
dmraid_nvidia: Fix division by 0 and missing byte-swap.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:04:40 +0000 (22:04 +0100)]
crypto: restrict cipher block size to power of 2.
All current ciphers have blocks which are power of 2 and it's
unlikely to change. Other block length would be tricky to handle anyway.
This restriction allows avoiding extra divisions.
Vladimir Serbinenko [Thu, 26 Feb 2015 20:27:32 +0000 (21:27 +0100)]
jpeg: Optimise by replacing division with shifts.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:27:43 +0000 (18:27 +0100)]
png: Optimize by avoiding divisions.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:22:40 +0000 (18:22 +0100)]
Add missing lib/division.c
Vladimir Serbinenko [Thu, 26 Feb 2015 17:14:28 +0000 (18:14 +0100)]
fbblit: Optimize by replacing division with additions and shifts.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:13:36 +0000 (18:13 +0100)]
bitmap_scale: Optimize by moving division out of the loop.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:11:53 +0000 (18:11 +0100)]
minilzo: Skip parts tha we don't need.
Vladimir Serbinenko [Mon, 23 Feb 2015 21:33:28 +0000 (22:33 +0100)]
mips: Fix soft-float handling.
Add -msoft-float alongside clang arguments to specify ABI.
Specify ABI in asm files explicitly.
This trigers asm warning due to gcc failing to propagate -msoft-float
but it's tolerable.
Vladimir Serbinenko [Sun, 22 Feb 2015 18:34:46 +0000 (19:34 +0100)]
Add missing grub_ prefix in memcpy invocation
Vladimir Serbinenko [Sun, 22 Feb 2015 16:45:30 +0000 (17:45 +0100)]
Allow clang compilation for thumb with -mthumb-interwork.
clang already uses -mthumb-interwork behaviour even thout it doesn't
support the option.
Vladimir Serbinenko [Sun, 22 Feb 2015 16:41:12 +0000 (17:41 +0100)]
arm64: Fix compilation failure.
Don't supply +nosimd to asm files.
Otherwise +nosimd coming from flags forbids some of instructions
used in cache_flush.
Vladimir Serbinenko [Sun, 22 Feb 2015 16:24:28 +0000 (17:24 +0100)]
Supply signed division to fix ARM compilation.
Previously we supplied only unsigned divisions on platforms that need software
division.
Yet compiler may itself use a signed division. A typical example would be a
difference between 2 pointers which involves division by object size.
Vladimir Serbinenko [Sun, 22 Feb 2015 13:42:43 +0000 (14:42 +0100)]
acpi: Fix unused function warning.
Vladimir Serbinenko [Sun, 22 Feb 2015 13:42:19 +0000 (14:42 +0100)]
configure.ac: Add ia64-specific way to disable floats.
Vladimir Serbinenko [Sun, 22 Feb 2015 12:12:44 +0000 (13:12 +0100)]
i386/tsc: Fix unused function warning on xen.
Vladimir Serbinenko [Sun, 22 Feb 2015 00:53:00 +0000 (01:53 +0100)]
Experimental support for clang for sparc64.
Automatically discover command line options to make clang and
gcc behave in same way.
Tested with qemu.
Vladimir Serbinenko [Sat, 21 Feb 2015 22:46:47 +0000 (23:46 +0100)]
Discover which option provides soft-float on configure stage.
Deals with clang needing other arguments to stop issuing floating
instructions than gcc.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:43:57 +0000 (20:43 +0100)]
mips: Switch to more portable .org
Binary is unchanged.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:32:03 +0000 (20:32 +0100)]
sparc64: Switch to more portable .org.
Binaries are unchanged.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:24:59 +0000 (20:24 +0100)]
kernel-8086: Switch to more portable .org.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:18:18 +0000 (20:18 +0100)]
Relax requirements on asm for non-BIOS i386 platforms.
These platforms don't have a hard limit on size of resulting code16
code, so we don't care if assembly is bigger than necessarry.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:13:58 +0000 (20:13 +0100)]
qemu: Switch to more portable .org
Binary is checked identical.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:00:18 +0000 (20:00 +0100)]
qemu: Fix GateA20 enabling.
GateA20 code was inactive due to address error.
Vladimir Serbinenko [Sat, 21 Feb 2015 18:55:53 +0000 (19:55 +0100)]
qemu: Fix compilation
Vladimir Serbinenko [Sat, 21 Feb 2015 18:53:18 +0000 (19:53 +0100)]
Remove realmode.S from coreboot and qemu.
It's not used there.
Vladimir Serbinenko [Sat, 21 Feb 2015 16:44:41 +0000 (17:44 +0100)]
Remove obsolete ADDR32 and DATA32 checks.
Vladimir Serbinenko [Sat, 21 Feb 2015 16:38:56 +0000 (17:38 +0100)]
i386: Remove needless ADDR32 prefixes when address is known and fixed.
Shaves off 6 bytes in lzma_decompress.img.
Vladimir Serbinenko [Sat, 21 Feb 2015 16:20:10 +0000 (17:20 +0100)]
i386-pc/boot: Explicitly mark kernel_address[_high] as local.
Otherwise apple asm might try to make accesses relocatable.
Vladimir Serbinenko [Sat, 21 Feb 2015 16:19:01 +0000 (17:19 +0100)]
Change dot assignmnet to more portable .org.
Binary is unchanged (verified)
Vladimir Serbinenko [Sat, 21 Feb 2015 16:13:23 +0000 (17:13 +0100)]
i386: Move from explicit ADDR32/DATA32 prefixes to instruction suffixes.
Is more portable.
Binary is unchanged (verified).
Vladimir Serbinenko [Sat, 21 Feb 2015 15:29:28 +0000 (16:29 +0100)]
Test which flags make our asm compile.
Previously we relied on assumption that clang always needs -no-integrated-as
but it's not always true.
Vladimir Serbinenko [Sat, 21 Feb 2015 15:22:48 +0000 (16:22 +0100)]
INSTALL: clarify that clang support is experimental
Vladimir Serbinenko [Sat, 21 Feb 2015 15:22:01 +0000 (16:22 +0100)]
zfs/mzap_lookup: Fix argument types
Vladimir Serbinenko [Sat, 21 Feb 2015 15:19:09 +0000 (16:19 +0100)]
wildcard: Mark unused argument as such.
Vladimir Serbinenko [Sat, 21 Feb 2015 15:16:48 +0000 (16:16 +0100)]
ofdisk: Exclude floppies from scanning.
It causes similar hang as CD on at least the qemu.
Vladimir Serbinenko [Sat, 21 Feb 2015 15:13:11 +0000 (16:13 +0100)]
configure: Add -msoft-float to CCASFLAGS
Otherwise mismatch between API flags triggers linker failure
Vladimir Serbinenko [Sat, 21 Feb 2015 15:09:46 +0000 (16:09 +0100)]
mips/startup_raw: Use more portable .asciz
Vladimir Serbinenko [Sat, 21 Feb 2015 15:07:59 +0000 (16:07 +0100)]
Provide __aeabi_mem{cpy,set}
Fixes ARM compilation
Vladimir Serbinenko [Sat, 21 Feb 2015 15:05:45 +0000 (16:05 +0100)]
div_test: Don't try to divide by zero
Vladimir Serbinenko [Sat, 21 Feb 2015 15:03:11 +0000 (16:03 +0100)]
INSTALL: Fix names of host flags to match actual behaviour
Vladimir Serbinenko [Sat, 21 Feb 2015 15:01:53 +0000 (16:01 +0100)]
Strip .MIPS.abiflags which causes compile failure
Vladimir Serbinenko [Fri, 20 Feb 2015 20:30:34 +0000 (21:30 +0100)]
configure: Move adding of include options to the very end to avoid subshell.
Vladimir Serbinenko [Fri, 20 Feb 2015 20:29:35 +0000 (21:29 +0100)]
configure: Add missing comma.
Vladimir Serbinenko [Mon, 16 Feb 2015 20:08:37 +0000 (21:08 +0100)]
ext2: Ignore INCOMPAT_MMP.
It's not really incompatible as long as driver never writes to FS.
Vladimir Serbinenko [Mon, 16 Feb 2015 19:53:26 +0000 (20:53 +0100)]
ext2: Support META_BG.
This fixes bug that system would become unbootable after ext*
online resize if no resize_inode was created at ext* format time.
Andrei Borzenkov [Mon, 16 Feb 2015 19:07:33 +0000 (22:07 +0300)]
tests: remove hardcoded paths from syslinux_test
abs_top_srcdir appeared in Autoconf 2.52f. Minimal grub requirement
is 2.60 so we should be good here.
Andrei Borzenkov [Mon, 16 Feb 2015 17:31:22 +0000 (20:31 +0300)]
build-sys: add syslinux test files to tarball