]> git.proxmox.com Git - grub2.git/log
grub2.git
9 years agoNEWS: XFS v5 support
Andrei Borzenkov [Fri, 12 Jun 2015 06:40:00 +0000 (09:40 +0300)]
NEWS: XFS v5 support

9 years agoxfs: V5 filesystem format support
Jan Kara [Mon, 1 Jun 2015 12:28:46 +0000 (14:28 +0200)]
xfs: V5 filesystem format support

Add support for new XFS on disk format. We have to handle optional
filetype fields in directory entries, additional CRC, LSN, UUID entries
in some structures, etc.

Signed-off-by: Jan Kara <jack@suse.cz>
9 years agoxfs: Add helpers for inode size
Jan Kara [Mon, 1 Jun 2015 12:28:45 +0000 (14:28 +0200)]
xfs: Add helpers for inode size

Add helpers to return size of XFS inode on disk and when loaded in
memory.

Signed-off-by: Jan Kara <jack@suse.cz>
9 years agomultiboot_header_tag_module_align fix to confirm multiboot specification
Toomas Soome [Thu, 4 Jun 2015 16:41:54 +0000 (19:41 +0300)]
multiboot_header_tag_module_align fix to confirm multiboot specification

9 years agoconfigure.ac: clean up arm64 soft-float handling
Leif Lindholm [Tue, 2 Jun 2015 14:41:09 +0000 (15:41 +0100)]
configure.ac: clean up arm64 soft-float handling

Fix compilation with gcc 5.1 (avoid internal compiler error), by
replacing explicit -march +nofp+nosimd options with -mgeneral-regs-only.

This also enables the removal of some further conditional build flag
setting.

9 years agoarm64/setjmp: Add missing license macro
dann frazier [Thu, 21 May 2015 16:28:48 +0000 (10:28 -0600)]
arm64/setjmp: Add missing license macro

Including the setjmp module in an arm64-efi image will cause it to
immediately exit with an "incompatible license" error.

The source file includes a GPLv3+ boilerplate, so fix this by declaring a
GPLv3+ license using the GRUB_MOD_LICENSE macro.

Signed-off-by: dann frazier <dann.frazier@canonical.com>
9 years agodisk/ahci.c: Add port number to port debug messages
Paul Menzel [Wed, 27 May 2015 20:48:57 +0000 (22:48 +0200)]
disk/ahci.c: Add port number to port debug messages

Currently, some messages cannot be mapped to the port they belong to as
the port number is missing from the output. So add `port: n` to the
debug messages.

9 years agoClarify use of superusers variable and menu entry access
Andrei Borzenkov [Sat, 30 May 2015 16:36:41 +0000 (19:36 +0300)]
Clarify use of superusers variable and menu entry access

superusers controls both CLI and editing. Also explicitly mention that
empty superusers disables them.

"Access to menuentry" is a bit vague - change to "execute menuentry"
to make it obvious, what access is granted.

9 years agoCorrect spelling of *scheduled*
Paul Menzel [Sun, 24 May 2015 21:27:46 +0000 (23:27 +0200)]
Correct spelling of *scheduled*

Run the command below

$ git grep -l schedulded | xargs sed -i 's/schedulded/scheduled/g'

and revert the change in `ChangeLog-2015`.

Including "miscellaneous" spelling fix noted by richardvoigt@gmail.com

9 years agozfs extensible_dataset and large_blocks feature support
Toomas Soome [Thu, 16 Apr 2015 05:24:38 +0000 (08:24 +0300)]
zfs extensible_dataset and large_blocks feature support

large blocks basically use extensible dataset feature, or to be exact,
setting recordsize above 128k will trigger large_block feature to be
enabled and storing such blocks is using feature extensible dataset. so
the extensible dataset is prerequisite.

Changes implement read support extensible dataset… instead of fixed DMU
types they dont specify type, making it possible to use fat zap objects
from bonus area.

9 years agomultiboot1: never place modules in low memory.
Vladimir Serbinenko [Wed, 27 May 2015 06:37:55 +0000 (08:37 +0200)]
multiboot1: never place modules in low memory.

