Commit graph

  • c8a0f1b229 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for computing crc32 rather than handling with md fundtions directly. Vladimir Serbinenko 2013-11-29 04:14:26 +01:00
  • 726409a513 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for checking fwstart.img rather than md fundtions directly. Vladimir Serbinenko 2013-11-29 04:05:44 +01:00
  • 422e6e886c * util/grub-mkrescue.c (main): Check that fread succeeded. Vladimir Serbinenko 2013-11-29 03:54:21 +01:00
  • af1faca3f8 * conf/Makefile.common: Remove -mexplicit-relocs and -DUSE_ASCII_FALLBACK on yeeloong. Vladimir Serbinenko 2013-11-29 03:45:50 +01:00
  • 469021b4b3 Remove libgnulib.a and use its sources in dependencies directly. Vladimir Serbinenko 2013-11-29 03:36:50 +01:00
  • 83c256ba42 * grub-core/osdep/unix/password.c (grub_password_get): Check that fgets succeeded. Vladimir Serbinenko 2013-11-29 03:32:57 +01:00
  • b67422d33d Fix command description in case of a device name passed as argument. Francesco Lavra 2013-11-28 17:25:52 +04:00
  • 827d87e9d6 Fix documentation of timeout expiry. Colin Watson 2013-11-28 11:01:53 +00:00
  • 8f236c1419 Revamp hidden timeout handling Colin Watson 2013-11-28 02:27:13 +00:00
  • 2d76b4d81e Eliminate variable length arrays in grub_vsnprintf_real. Vladimir Serbinenko 2013-11-27 15:16:09 +01:00
  • 4f9541226c Introduce grub_util_file_sync and use it instead of fsync(fileno(f)). Fixes build for windows. Vladimir Serbinenko 2013-11-27 14:13:50 +01:00
  • b1f742c103 * gentpl.py: Don't generate platform-dependent conditionals for platform-independent targets. Vladimir Serbinenko 2013-11-27 14:06:14 +01:00
  • 16ef26fd3a * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove references to mdadm from otherwise generic code. (grub_util_exec_pipe): Likewise. (grub_util_exec_pipe_stderr): Likewise. * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command): This function calls vgs, not mdadm; adjust variable names accordingly. Colin Watson 2013-11-27 11:22:31 +00:00
  • cf8c80ff77 Merge branch 'new-autogen' Colin Watson 2013-11-27 10:57:27 +00:00
  • 5c7206e45e Speed up test suite by avoiding fsync Colin Watson 2013-11-27 10:06:07 +00:00
  • fc3f2b72cd * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather than hardcoding /usr/local/bin/xorriso. Colin Watson 2013-11-26 23:51:48 +00:00
  • 34b2003def Handle #if/#endif and C-style comments in AutoGen definitions files. Colin Watson 2013-11-26 17:48:20 +00:00
  • 7e90f5ad25 Show file name in error messages from AutogenParser. Colin Watson 2013-11-26 17:42:56 +00:00
  • ab4f15013a Generate Makefile.*.am directly from gentpl.py, eliminating the use of Autogen. The Autogen definitions files remain intact as they offer a useful abstraction. Colin Watson 2013-11-13 12:42:24 +00:00
  • 1e4b358720 Add PCI command activation to all PCI drivers as required for coreboot and maybe some other firmwares. Vladimir Serbinenko 2013-11-26 14:21:11 +01:00
  • 9208367d3f * grub-core/Makefile.am: Reduce gratuituous differences between Apple and non-Apple variants of efiemu compile. Vladimir Serbinenko 2013-11-26 11:38:12 +01:00
  • 67b9b7afd7 Add ChangeLog entry for previous commit Andrey Borzenkov 2013-11-25 23:14:04 +04:00
  • c2b70d0981 Explicitly check for linking format to use for efiemu64 module Andrey Borzenkov 2013-11-24 21:12:17 +04:00
  • bee1b5ce3f * util/grub-mknetdir.c: Look for platform directories under pkglibdir and not pkgdatadir. Vladimir Serbinenko 2013-11-25 19:16:05 +01:00
  • 07e3b04742 Add a --locale-directory option to grub-install and related tools. Colin Watson 2013-11-25 18:04:50 +00:00
  • ebd289335a Mention clang for arm64 Vladimir Serbinenko 2013-11-25 13:27:39 +01:00
  • d2f7902af0 Make arm64 compileable with clang Vladimir Serbinenko 2013-11-25 13:06:56 +01:00
  • 1005bed722 Use b.ge form for instructions Vladimir Serbinenko 2013-11-25 13:04:44 +01:00
  • d6c92cdc34 Merge branch 'master' into leiflindholm/arm64 Vladimir Serbinenko 2013-11-25 13:02:27 +01:00
  • 61e1b9a49d * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline. Don't rely on PATH_MAX. Vladimir Serbinenko 2013-11-25 07:34:49 +01:00
  • c98dd165b0 * grub-core/genmoddep.awk: Use more portable && rather than and. Vladimir Serbinenko 2013-11-25 07:32:51 +01:00
  • ff1c277ef8 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing an object after data. While it doesn't seem right solution, it works well enough and OSX isn't main compilation platform. Vladimir Serbinenko 2013-11-25 05:55:33 +01:00
  • c8f7614b98 * gentpl.py: Add -ed2016 in order to make objconv accept our binary. While it doesn't seem right solution, it works well enough and OSX isn't main compilation platform. Vladimir Serbinenko 2013-11-25 05:53:20 +01:00
  • 246a434f61 * configure.ac: Add -static to LDFLAGS when using apple linker to prevent it from pulling in dynamic linker. Vladimir Serbinenko 2013-11-25 05:47:20 +01:00
  • 5c066a81c2 Apple assembly doesn't handle symbol arithmetic well. So define an offset symbol in boot.S and use it. Vladimir Serbinenko 2013-11-24 06:20:10 +01:00
  • 78f961efe9 Apple assembly doesn't handle symbol arithmetic well. So instead of getting addres of kernel_sector + 4 define kernel_sector_high. It also makes code more readable. Vladimir Serbinenko 2013-11-24 06:13:45 +01:00
  • 09bc0a577d With Apple assembly in .macro environvemnt you have to use $$ instead of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands to $$x on Apple and to $x on everything else. Vladimir Serbinenko 2013-11-24 05:55:47 +01:00
  • b700a427d2 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than OBJCONV. Vladimir Serbinenko 2013-11-24 05:27:20 +01:00
  • 4480b95dcd * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple and non-Apple. This instruction is shorter and faster, so no reason not to use it on both. Vladimir Serbinenko 2013-11-24 05:17:24 +01:00
  • e77c81f6f8 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than .text when compiling for Apple. Vladimir Serbinenko 2013-11-24 05:14:11 +01:00
  • 971dbee521 * grub-core/term/arc/console.c: Add missing cast to silence warning. Vladimir Serbinenko 2013-11-24 05:04:12 +01:00
  • 6f2e82be3a * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing %dx restore the probe worked on non-existant drive. Reorganize the code a little bit to free 2 bytes necessary for push/pop. Vladimir Serbinenko 2013-11-24 05:01:13 +01:00
  • 9eec9699b9 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation): Add missing cast to silence warning. Vladimir Serbinenko 2013-11-23 15:35:01 +01:00
  • 5ae5c54c7e * util/grub-install.c (update_nvram): Support --no-nvram flag for EFI targets. Keshav Padram Amburay 2013-11-23 13:02:12 +01:00
  • 7b04fe6c9e * INSTALL: Add note about sparc64/ia64 with clang (unsupported). Vladimir Serbinenko 2013-11-23 12:49:41 +01:00
  • e67566ce0a * util/garbage-gen.c: Add missing include of sys/time.h. Vladimir Serbinenko 2013-11-23 12:42:30 +01:00
  • f93ddcfd1c Don't add -mflush-func if it's not supported by compiler. Vladimir Serbinenko 2013-11-23 12:40:44 +01:00
  • 1bba40f578 Move common BIOS/coreboot memory map declarations to include/grub/i386/memory_raw.h and eliminate duplicate declarations. Vladimir Serbinenko 2013-11-23 12:39:21 +01:00
  • f65e14dc3a add util/garbage-gen.c to EXTRA_DIST Andrey Borzenkov 2013-11-23 14:39:35 +04:00
  • 14a94bba6f * INSTALL: Document why older clang versions aren't appropriate. Vladimir Serbinenko 2013-11-23 01:16:47 +01:00
  • 8109c5d4e2 * INSTALL: Document about clang for mips. Vladimir Serbinenko 2013-11-23 00:41:32 +01:00
  • a92b5cb8d8 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips clang. Vladimir Serbinenko 2013-11-23 00:36:13 +01:00
  • 4a23e2fe29 Add *-xen to the list of grub-install-common platforms. Vladimir Serbinenko 2013-11-22 14:21:16 +01:00
  • a3ba74104e * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with 3 last commits. Vladimir Serbinenko 2013-11-22 13:07:51 +01:00
  • e1c22419ac * grub-core/kern/xen/init.c: Do not map more pages than we can address. Vladimir Serbinenko 2013-11-22 13:04:29 +01:00
  • 189090cee9 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling with -mcmodel=large. Vladimir Serbinenko 2013-11-22 13:03:19 +01:00
  • 1a5b7b404f * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add range-checking for 32-bit quantities. Vladimir Serbinenko 2013-11-22 13:01:14 +01:00
  • 9cf12b20af * configure.ac: Compile with -fPIC when compiling with clang on mips. Vladimir Serbinenko 2013-11-22 12:50:41 +01:00
  • 63a45330cb * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS when compiling with clang. Vladimir Serbinenko 2013-11-22 12:48:32 +01:00
  • 4a0aaad022 clang emits calls to abort () under some unknown conditions. Export abort () when compiling with clang. Vladimir Serbinenko 2013-11-22 12:42:58 +01:00
  • 095bb1bfa5 * docs/grub-dev.texi: Document stack and heap sizes. Vladimir Serbinenko 2013-11-22 12:03:44 +01:00
  • 3937bd962b * include/grub/i386/pc/memory.h: Decrease GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase GRUB_MEMORY_MACHINE_PROT_STACK_SIZE. The binary doesn't change (checked). It's more to better reflect actual usage. Vladimir Serbinenko 2013-11-22 12:02:00 +01:00
  • ddb3efc906 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure at compile time that enough of scratch size is available. Vladimir Serbinenko 2013-11-22 12:00:10 +01:00
  • 4e42521d8c * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment. Previously we misaligned stack by 8 in startup.S and compensated for it in callwrap.S. According to ABI docs (EFI and sysv amd64) right behaviour is to align stack in startup.S and keep it aligned in callwrap.S. startup.S part was committed few commits before. This takes care of callwrap.S. Reported by: Gary Lin. Vladimir Serbinenko 2013-11-22 05:40:32 +01:00
  • 054efe541f * grub-core/boot/mips/startup_raw.S: Handle the case of gap between .data and .bss. May happen if compiler and assembly use different alignment. Vladimir Serbinenko 2013-11-22 05:07:32 +01:00
  • a0e1befb57 On MIPS handle got16 relocations to local symbols in an ABI-compliant way. Vladimir Serbinenko 2013-11-22 05:03:17 +01:00
  • c36c73f681 Add support for a new magic symbol _gp_disp on mips to handle PIC binaries. Vladimir Serbinenko 2013-11-22 04:56:10 +01:00
  • 6f4a19f59f Use $t9 for indirect calls from asm to C as PIC ABI requires. Vladimir Serbinenko 2013-11-22 04:45:05 +01:00
  • 0d8f04cd83 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem when rest of GRUB is compiled for hisher stepping. Instead use .set mips3/.set mips1 around cache and sync opcodes. Vladimir Serbinenko 2013-11-22 04:36:53 +01:00
  • 4906052019 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they do essentially the same thing, do it in similar way. Vladimir Serbinenko 2013-11-21 21:54:33 +01:00
  • c6a823e267 * util/grub-mkrescue.c (main): If a source directory is not specified, read platform-specific files from subdirectories of pkglibdir, not pkgdatadir. Colin Watson 2013-11-21 17:36:45 +00:00
  • b7f9aedfac * grub-core/normal/progress.c: Remove unused file. Colin Watson 2013-11-21 15:37:57 +00:00
  • 7dd0a30361 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length array. Vladimir Serbinenko 2013-11-20 20:09:18 +01:00
  • ca120e31f2 * util/grub-mkconfig.in: Say explicit "grub configuration" rather than grub.cfg. Vladimir Serbinenko 2013-11-20 10:18:19 +01:00
  • 48eb35cd78 * coreboot.cfg: Add missing file. Vladimir Serbinenko 2013-11-20 00:52:23 +01:00
  • 7f20dbbcd2 * Makefile.am: Allow STRIP to be empty when creating windowszip. Vladimir Serbinenko 2013-11-19 23:48:46 +01:00
  • 55e706c918 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to selectively skipping systems. Axel Kellermann 2013-11-19 23:39:51 +01:00
  • 4e7d433dfb * Makefile.util.def (grub-mkimage): Add grub-core/osdep/aros/config.c to extra_dist. * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg, docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff, grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and grub-core/gnulib-no-gets.diff. Colin Watson 2013-11-19 20:37:42 +00:00
  • 7d44ff7de6 Add automated filesystem checking based on scripts I've used now for quite some time locally. Most of the test require root so they are skipped when run without necessarry privelegies. Vladimir Serbinenko 2013-11-19 21:05:59 +01:00
  • a8c3e5e3c7 * util/grub-install.c (main): Adjust info messages to match installed paths of grub-bios-setup and grub-sparc64-setup. Colin Watson 2013-11-19 18:43:05 +00:00
  • 4402db3ecc * util/grub-install-common.c (copy_locales): Consistently use grub_util_get_localedir () rather than LOCALEDIR. (grub_install_copy_files): Likewise. Colin Watson 2013-11-19 15:35:44 +00:00
  • 7960d3e182 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a 16-byte boundary, as required by the x86-64 ABI, before calling grub_main. In some cases, GCC emits code that assumes this alignment, which crashes if not aligned. The EFI firmware is also entitled to assume that stack alignment without checking. Josh Triplett 2013-11-19 14:31:40 +01:00
  • 8a07b55a04 arm64: cache maintenance code rework + bugfix Leif Lindholm 2013-11-19 10:05:23 +00:00
  • d53f4900d7 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to 4k page boundaries as expected by firmware rather than 1k boundaries. (grub_mmap_malign_and_register): Likewise. Josh Triplett 2013-11-18 18:00:52 +01:00
  • d3def58c52 Add missing arm64 declaration Vladimir Serbinenko 2013-11-18 17:52:57 +01:00
  • 96fa2d9d02 Merge branch 'master' into leiflindholm/arm64 Vladimir Serbinenko 2013-11-18 17:51:28 +01:00
  • 2d6a38fbf7 Merge branch 'master' of git.sv.gnu.org:/srv/git/grub Vladimir Serbinenko 2013-11-18 17:46:15 +01:00
  • bb2b275b7d * tests/grub_func_test.in: Decrease RAM size to 512M. With less fragmentation 512M is enough. Vladimir Serbinenko 2013-11-18 17:42:54 +01:00
  • 45bf8b3a75 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the pointer to 32K. This is the size of cache element which is the most common allocation >1K. This way the pointer is always around blocks of 32K and so we keep performance while decreasing fragmentation. Vladimir Serbinenko 2013-11-18 17:41:37 +01:00
  • 60870be86c * 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. Colin Watson 2013-11-18 16:16:33 +00:00
  • 39ff43c579 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to current memory when allocating large chunks. This significantly decreases memory fragmentation. Vladimir Serbinenko 2013-11-18 16:58:55 +01:00
  • 1bbb796799 Merge branch 'master' of git.sv.gnu.org:/srv/git/grub Vladimir Serbinenko 2013-11-18 16:47:54 +01:00
  • 74e632fea8 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update clock frequency to 200 MHz, Vladimir Serbinenko 2013-11-18 16:39:45 +01:00
  • efb8de492a * tests/util/grub-shell.in: Increase console size to 1024x1024. Vladimir Serbinenko 2013-11-18 16:32:22 +01:00
  • a1f00cc557 * util/grub-mkrescue.c (main): Fix typo. Colin Watson 2013-11-18 15:30:47 +00:00
  • 421db3da06 Merge branch 'master' of git.sv.gnu.org:/srv/git/grub Vladimir Serbinenko 2013-11-18 16:12:50 +01:00
  • b7526e7806 * Makefile.am (default_payload.elf): Add pata to loaded modules. Load config file from (cbfsdisk)/etc/grub.cfg. Vladimir Serbinenko 2013-11-18 16:05:47 +01:00
  • b40ce65180 * util/grub-install-common.c (grub_install_copy_files): Fix module destination directory. Vladimir Serbinenko 2013-11-18 15:59:55 +01:00
  • 1e8e2e78a5 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo files have not been built. Colin Watson 2013-11-18 14:02:11 +00:00
  • 4d5b72cdb4 Merge branch 'master' of git.sv.gnu.org:/srv/git/grub Vladimir Serbinenko 2013-11-18 14:54:01 +01:00