]>
git.proxmox.com Git - grub2.git/log
Colin Watson [Mon, 18 Nov 2013 16:16:33 +0000 (16:16 +0000)]
* tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
but for symmetry).
* tests/lzocompress_test.in: Skip if lzop is not installed.
* tests/xzcompress_test.in: Skip if xz is not installed.
Vladimir Serbinenko [Mon, 18 Nov 2013 15:47:54 +0000 (16:47 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Vladimir Serbinenko [Mon, 18 Nov 2013 15:39:45 +0000 (16:39 +0100)]
* grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
clock frequency to 200 MHz,
Vladimir Serbinenko [Mon, 18 Nov 2013 15:32:22 +0000 (16:32 +0100)]
* tests/util/grub-shell.in: Increase console size to 1024x1024.
Colin Watson [Mon, 18 Nov 2013 15:30:47 +0000 (15:30 +0000)]
* util/grub-mkrescue.c (main): Fix typo.
Vladimir Serbinenko [Mon, 18 Nov 2013 15:12:50 +0000 (16:12 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Vladimir Serbinenko [Mon, 18 Nov 2013 15:05:47 +0000 (16:05 +0100)]
* Makefile.am (default_payload.elf): Add pata to loaded modules.
Load config file from (cbfsdisk)/etc/grub.cfg.
Vladimir Serbinenko [Mon, 18 Nov 2013 14:59:55 +0000 (15:59 +0100)]
* util/grub-install-common.c (grub_install_copy_files): Fix module
destination directory.
Colin Watson [Mon, 18 Nov 2013 14:02:11 +0000 (14:02 +0000)]
* tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
files have not been built.
Vladimir Serbinenko [Mon, 18 Nov 2013 13:54:01 +0000 (14:54 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Vladimir Serbinenko [Mon, 18 Nov 2013 13:40:41 +0000 (14:40 +0100)]
* tests/util/grub-shell.in: Use -cdrom and don't force cdrom
on primary master on pseries.
Vladimir Serbinenko [Mon, 18 Nov 2013 13:38:31 +0000 (14:38 +0100)]
* grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
already loaded. This saves memory needed for tests,
Vladimir Serbinenko [Mon, 18 Nov 2013 13:36:31 +0000 (14:36 +0100)]
* util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
work again.
Vladimir Serbinenko [Mon, 18 Nov 2013 13:35:18 +0000 (14:35 +0100)]
* grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
work again.
Colin Watson [Mon, 18 Nov 2013 12:27:44 +0000 (12:27 +0000)]
* grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
Handle errors from mkstemp.
(grub_util_make_temporary_dir): Handle errors from mkdtemp.
Vladimir Serbinenko [Mon, 18 Nov 2013 10:51:46 +0000 (11:51 +0100)]
* tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
master since with some combinations of qemu and firmware only primary
IDE channel is available.
Vladimir Serbinenko [Mon, 18 Nov 2013 10:48:07 +0000 (11:48 +0100)]
* grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
low-memory platforms where we don't have enough memory for them.
* grub-core/tests/videotest_checksum.c: Likewise.
Vladimir Serbinenko [Mon, 18 Nov 2013 10:45:55 +0000 (11:45 +0100)]
* grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
already loaded. This saves memory needed for tests,
Vladimir Serbinenko [Mon, 18 Nov 2013 10:38:00 +0000 (11:38 +0100)]
Fix handling of install lists.
Vladimir Serbinenko [Mon, 18 Nov 2013 09:01:36 +0000 (10:01 +0100)]
* grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
Vladimir Serbinenko [Mon, 18 Nov 2013 03:32:33 +0000 (04:32 +0100)]
On i386-ieee1275 we run in paged mode. So we need to explicitly map
the devices before accessing them.
Vladimir Serbinenko [Mon, 18 Nov 2013 01:45:25 +0000 (02:45 +0100)]
* grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
as file argument.
Vladimir Serbinenko [Mon, 18 Nov 2013 01:43:29 +0000 (02:43 +0100)]
* grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
Vladimir Serbinenko [Mon, 18 Nov 2013 01:41:42 +0000 (02:41 +0100)]
* grub-core/kern/file.c (grub_file_open): Free file->name on failure.
(grub_file_close): Free file->name.
Vladimir Serbinenko [Mon, 18 Nov 2013 01:40:17 +0000 (02:40 +0100)]
* grub-core/commands/verify.c (free_pk): Plug memory leak.
(grub_load_public_key): Likewise.
(grub_verify_signature_real): Likewise.
(grub_cmd_verify_signature): Likewise.
Vladimir Serbinenko [Mon, 18 Nov 2013 01:37:46 +0000 (02:37 +0100)]
* grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
memory leak.
Vladimir Serbinenko [Mon, 18 Nov 2013 01:35:32 +0000 (02:35 +0100)]
* grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
(grub_longjmp): Restore r31.
* include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
Vladimir Serbinenko [Mon, 18 Nov 2013 01:03:36 +0000 (02:03 +0100)]
* util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
modules to be in line with make_image_abs.
Vladimir Serbinenko [Mon, 18 Nov 2013 00:49:14 +0000 (01:49 +0100)]
* include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
setjmp.S uses 12 entries but buffer is declared with only 11 entries.
Ian Campbell [Sun, 17 Nov 2013 14:38:09 +0000 (15:38 +0100)]
* grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
Vladimir Serbinenko [Sun, 17 Nov 2013 01:16:21 +0000 (02:16 +0100)]
* tests/grub_func_test.in: Increase memory reservation as on EFI we need
to leave some memory to firmware.
Vladimir Serbinenko [Sun, 17 Nov 2013 01:13:33 +0000 (02:13 +0100)]
* grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
of loading gfxterm as gfxterm is embed in kernel on some platforms.
* grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
Load gfxmenu.
Vladimir Serbinenko [Sun, 17 Nov 2013 01:09:15 +0000 (02:09 +0100)]
* tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
now needs full arguments.
Vladimir Serbinenko [Sun, 17 Nov 2013 01:05:45 +0000 (02:05 +0100)]
* util/grub-mkrescue.c (main): Add trailing \n in
.disk_label.contentDetails to be in line with previous shell script.
Vladimir Serbinenko [Sun, 17 Nov 2013 01:03:03 +0000 (02:03 +0100)]
* util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
Vladimir Serbinenko [Sun, 17 Nov 2013 01:01:21 +0000 (02:01 +0100)]
* util/grub-install-common.c (grub_install_parse): Recognize
--compress=none like shell script did.
Vladimir Serbinenko [Sun, 17 Nov 2013 00:01:47 +0000 (01:01 +0100)]
* include/grub/misc.h: Replace check for __sparc64__ with one for
__sparc__ as __sparc64__ isn't actually defined.
Vladimir Serbinenko [Sat, 16 Nov 2013 23:57:54 +0000 (00:57 +0100)]
* tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
counterpart of fixing the naming of escc ports.
Vladimir Serbinenko [Sat, 16 Nov 2013 23:54:40 +0000 (00:54 +0100)]
* util/grub-install-common.c (platforms): Fix the order of entries and
remove useless field val.
Vladimir Serbinenko [Sat, 16 Nov 2013 20:11:01 +0000 (21:11 +0100)]
* util/grub-install.c: Add new option --no-bootsector to skip
installing of bootsector. Accept --grub-setup=/bin/true as
backwards-compatible synonym.
Vladimir Serbinenko [Sat, 16 Nov 2013 19:21:16 +0000 (20:21 +0100)]
Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
the function of these files exceeds what can be sanely handled in shell
in posix-comaptible way. Also writing it in C extends the functionality
to non-UNIX-like OS and minimal environments.
Vladimir Serbinenko [Sat, 16 Nov 2013 16:37:06 +0000 (17:37 +0100)]
* grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
compiling to thumb2.
* grub-core/kern/arm/cache_armv7.S: Likewise.
* grub-core/lib/arm/setjmp.S: Likewise.
Leif Lindholm [Sat, 16 Nov 2013 15:56:09 +0000 (15:56 +0000)]
arm: delete superflouous save of r8 in grub_uboot_syscall
Vladimir Serbinenko [Sat, 16 Nov 2013 15:37:59 +0000 (16:37 +0100)]
Decrease stack usage in lexer.
We have only 92K of stack and using over 4K per frame is wasteful
* grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
as macros so that compiler would remove useless structure on stack.
Better solution would be to fix flex not to put this structure on
the stack but flex is external program.
Vladimir Serbinenko [Sat, 16 Nov 2013 15:34:51 +0000 (16:34 +0100)]
Decrease stack usage in signature verification.
We have only 92K of stack and using over 4K per frame is wasteful
* grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
rather than stack.
(grub_verify_signature_real): Likewise.
Vladimir Serbinenko [Sat, 16 Nov 2013 15:17:46 +0000 (16:17 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Conflicts:
ChangeLog
Vladimir Serbinenko [Sat, 16 Nov 2013 15:16:48 +0000 (16:16 +0100)]
Decrease stack usage in mdraid 0.9x.
We have only 92K of stack and using over 4K per frame is wasteful
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
rather than stack.
Vladimir Serbinenko [Sat, 16 Nov 2013 15:03:28 +0000 (16:03 +0100)]
Decrease stack usage in BtrFS.
We have only 92K of stack and using over 4K per frame is wasteful
* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
rather than stack.
Vladimir Serbinenko [Sat, 16 Nov 2013 15:03:28 +0000 (16:03 +0100)]
Decrease stack usage in BtrFS.
We have only 92K of stack and using over 4K per frame is wasteful
* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
rather than stack.
Vladimir Serbinenko [Sat, 16 Nov 2013 15:00:42 +0000 (16:00 +0100)]
Decrease stack usage in JFS.
We have only 92K of stack and using over 4K per frame is wasteful
* grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
stack. Note: this function is recursive.
(grub_jfs_read_inode): Read only part we care about.
Leif Lindholm [Sat, 16 Nov 2013 12:15:53 +0000 (12:15 +0000)]
arm: fix u-boot port syscall interface va_arg handling
Commit
c9cd02c broke the u-boot syscall API for va_args that spill over
to the stack, causing the disk support to stop working. This patch
resolves the problem, while keeping the new, cleaner transition_space
handling.
Andrey Borzenkov [Sat, 16 Nov 2013 13:03:20 +0000 (17:03 +0400)]
restore -nostdlib for libgcc symbols tests
Commit
24f4e57c4684471da088c504dec0380886eece0c plugged leakage
of CFLAGS between individual tests, which broke test for libgcc
symbols. It needs -nostdlib which was set in previous test and
inherited before. Set it explicitly.
Andrey Borzenkov [Sat, 16 Nov 2013 13:00:59 +0000 (17:00 +0400)]
document cmdpath environment variable
Andrey Borzenkov [Sat, 16 Nov 2013 12:59:07 +0000 (16:59 +0400)]
MIPS grub_machine_get_bootlocation arguments are used
Colin Watson [Fri, 15 Nov 2013 16:25:05 +0000 (16:25 +0000)]
* .gitignore: Only ignore grub-mk* at the top level.
Colin Watson [Fri, 15 Nov 2013 14:32:03 +0000 (14:32 +0000)]
* util/grub-reboot.in (usage): Fix a typo.
Vladimir Serbinenko [Fri, 15 Nov 2013 02:28:34 +0000 (03:28 +0100)]
Replace libgcc version of ctz with our own.
On upcoming arm64 port libgcc ctz* are not usable in standalone
environment. Since we need ctz* for this case and implementation is
in C we may as well use it on all concerned platforms.
Vladimir Serbinenko [Thu, 14 Nov 2013 22:17:18 +0000 (23:17 +0100)]
* configure.ac: Probe for linking format rather than guessing it based
on target_os.
Vladimir Serbinenko [Thu, 14 Nov 2013 21:42:54 +0000 (22:42 +0100)]
* grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
"1" prior to handoff.
Reported by: M A Young.
Vladimir Serbinenko [Thu, 14 Nov 2013 21:40:50 +0000 (22:40 +0100)]
* grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
\0 to all files.
Reported by: M A Young.
Vladimir Serbinenko [Thu, 14 Nov 2013 21:38:36 +0000 (22:38 +0100)]
* grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
compilation on NetBSD.
Vladimir Serbinenko [Thu, 14 Nov 2013 21:37:20 +0000 (22:37 +0100)]
* acinclude.m4: Don't add -P on initial nm test.
Note: even though this patch postdates Andrey's it bears 14 Nov as
date due to timezone difference.
Vladimir Serbinenko [Thu, 14 Nov 2013 21:28:03 +0000 (22:28 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Andrey Borzenkov [Thu, 14 Nov 2013 20:51:30 +0000 (00:51 +0400)]
add grub-core/tests/signatures.h to distfiles
Vladimir Serbinenko [Thu, 14 Nov 2013 17:41:41 +0000 (18:41 +0100)]
* Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
Colin Watson [Thu, 14 Nov 2013 16:45:27 +0000 (16:45 +0000)]
* util/grub-install_header: Set localedir here, since this file is
where it's used.
* util/grub-install.in: Remove setting of localedir.
* util/grub-mkrescue.in: Likewise.
Vladimir Serbinenko [Thu, 14 Nov 2013 16:39:01 +0000 (17:39 +0100)]
* configure.ac: Move nm checks to the end.
Call grub_PROG_NM_WORKS.
* acinclude.m4: New check grub_PROG_NM_WORKS.
Use $TARGET_CFLAGS -c when compiling test binary.
Colin Watson [Thu, 14 Nov 2013 15:08:37 +0000 (15:08 +0000)]
* util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
unused variables.
Matthew Garrett [Thu, 14 Nov 2013 14:53:32 +0000 (15:53 +0100)]
* grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
cmdpath to firmware directory.
Vladimir Serbinenko [Thu, 14 Nov 2013 14:50:43 +0000 (15:50 +0100)]
* grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
at the start of second iteration.
Vladimir Serbinenko [Thu, 14 Nov 2013 11:05:48 +0000 (12:05 +0100)]
* grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
Vladimir Serbinenko [Thu, 14 Nov 2013 10:28:38 +0000 (11:28 +0100)]
* Makefile.am (default_payload.elf): New target for easier coreboot
build.
Vladimir Serbinenko [Thu, 14 Nov 2013 09:05:54 +0000 (10:05 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Conflicts:
ChangeLog
Vladimir Serbinenko [Thu, 14 Nov 2013 08:15:18 +0000 (09:15 +0100)]
* grub-core/kern/arm/cache_armv6.S: Remove special handling for
clang (not necessarry with -no-integrated-as).
* include/grub/symbol.h [__arm__]: Likewise.
Colin Watson [Thu, 14 Nov 2013 08:13:06 +0000 (08:13 +0000)]
* grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common code for indirect block handling.
Saves 185 bytes on compressed image.
Vladimir Serbinenko [Thu, 14 Nov 2013 07:36:35 +0000 (08:36 +0100)]
* configure.ac: Use -no-integrated-as on arm with clang.
* INSTALL: Mention ARM compilation with clang.
Vladimir Serbinenko [Thu, 14 Nov 2013 07:34:54 +0000 (08:34 +0100)]
* conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
-mthumb-interwork.
Vladimir Serbinenko [Thu, 14 Nov 2013 07:33:14 +0000 (08:33 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Paulo Flabiano Smorigo [Thu, 14 Nov 2013 01:03:22 +0000 (23:03 -0200)]
fix make clean
* Makefile.am: Remove build-grub-* in make clean.
Paulo Flabiano Smorigo [Thu, 14 Nov 2013 01:02:31 +0000 (23:02 -0200)]
new files to .gitignore
* .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
Leif Lindholm [Thu, 14 Nov 2013 00:33:06 +0000 (01:33 +0100)]
* grub-core/kern/arm/misc.S: Make thumb2-compatible.
Leif Lindholm [Wed, 13 Nov 2013 20:53:57 +0000 (20:53 +0000)]
* .gitignore: fix rules for .dep* and add *.a post git migration
Colin Watson [Wed, 13 Nov 2013 14:57:12 +0000 (14:57 +0000)]
* configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
to match INSTALL.
Colin Watson [Wed, 13 Nov 2013 14:47:23 +0000 (14:47 +0000)]
* grub-core/kern/misc.c: Don't redirect divisions in the
GRUB_UTIL case.
* include/grub/misc.h: Likewise.
Colin Watson [Wed, 13 Nov 2013 13:34:57 +0000 (13:34 +0000)]
* grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
systems that require checking the return value of write.
Colin Watson [Wed, 13 Nov 2013 13:05:39 +0000 (13:05 +0000)]
* util/grub-install.in (efi_quiet): Fix inverted logic: make
efibootmgr quiet when --debug is not used, rather than when it is.
Colin Watson [Wed, 13 Nov 2013 12:46:37 +0000 (12:46 +0000)]
* gentpl.py (define_macro_for_platform_dependencies): Remove
first (and thus unused) of two definitions for this function.
(platform_dependencies): Likewise.
Colin Watson [Wed, 13 Nov 2013 12:01:39 +0000 (12:01 +0000)]
* acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
functions, we only need to check this for the target, not the host.
* configure.ac (grub_apple_cc): Likewise.
Vladimir Serbinenko [Wed, 13 Nov 2013 08:58:52 +0000 (09:58 +0100)]
* grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
* grub-core/kern/arm/cache_armv6.S: ... here. This allows this
asm to stay in arm even if surrounding is thumb.
Vladimir Serbinenko [Wed, 13 Nov 2013 08:52:33 +0000 (09:52 +0100)]
* grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
helper functions are needed for thumb.
Vladimir Serbinenko [Wed, 13 Nov 2013 08:40:16 +0000 (09:40 +0100)]
* grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
level / 3 division explicitly unsigned. Saves few bytes.
Vladimir Serbinenko [Wed, 13 Nov 2013 08:27:36 +0000 (09:27 +0100)]
* grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
Vladimir Serbinenko [Wed, 13 Nov 2013 08:26:13 +0000 (09:26 +0100)]
* grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
division.
Vladimir Serbinenko [Wed, 13 Nov 2013 05:28:15 +0000 (06:28 +0100)]
* grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
grub_uboot_boot_data to asm part.
Vladimir Serbinenko [Wed, 13 Nov 2013 05:27:03 +0000 (06:27 +0100)]
* grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
literal load.
(grub_uboot_syscall): Save/restore r9 and align stack.
Vladimir Serbinenko [Wed, 13 Nov 2013 05:23:32 +0000 (06:23 +0100)]
* grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
Vladimir Serbinenko [Wed, 13 Nov 2013 04:19:30 +0000 (05:19 +0100)]
* include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
occurencies with END.
Colin Watson [Wed, 13 Nov 2013 02:15:57 +0000 (02:15 +0000)]
* util/grub-editenv.c (help_filter, argp): Document how to delete
the whole environment block.
Reported by Dan Jacobson. Fixes Debian bug #726265.
Colin Watson [Wed, 13 Nov 2013 02:08:50 +0000 (02:08 +0000)]
* docs/grub.texi (Internationalisation, Supported kernels): Fix
sectioning.
Josh Triplett [Wed, 13 Nov 2013 01:27:11 +0000 (02:27 +0100)]
* grub-core/normal/term.c (grub_set_more): Use bool logic rather than
increment/decrement.