While in theory permitted by the spec, modules rarely fit in low memory
anyway and not every kernel is able to handle modules in low memory anyway.
At least VMWare is known not to be able to handle modules at arbitrary
locations.

9 years agodisk/ahci: Use defines `GRUB_ATA_STATUS_BUSY` and `GRUB_ATA_STATUS_DRQ`
Paul Menzel [Sun, 24 May 2015 09:11:25 +0000 (11:11 +0200)]
disk/ahci: Use defines `GRUB_ATA_STATUS_BUSY` and `GRUB_ATA_STATUS_DRQ`

Instead of hard coding `0x88` use the macros defined in `disk/ata.h`.

9 years agocb_timestamps.c: Add new time stamp descriptions
Paul Menzel [Fri, 15 May 2015 15:35:00 +0000 (17:35 +0200)]
cb_timestamps.c: Add new time stamp descriptions

Add the descriptions of the “core”, that means no vendorcode or payload,
coreboot time stamps added up to coreboot commit a7d92441 (timestamps:
You can never have enough of them!) [1].

Running `coreboot_boottime` in the GRUB command line interface now shows
descriptions for all time stamps again on the ASRock E350M1.

[1] http://review.coreboot.org/9608

9 years agobootp: ignore gateway_ip (relay) field.
Andrei Borzenkov [Sun, 17 May 2015 19:38:30 +0000 (22:38 +0300)]
bootp: ignore gateway_ip (relay) field.

From RFC1542:

   The 'giaddr' field is rather poorly named.  It exists to facilitate
   the transfer of BOOTREQUEST messages from a client, through BOOTP
   relay agents, to servers on different networks than the client.
   Similarly, it facilitates the delivery of BOOTREPLY messages from the
   servers, through BOOTP relay agents, back to the client.  In no case
   does it represent a general IP router to be used by the client.  A
   BOOTP client MUST set the 'giaddr' field to zero (0.0.0.0) in all
   BOOTREQUEST messages it generates.

   A BOOTP client MUST NOT interpret the 'giaddr' field of a BOOTREPLY
   message to be the IP address of an IP router.  A BOOTP client SHOULD
   completely ignore the contents of the 'giaddr' field in BOOTREPLY
   messages.

Leave code ifdef'd out for the time being in case we see regression.

Suggested by: Rink Springer <rink@rink.nu>
Closes: 43396
9 years agohostdisk: fix crash with NULL device.map
Andrei Borzenkov [Sun, 17 May 2015 11:16:36 +0000 (14:16 +0300)]
hostdisk: fix crash with NULL device.map

grub-macbless calls grub_util_biosdisk_init with NULL device.map.

9 years agozfs: fix integer truncation in zap_lookup
Andrei Borzenkov [Thu, 14 May 2015 04:50:33 +0000 (07:50 +0300)]
zfs: fix integer truncation in zap_lookup

Size after shift could exceed 16 bits; use grub_unit32_t for result.

Reported and tested by: Kostya Berger <bergerkos@yahoo.co.uk>
Closes: 44448
9 years agoremove extra newlines in grub_util_* strings
Andrei Borzenkov [Wed, 13 May 2015 06:47:17 +0000 (09:47 +0300)]
remove extra newlines in grub_util_* strings

grub_util_{info,warn,error} already add trailing newlines, so remove
them from format strings. Also trailing full stops are already added.

9 years agoxfs: Convert inode numbers to cpu endianity immediately after reading
Jan Kara [Mon, 14 Jul 2014 15:21:30 +0000 (17:21 +0200)]
xfs: Convert inode numbers to cpu endianity immediately after reading

Currently XFS driver converted inode numbers to native endianity only
when using them to compute inode position. Although this works, it is
somewhat confusing. So convert inode numbers when reading them from disk
structures as every other field.

Signed-off-by: Jan Kara <jack@suse.cz>
9 years agoxfs: Fix termination loop for directory iteration
Jan Kara [Mon, 14 Jul 2014 15:21:29 +0000 (17:21 +0200)]
xfs: Fix termination loop for directory iteration

Directory iteration used wrong position (sizeof wrong structure) for
termination of iteration inside a directory block. Luckily the position
ended up being wrong by just 1 byte and directory entries are larger so
things worked out fine in practice. But fix the problem anyway.

Signed-off-by: Jan Kara <jack@suse.cz>
9 years agoacpi: do not skip BIOS scan if EBDA length is zero
Andrei Borzenkov [Fri, 8 May 2015 03:15:16 +0000 (06:15 +0300)]
acpi: do not skip BIOS scan if EBDA length is zero

EBDA layout is not standardized so we cannot assume first two bytes
are length. Neither is it required by ACPI standard. HP 8710W is known
to contain zeroes here.

Closes: 45002
9 years agoAdd asm-tests to tarball
Andrei Borzenkov [Thu, 7 May 2015 19:13:34 +0000 (22:13 +0300)]
Add asm-tests to tarball

9 years agoutil/grub-mkrescue: Fix compilation
Vladimir Serbinenko [Thu, 7 May 2015 17:45:06 +0000 (19:45 +0200)]
util/grub-mkrescue: Fix compilation

9 years agoefinet: open Simple Network Protocol exclusively
Andrei Borzenkov [Thu, 7 May 2015 17:37:17 +0000 (20:37 +0300)]
efinet: open Simple Network Protocol exclusively

EDK2 network stack is based on Managed Network Protocol which is layered
on top of Simple Management Protocol and does background polling. This
polling races with grub for received (and probably trasmitted) packets
which causes either serious slowdown or complete failure to load files.

Open SNP device exclusively.  This destroys all child MNP instances and
stops background polling.

Exclusive open cannot be done when enumerating cards, as it would destroy
PXE information we need to autoconfigure interface; and it cannot be done
during autoconfiguration as we need to do it for non-PXE boot as well. So
move SNP open to card ->open method and add matching ->close to clean up.

Based on patch from Mark Salter <msalter@redhat.com>

Also-By: Mark Salter <msalter@redhat.com>
Closes: 41731
9 years agoefinet: skip virtual IPv4 and IPv6 devices when enumerating cards
Andrei Borzenkov [Thu, 7 May 2015 17:37:17 +0000 (20:37 +0300)]
efinet: skip virtual IPv4 and IPv6 devices when enumerating cards

EDK2 PXE driver creates two child devices - IPv4 and IPv6 - with
bound SNP instance. This means we get three cards for every physical
adapter when enumerating. Not only is this confusing, this may result
in grub ignoring packets that come in via the "wrong" card.

Example of device hierarchy is

 Ctrl[91] PciRoot(0x0)/Pci(0x3,0x0)
   Ctrl[95] PciRoot(0x0)/Pci(0x3,0x0)/MAC(525400123456,0x1)
     Ctrl[B4] PciRoot(0x0)/Pci(0x3,0x0)/MAC(525400123456,0x1)/IPv4(0.0.0.0)
     Ctrl[BC] PciRoot(0x0)/Pci(0x3,0x0)/MAC(525400123456,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)

Skip PXE created virtual devices when enumerating cards. Make sure to
find real card when applying initial autoconfiguration during PXE boot,
this information is associated with one of child devices.

9 years agoefidisk: move device path helpers in core for efinet
Andrei Borzenkov [Thu, 7 May 2015 17:37:16 +0000 (20:37 +0300)]
efidisk: move device path helpers in core for efinet

9 years agoconvert to, not from, CPU byte order in DNS receive function
Andrei Borzenkov [Thu, 7 May 2015 17:33:28 +0000 (20:33 +0300)]
convert to, not from, CPU byte order in DNS receive function

9 years agoloader/linux: do not pad initrd with zeroes at the end
Andrei Borzenkov [Thu, 7 May 2015 17:24:24 +0000 (20:24 +0300)]
loader/linux: do not pad initrd with zeroes at the end

Syslinux memdisk is using initrd image and needs to know uncompressed
size in advance. For gzip uncompressed size is at the end of compressed
stream. Grub padded each input file to 4 bytes at the end, which means
syslinux got wrong size.

Linux initramfs loader apparently does not care about trailing alignment.
So change code to align beginning of each file instead which atomatically
gives us the correct size for single file.

Reported-By: David Shaw <dshaw@jabberwocky.com>
9 years agoi386/relocator: Remove unused extern grub_relocator64_rip_addr
Daniel Kiper [Thu, 7 May 2015 16:00:47 +0000 (18:00 +0200)]
i386/relocator: Remove unused extern grub_relocator64_rip_addr

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
9 years agogrub-install-common: Increase buf size to 8192 as modinfo.sh is bigger.
Vladimir Serbinenko [Thu, 7 May 2015 15:09:58 +0000 (17:09 +0200)]
grub-install-common: Increase buf size to 8192 as modinfo.sh is bigger.

9 years agogrub-mkrescue: Recognize -output as an alias of --output.
Vladimir Serbinenko [Thu, 7 May 2015 14:34:34 +0000 (16:34 +0200)]
grub-mkrescue: Recognize -output as an alias of --output.

This helps us to be in line with xorriso -as mkisofs.

Suggested by: Thomas Schmitt

9 years agolinux.c: Ensure that initrd is page-aligned.
Vladimir Serbinenko [Thu, 7 May 2015 14:23:39 +0000 (16:23 +0200)]
linux.c: Ensure that initrd is page-aligned.

9 years agoRevert parts accidentally committed 2 commits ago.
Vladimir Serbinenko [Thu, 7 May 2015 14:21:34 +0000 (16:21 +0200)]
Revert parts accidentally committed 2 commits ago.

9 years agofdt.h: Add grub_fdt_set_reg64 macro
Fu Wei [Thu, 7 May 2015 13:13:25 +0000 (15:13 +0200)]
fdt.h: Add grub_fdt_set_reg64 macro

Signed-off-by: Fu Wei <fu.wei@linaro.org>
9 years agoarm64: Export useful functions from linux.c
Fu Wei [Thu, 7 May 2015 13:11:04 +0000 (15:11 +0200)]
arm64: Export useful functions from linux.c

Signed-off-by: Fu Wei <fu.wei@linaro.org>
9 years agoRevert "efinet: memory leak on module removal"
Andrei Borzenkov [Mon, 4 May 2015 06:13:53 +0000 (09:13 +0300)]
Revert "efinet: memory leak on module removal"

This reverts commits 47b2bee3ef0ea60fc3f5bfc37f3784e559385297
and 8d3c4544ffdd0289a4b0bdeb0cdc6355f801a4b3. It is not safe
to free allocated cards, dangling pointers main remain. Such
cleanup requires more changes in net core.

9 years agoefinet: cannot free const char * pointer
Andrei Borzenkov [Mon, 4 May 2015 05:39:29 +0000 (08:39 +0300)]
efinet: cannot free const char * pointer

9 years agoefinet: memory leak on module removal
Andrei Borzenkov [Mon, 4 May 2015 05:08:57 +0000 (08:08 +0300)]
efinet: memory leak on module removal

9 years agozfs: add missing NULL check and fix incorrect buffer overwrite
Andrei Borzenkov [Sun, 3 May 2015 15:55:13 +0000 (18:55 +0300)]
zfs: add missing NULL check and fix incorrect buffer overwrite

grub_memset should zero out padding after data end. It is not clear
why it is needed at all - ZFS block is at least 512 bytes and power
of two, so it is always multiple of 16 bytes. This grub_memset
apparently never did anything.

9 years agozfs: com.delphix:embedded_data feature support
Toomas Soome [Thu, 16 Apr 2015 05:23:22 +0000 (08:23 +0300)]
zfs: com.delphix:embedded_data feature support

9 years agozfs: com.delphix:hole_birth feature support
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.

9 years agogrub-mkconfig: use $pkgdatadir in scripts
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.

9 years agoRemove -V in grub-mkrescue.c
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.

9 years agogetroot: include sys/mkdev.h for makedev
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.

9 years agocore/partmap: rename 'sun' to avoid clash with predefined symbol
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.

9 years agodocs/grub.texi: Fix spelling of cbfstool
Paul Menzel [Sat, 11 Apr 2015 19:40:50 +0000 (21:40 +0200)]
docs/grub.texi: Fix spelling of cbfstool

9 years agocore: avoid NULL derefrence in grub_divmod64s
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>
9 years agodo not emit cryptomount without crypto UUID
Andrei Borzenkov [Sat, 28 Mar 2015 19:13:35 +0000 (22:13 +0300)]
do not emit cryptomount without crypto UUID

9 years agogrub-core/loader/i386/xen.c: Initialized initrd_ctx so we don't free a random pointer...
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>
9 years agonet: trivial grub_cpu_to_XX_compile_time cleanup
Andrei Borzenkov [Fri, 27 Mar 2015 15:58:57 +0000 (18:58 +0300)]
net: trivial grub_cpu_to_XX_compile_time cleanup

9 years agosyslinux: Support {vesa,}menu.c32.
Lunar [Fri, 27 Mar 2015 14:15:13 +0000 (15:15 +0100)]
syslinux: Support {vesa,}menu.c32.

9 years agoRecognize EFI platform even in case of mismatch between Linux and EFI.
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>
9 years agoAdd missing initializers to silence suprious warnings.
Michael Zimmermann [Fri, 27 Mar 2015 13:44:41 +0000 (14:44 +0100)]
Add missing initializers to silence suprious warnings.

9 years agodl_helper: Cleanup
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.

9 years agoefinet: Check for immediate completition.
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.

9 years agoMake Makefile.util.def independent of platform.
Vladimir Serbinenko [Fri, 27 Mar 2015 13:04:41 +0000 (14:04 +0100)]
Make Makefile.util.def independent of platform.

9 years agoutil/mkimage: Use stable timestamp when generating binaries.
Daniel Kahn Gillmor [Fri, 27 Mar 2015 12:26:48 +0000 (13:26 +0100)]
util/mkimage: Use stable timestamp when generating binaries.

9 years agomodinfo.sh.in: Add missing config variables.
Vladimir Serbinenko [Fri, 20 Mar 2015 20:42:48 +0000 (21:42 +0100)]
modinfo.sh.in: Add missing config variables.

9 years agoMakefile.core.def: Remove obsolete LDADD_KERNEL
Vladimir Serbinenko [Fri, 20 Mar 2015 20:41:17 +0000 (21:41 +0100)]
Makefile.core.def: Remove obsolete LDADD_KERNEL

9 years agoarp, icmp: Fix handling in case of oversized or invalid packets.
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.

9 years agohostfs: Drop unnecessary feature test macros
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.

9 years agocompiler-rt-emu: Add missing file.
Vladimir Serbinenko [Fri, 20 Mar 2015 12:00:53 +0000 (13:00 +0100)]
compiler-rt-emu: Add missing file.

9 years agoemunet: Fix init error checking.
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.

9 years agofddboot_test: Add -no-pad to xorriso.
Vladimir Serbinenko [Fri, 20 Mar 2015 11:58:08 +0000 (12:58 +0100)]
fddboot_test: Add -no-pad to xorriso.

9 years agogrub-mkrescue: pass all unrecognized options unchanged to xorriso.
Vladimir Serbinenko [Fri, 20 Mar 2015 11:55:27 +0000 (12:55 +0100)]
grub-mkrescue: pass all unrecognized options unchanged to xorriso.

9 years agocacheinfo: Add missing license information.
Vladimir Serbinenko [Fri, 20 Mar 2015 10:13:58 +0000 (11:13 +0100)]
cacheinfo: Add missing license information.

9 years agogrub-fs-tester: add LVM RAID1 support
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.

9 years agocore: add LVM RAID1 support
Andrei Borzenkov [Thu, 19 Mar 2015 18:30:27 +0000 (21:30 +0300)]
core: add LVM RAID1 support

Closes 44534.

9 years agogrub-fs-tester: explicitly set segment type for LVM mirror
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.

9 years agogrub-fs-tester: better estimation of filesystem time for LVM/RAID
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.

9 years agohfsplus: Fix potential access to uninited memory on invalid FS
Vladimir Serbinenko [Fri, 6 Mar 2015 21:33:20 +0000 (22:33 +0100)]
hfsplus: Fix potential access to uninited memory on invalid FS

9 years agoautogen.sh: Allow overriding the python to be used by setting $PYTHON.
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.

9 years agoupdate gnulib/argp-help.c to fix garbage in grub-mknetdir --help output
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).

9 years agoupdate m4/extern-inline.m4 to upstream version to fix compilation on FreeBSD
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>
9 years agosyslinux_parse: Fix the case of unknown localboot.
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

9 years agoconfigure.ac: Fix the name of pciaccess header.
Vladimir Serbinenko [Wed, 4 Mar 2015 00:01:45 +0000 (01:01 +0100)]
configure.ac: Fix the name of pciaccess header.

9 years agoFix canonicalize_file_name clash.
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.

9 years agoRemove emu libusb support.
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.

9 years agoconfigure.ac: Remove unused COND_clang
Vladimir Serbinenko [Tue, 3 Mar 2015 19:49:48 +0000 (20:49 +0100)]
configure.ac: Remove unused COND_clang

9 years agoRemove libgcc dependency.
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.

9 years agotypes.h: Use __builtin_bswap* with clang.
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.

9 years agoconfigure.ac: Set $CPPFLAGS when checking for no_app_regs.
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.

9 years agoDon't continue to query block-size if disk doesn't have it.
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".

9 years agogrub-probe: free temporary variable
Andrei Borzenkov [Sat, 28 Feb 2015 17:19:57 +0000 (20:19 +0300)]
grub-probe: free temporary variable

9 years agoexclude.pot: Add new technical strings
Vladimir Serbinenko [Sat, 28 Feb 2015 15:23:27 +0000 (16:23 +0100)]
exclude.pot: Add new technical strings

9 years agogrub-probe: Mark a "[default=]" for translation.
Vladimir Serbinenko [Sat, 28 Feb 2015 15:22:46 +0000 (16:22 +0100)]
grub-probe: Mark a "[default=]" for translation.

9 years agogrub-shell: Add missing --locale-directory.
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.

9 years agontfs_test: Skip is setfattr is unavailable.
Vladimir Serbinenko [Sat, 28 Feb 2015 14:13:41 +0000 (15:13 +0100)]
ntfs_test: Skip is setfattr is unavailable.

9 years agoemu/cache: Change declaration of __clear_cache to match builtin declaration.
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.

9 years agoarm/dl: Fix handling of nonstandard relocation sizes
Vladimir Serbinenko [Thu, 26 Feb 2015 21:10:29 +0000 (22:10 +0100)]
arm/dl: Fix handling of nonstandard relocation sizes

9 years agogzio: Optimize by removing division.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:10:09 +0000 (22:10 +0100)]
gzio: Optimize by removing division.

9 years agoraid6: Optimize by removing division.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:07:22 +0000 (22:07 +0100)]
raid6: Optimize by removing division.

9 years agodmraid_nvidia: Fix division by 0 and missing byte-swap.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:06:19 +0000 (22:06 +0100)]
dmraid_nvidia: Fix division by 0 and missing byte-swap.

9 years agocrypto: restrict cipher block size to power of 2.
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.

9 years agojpeg: Optimise by replacing division with shifts.
Vladimir Serbinenko [Thu, 26 Feb 2015 20:27:32 +0000 (21:27 +0100)]
jpeg: Optimise by replacing division with shifts.

9 years agopng: Optimize by avoiding divisions.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:27:43 +0000 (18:27 +0100)]
png: Optimize by avoiding divisions.

9 years agoAdd missing lib/division.c
Vladimir Serbinenko [Thu, 26 Feb 2015 17:22:40 +0000 (18:22 +0100)]
Add missing lib/division.c

9 years agofbblit: Optimize by replacing division with additions and shifts.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:14:28 +0000 (18:14 +0100)]
fbblit: Optimize by replacing division with additions and shifts.

9 years agobitmap_scale: Optimize by moving division out of the loop.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:13:36 +0000 (18:13 +0100)]
bitmap_scale: Optimize by moving division out of the loop.

9 years agominilzo: Skip parts tha we don't need.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:11:53 +0000 (18:11 +0100)]
minilzo: Skip parts tha we don't need.

9 years agomips: Fix soft-float handling.
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.