]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
16 years ago2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sat, 27 Jun 2009 17:37:07 +0000 (17:37 +0000)] 
2009-06-27  Robert Millan  <rmh.grub@aybabtu.com>

        * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
        `err'.

16 years ago2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sat, 27 Jun 2009 12:21:18 +0000 (12:21 +0000)] 
2009-06-27  Robert Millan  <rmh.grub@aybabtu.com>

        Revert r2338.

        * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
        file can't be opened.  grub_file_open() is already supposed to set
        grub_errno / grub_errmsg appropiately.
        * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.

16 years ago2009-06-27 Pavel Roskin <proski@gnu.org>
robertmh [Sat, 27 Jun 2009 11:18:10 +0000 (11:18 +0000)] 
2009-06-27  Pavel Roskin  <proski@gnu.org>
2009-06-27  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/dl.h: Include grub/elf.h.
        (struct grub_dl): Add symtab field.
        * kern/dl.c [GRUB_MACHINE_QEMU]: Define
        GRUB_MODULES_MACHINE_READONLY.
        (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
        of the header for read-only modules.
        (grub_dl_unload): Free mod->symtab for read-only modules.
        * kern/i386/dl.c: Use mod->symtab.
        * kern/powerpc/dl.c: Likewise.
        * kern/sparc64/dl.c: Likewise.
        * kern/x86_64/dl.c: Likewise.

        * conf/i386-qemu.rmk: New file.
        * kern/i386/qemu/startup.S: Likewise.
        * kern/i386/qemu/mmap.c: Likewise.
        * boot/i386/qemu/boot.S: Likewise.
        * include/grub/i386/qemu/time.h: Likewise.
        * include/grub/i386/qemu/serial.h: Likewise.
        * include/grub/i386/qemu/kernel.h: Likewise.
        * include/grub/i386/qemu/console.h: Likewise.
        * include/grub/i386/qemu/boot.h: Likewise.
        * include/grub/i386/qemu/init.h: Likewise.
        * include/grub/i386/qemu/machine.h: Likewise.
        * include/grub/i386/qemu/loader.h: Likewise.
        * include/grub/i386/qemu/memory.h: Likewise.

        * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
        (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
        [qemu] (pkglib_IMAGES): Add `boot.img'.
        [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
        [qemu] (boot_img_FORMAT): New variables.
        [qemu] (bin_UTILITIES): Add `grub-mkimage'.
        [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
        [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
        [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
        [qemu] (kernel_img_FORMAT): New variables.

        * configure.ac: Recognise `i386-qemu'.

        * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
        (for no compression).
        [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
        a valid i386 ROM image.  Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
        `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
        `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
        ifdefs).

16 years ago2009-06-27 Pavel Roskin <proski@gnu.org>
proski [Sat, 27 Jun 2009 06:10:33 +0000 (06:10 +0000)] 
2009-06-27  Pavel Roskin  <proski@gnu.org>

* efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
read.
* efiemu/prepare32.c: Likewise.
* efiemu/prepare64.c: Likewise.

16 years ago2009-06-26 Pavel Roskin <proski@gnu.org>
proski [Sat, 27 Jun 2009 03:01:42 +0000 (03:01 +0000)] 
2009-06-26  Pavel Roskin  <proski@gnu.org>

* include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
* include/grub/elf.h: Define symbols without "32" or "64" based
on GRUB_TARGET_WORDSIZE.
* include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
* efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
ELF definitions.
* efiemu/loadcore64.c: Likewise.
* loader/i386/bsd32.c: Likewise.
* loader/i386/bsd64.c: Likewise.
* kern/dl.c: Remove own ELF definitions.
* util/i386/efi/grub-mkimage.c: Likewise.

16 years ago2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 22:48:20 +0000 (22:48 +0000)] 
2009-06-23  Robert Millan  <rmh.grub@aybabtu.com>

        * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
        segment 0x0 unconditionally, because the reference generated by
        GAS is an absolute address.

16 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 20:40:28 +0000 (20:40 +0000)] 
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
        [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.

16 years ago (search_file): Improve error message.
robertmh [Mon, 22 Jun 2009 20:19:13 +0000 (20:19 +0000)] 
    (search_file): Improve error message.
        (GRUB_MOD_INIT(search)): Add missing `-n' to help output.

16 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 19:44:38 +0000 (19:44 +0000)] 
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
        indexes.  Check for -f explicitly.

16 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 19:23:22 +0000 (19:23 +0000)] 
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
        (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this.  Update all users.

16 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 18:04:37 +0000 (18:04 +0000)] 
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
        * conf/i386-ieee1275.rmk: Likewise.
        * conf/i386-coreboot.rmk: Likewise.

        * kern/i386/pc/startup.S (grub_stop): Remove function.
        * kern/i386/ieee1275/startup.S: Likewise.
        * kern/i386/coreboot/startup.S: Likewise.
        * kern/i386/misc.S (grub_stop): New function.

16 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 10:42:37 +0000 (10:42 +0000)] 
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * kern/i386/pc/startup.S (real_to_prot): Move from here ...
        * kern/i386/realmode.S (real_to_prot): ... to here.

16 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 10:27:26 +0000 (10:27 +0000)] 
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
        with `kernel.img'.
        (kernel_elf_SOURCES): Rename to ...
        (kernel_img_SOURCES): ... this.
        (kernel_elf_HEADERS): Rename to ...
        (kernel_img_HEADERS): ... this.  Update all users.
        (kernel_elf_ASFLAGS): Rename to ...
        (kernel_img_ASFLAGS): ... this.
        (kernel_elf_CFLAGS): Rename to ...
        (kernel_img_CFLAGS): ... this.
        (kernel_elf_LDFLAGS): Rename to ...
        (kernel_img_LDFLAGS): ... this.
        * conf/i386-coreboot.rmk: Likewise.
        * conf/powerpc-ieee1275.rmk: Likewise.

        * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
        with "kernel.img".

16 years ago2009-06-21 Pavel Roskin <proski@gnu.org>
proski [Sun, 21 Jun 2009 23:55:23 +0000 (23:55 +0000)] 
2009-06-21  Pavel Roskin  <proski@gnu.org>

* loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
to match nested functions.
* loader/sparc64/ieee1275/linux.c: Likewise.

16 years ago2009-06-21 Pavel Roskin <proski@gnu.org>
proski [Sun, 21 Jun 2009 23:53:30 +0000 (23:53 +0000)] 
2009-06-21  Pavel Roskin  <proski@gnu.org>

* conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.

16 years ago2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sun, 21 Jun 2009 20:10:44 +0000 (20:10 +0000)] 
2009-06-21  Robert Millan  <rmh.grub@aybabtu.com>

        * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
        all i386 platforms.

16 years ago2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sun, 21 Jun 2009 17:24:30 +0000 (17:24 +0000)] 
2009-06-21  Robert Millan  <rmh.grub@aybabtu.com>

        Fix asm file handling on ELF, and remove workarounds.

        * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
        and -DASM_FILE=1 appropiately (copied from `class Images' stanza).
        * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
        * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.

16 years ago2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sun, 21 Jun 2009 15:48:10 +0000 (15:48 +0000)] 
2009-06-21  Vladimir Serbinenko  <phcoder@gmail.com>

Load BSD ELF modules

* conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
and loader/i386/bsd64.c
* include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
(FREEBSD_MODTYPE_ELF_MODULE): New definition
(FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
(grub_freebsd_load_elfmodule32): New declaration
(grub_freebsd_load_elfmoduleobj64): Likewise
(grub_freebsd_load_elf_meta32): Likewise
(grub_freebsd_load_elf_meta64): Likewise
(grub_freebsd_add_meta): Likewise
(grub_freebsd_add_meta_module): Likewise
* loader/i386/bsd.c (grub_freebsd_add_meta): Make global
(grub_freebsd_add_meta_module): Likewise and move module-specific
parts to grub_cmd_freebsd and grub_cmd_freebsd_module
(grub_cmd_freebsd): Add elf-kernel specific parts
based on grub_freebsd_add_meta_module
(grub_cmd_freebsd_module): Add type parsing moved from
grub_freebsd_add_meta_module
(grub_cmd_freebsd_module_elf): New function
(cmd_freebsd_module_elf): New variable
(GRUB_MOD_INIT): Register freebsd_module_elf
* loader/i386/bsd32.c: New file
* loader/i386/bsd64.c: Likewise
* loader/i386/bsdXX.c: Likewise
* kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
(grub_elf64_load): Likewise
* include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
All users updated
(grub_elf64_load_hook_t): Likewise

16 years ago2009-06-21 Colin Watson <cjwatson@ubuntu.com>
robertmh [Sun, 21 Jun 2009 11:21:59 +0000 (11:21 +0000)] 
2009-06-21  Colin Watson  <cjwatson@ubuntu.com>

        * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
        variable.
        * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
        don't write a menu entry for recovery mode.

16 years ago2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sat, 20 Jun 2009 14:32:53 +0000 (14:32 +0000)] 
2009-06-20  Robert Millan  <rmh.grub@aybabtu.com>

        * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
        after it's no longer needed.

16 years ago2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sat, 20 Jun 2009 14:11:45 +0000 (14:11 +0000)] 
2009-06-20  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/i386/loader.h (grub_linux_prot_size)
        (grub_linux_tmp_addr, grub_linux_real_addr)
        (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
        GRUB_MACHINE_PCBIOS.
        * util/i386/pc/grub-mkimage.c (compress_kernel): Move
        common grub_util_info() call to ...
        (generate_image): ... here.
        Fix use of uninitialized memory, comparison of signed with
        unsigned integers and memory leak.
        Remove bogus module address message.

16 years ago2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sat, 20 Jun 2009 03:06:50 +0000 (03:06 +0000)] 
2009-06-20  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
grub_raid_register
* disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise

16 years ago2009-06-19 Pavel Roskin <proski@gnu.org>
proski [Fri, 19 Jun 2009 21:33:07 +0000 (21:33 +0000)] 
2009-06-19  Pavel Roskin  <proski@gnu.org>

* configure.ac: Remove stray AC_MSG_CHECKING.

16 years agoFix a typo, spacing
proski [Fri, 19 Jun 2009 20:35:38 +0000 (20:35 +0000)] 
Fix a typo, spacing

16 years ago2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Fri, 19 Jun 2009 17:38:27 +0000 (17:38 +0000)] 
2009-06-19  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/scsi.c (grub_scsi_open): use continue instead of big if

16 years ago2009-06-18 Pavel Roskin <proski@gnu.org>
proski [Thu, 18 Jun 2009 20:00:34 +0000 (20:00 +0000)] 
2009-06-18  Pavel Roskin  <proski@gnu.org>

* conf/common.rmk: Add fs_file.mod.
* disk/fs_file.c: New file.
* include/grub/disk.h (enum grub_disk_dev_id): Add
GRUB_DISK_DEVICE_FILE_ID.

16 years ago2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Thu, 18 Jun 2009 14:25:51 +0000 (14:25 +0000)] 
2009-06-18  Vladimir Serbinenko  <phcoder@gmail.com>

Fix build with Apple's toolchain. Part 2

* aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
a fake start

16 years ago2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Thu, 18 Jun 2009 14:02:23 +0000 (14:02 +0000)] 
2009-06-18  Vladimir Serbinenko  <phcoder@gmail.com>

Fix build with Apple's toolchain. Part 1

* commands/i386/pc/drivemap_int13h.S: use assembly-time constants
for long calls
* configure.ac: remove a leftover AC_MSG_RESULT
(CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
Apple's toolchain

16 years ago2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Thu, 18 Jun 2009 13:51:06 +0000 (13:51 +0000)] 
2009-06-18  Vladimir Serbinenko  <phcoder@gmail.com>

Fix warnings

* fs/ntfscomp.c (decomp_get16): initialize c1 and c2
(decomp_block): initialize ch
use grub_memcpy instead of memcpy

16 years ago2009-06-17 Pavel Roskin <proski@gnu.org>
proski [Wed, 17 Jun 2009 19:42:06 +0000 (19:42 +0000)] 
2009-06-17  Pavel Roskin  <proski@gnu.org>

* include/grub/i386/coreboot/console.h: Don't use the i386-pc
version, use declarations needed to use vga_text as the startup
console.

16 years ago2009-06-17 Pavel Roskin <proski@gnu.org>
proski [Wed, 17 Jun 2009 19:39:36 +0000 (19:39 +0000)] 
2009-06-17  Pavel Roskin  <proski@gnu.org>

* conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
the kernel.
* kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
and grub_at_keyboard_fini(), it's done on module load and
unload.

16 years ago2009-06-17 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 17 Jun 2009 17:19:23 +0000 (17:19 +0000)] 
2009-06-17  Felix Zielcke  <fzielcke@z-51.de>

* loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
file can't be found.
* loader/i386/pc/linux.c (grub_cmd_linux): Likewise.

16 years ago2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Wed, 17 Jun 2009 13:47:37 +0000 (13:47 +0000)] 
2009-06-17  Vladimir Serbinenko  <phcoder@gmail.com>

Fix newline handling

* include/grub/script_sh.h (grub_lexer_param): new field was_newline
* script/sh/lexer.c (grub_script_lexer_init): initilaise was_newline
(grub_script_yylex): don't segfault on unterminated script
newline terminates command and variable

16 years ago2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Wed, 17 Jun 2009 13:15:33 +0000 (13:15 +0000)] 
2009-06-17  Vladimir Serbinenko  <phcoder@gmail.com>

avoid double grub_adjust_range call. Bug reported by David Simner

* kern/disk.c (grub_disk_write): change to raw disk access before
calling disk_read

16 years ago2009-06-17 Colin Watson <cjwatson@ubuntu.com>
fzielcke [Wed, 17 Jun 2009 06:07:36 +0000 (06:07 +0000)] 
2009-06-17  Colin Watson  <cjwatson@ubuntu.com>

* util/elf/grub-mkimage.c (usage): Prefix each option line with two
spaces, for the benefit of help2man.
* util/i386/efi/grub-mkimage.c (usage): Likewise.

16 years ago2009-06-16 Pavel Roskin <proski@gnu.org>
proski [Tue, 16 Jun 2009 20:55:53 +0000 (20:55 +0000)] 
2009-06-16  Pavel Roskin  <proski@gnu.org>

* kern/i386/halt.c: Include grub/machine/init.h.
* kern/i386/reboot.c: Include grub/cpu/reboot.h.

16 years ago2009-06-16 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 16 Jun 2009 16:59:32 +0000 (16:59 +0000)] 
2009-06-16  Felix Zielcke  <fzielcke@z-51.de>

* util/grub.d/30_os-prober.in: Use ${root} in the generated
drivemap menuentry.

16 years ago2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
fzielcke [Tue, 16 Jun 2009 16:06:49 +0000 (16:06 +0000)] 
2009-06-16  James Jarvis  <James.Jarvis@ed.ac.uk>

* commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
`echo' command.

16 years ago2009-06-16 Pavel Roskin <proski@gnu.org>
proski [Mon, 15 Jun 2009 23:25:38 +0000 (23:25 +0000)] 
2009-06-16  Pavel Roskin  <proski@gnu.org>

* boot/i386/pc/boot.S: Remove root_drive.  Assert offset of
boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK.  Don't
save %dx, we only need %dl and we never change it.
* boot/i386/pc/cdboot.S: Don't set the root drive.
* boot/i386/pc/pxeboot.S: Likewise.
* include/grub/i386/pc/boot.h: Remove
GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
GRUB_BOOT_MACHINE_DRIVE_CHECK.
* include/grub/i386/pc/kernel.h: Remove grub_root_drive.
* kern/i386/pc/init.c (make_install_device): Remove references
to grub_root_drive.
* kern/i386/pc/startup.S: Likewise.
* util/i386/pc/grub-setup.c (setup): Don't set root_drive.

16 years ago2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 15 Jun 2009 22:57:39 +0000 (22:57 +0000)] 
2009-06-16  Vladimir Serbinenko  <phcoder@gmail.com>

xnu_uuid command

* commands/xnu_uuid.c: new file
* conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
(xnu_uuid_mod_SOURCES): new variable
(xnu_uuid_mod_CFLAGS): likewise
(xnu_uuid_mod_LDFLAGS): likewise
* conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
* conf/i386-ieee1275.rmk: likewise
* conf/i386-pc.rmk: likewise
* conf/powerpc-ieee1275.rmk: likewise
* conf/sparc64-ieee1275.rmk: likewise
* util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin

16 years ago2009-06-16 Pavel Roskin <proski@gnu.org>
proski [Mon, 15 Jun 2009 22:45:17 +0000 (22:45 +0000)] 
2009-06-16  Pavel Roskin  <proski@gnu.org>

* configure.ac: Avoid '==' in test command, it's not portable.

16 years ago2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 15 Jun 2009 22:41:42 +0000 (22:41 +0000)] 
2009-06-16  Vladimir Serbinenko  <phcoder@gmail.com>

Probe command

* commands/probe.c: new file
* conf/common.rmk (pkglib_MODULES): add probe.mod
(probe_mod_SOURCES): new variable
(probe_mod_CFLAGS): likewise
(probe_mod_LDFLAGS): likewise
* conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
* conf/i386-ieee1275.rmk: likewise
* conf/i386-pc.rmk: likewise
* conf/powerpc-ieee1275.rmk: likewise
* conf/sparc64-ieee1275.rmk: likewise

16 years agoRemoved bogus >>>> from ChangeLog
phcoder [Mon, 15 Jun 2009 21:09:41 +0000 (21:09 +0000)] 
Removed bogus >>>> from ChangeLog

16 years ago2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 15 Jun 2009 21:06:58 +0000 (21:06 +0000)] 
2009-06-15  Vladimir Serbinenko  <phcoder@gmail.com>

Fix handling of string like \"hello\" and "a
b"

* script/sh/lexer.c
(grub_script_yylex): fix parsing of quoting, escaping and newline

16 years ago2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 15 Jun 2009 21:05:50 +0000 (21:05 +0000)] 
2009-06-15  Vladimir Serbinenko  <phcoder@gmail.com>

Fix handling of string like \"hello\" and "a
b"

* script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
(grub_script_yylex): fix parsing of quoting, escaping and newline

16 years ago2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 15 Jun 2009 21:04:17 +0000 (21:04 +0000)] 
2009-06-15  Vladimir Serbinenko  <phcoder@gmail.com>

Fix handling of string like \"hello\" and "a
b"

* script/sh/lexer.c
(grub_script_yylex): fix parsing of quoting, escaping and newline

16 years ago2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 15 Jun 2009 20:59:55 +0000 (20:59 +0000)] 
2009-06-15  Vladimir Serbinenko  <phcoder@gmail.com>

Fix handling of string like \"hello\" and "a
b"

* script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC

16 years ago2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sat, 13 Jun 2009 21:09:11 +0000 (21:09 +0000)] 
2009-06-13  Vladimir Serbinenko  <phcoder@gmail.com>

* loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
handling

16 years ago2009-06-13 Jun Inoue <jun.lambda@gmail.com>
fzielcke [Sat, 13 Jun 2009 09:23:54 +0000 (09:23 +0000)] 
2009-06-13  Jun Inoue <jun.lambda@gmail.com>

* util/grub-mkconfig.in: Fix parsing of --output option.

16 years ago2009-06-12 Pavel Roskin <proski@gnu.org>
proski [Fri, 12 Jun 2009 20:11:19 +0000 (20:11 +0000)] 
2009-06-12  Pavel Roskin  <proski@gnu.org>

* Makefile.in (pkgdata_SRCDIR): Remove.  genmodsrc.sh and
genmk.rb don't need to be generated or installed.

16 years ago2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Fri, 12 Jun 2009 18:22:38 +0000 (18:22 +0000)] 
2009-06-12  Vladimir Serbinenko  <phcoder@gmail.com>

* commands/i386/pc/drivemap_int13h.S: add more comments

16 years agoFix spacing
proski [Fri, 12 Jun 2009 06:12:38 +0000 (06:12 +0000)] 
Fix spacing

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Fri, 12 Jun 2009 02:42:26 +0000 (02:42 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* Makefile.in (uninstall): Uninstall manuals.

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Fri, 12 Jun 2009 02:10:21 +0000 (02:10 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
PKGLIB to SCRIPTS.  This fixes installation of grub-mkconfig_lib
and update-grub_lib in two places.
* conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 22:14:54 +0000 (22:14 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
a compiler warning.

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 21:48:48 +0000 (21:48 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
`entry_lo' to fix variable shadowing.

16 years ago2009-06-11 Christian Franke <franke@computer.org>
chrfranke [Thu, 11 Jun 2009 21:39:03 +0000 (21:39 +0000)] 
2009-06-11  Christian Franke  <franke@computer.org>

* kern/misc.c (__enable_execute_stack): Add missing return type
to prevent gcc warning.

16 years ago2009-06-11 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Thu, 11 Jun 2009 21:28:11 +0000 (21:28 +0000)] 
2009-06-11  Felix Zielcke  <fzielcke@z-51.de>

* conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 21:00:57 +0000 (21:00 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* Makefile.in: Don't rely on any scripts being executable.
Always use $(SHELL) to run shell scripts.

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 20:45:58 +0000 (20:45 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* configure.ac: Always define ___main if using -nostdlib.  This
fixes tests on Cygwin.

16 years ago2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
phcoder [Thu, 11 Jun 2009 19:32:13 +0000 (19:32 +0000)] 
2009-06-11  Giuseppe Caizzone  <acaizzo@gmail.com>

UDF fix

* fs/udf.c (grub_udf_read_block): handle the fact that ad->length
is in bytes and not in blocks

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 19:11:25 +0000 (19:11 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
warning.

16 years ago2009-06-11 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Thu, 11 Jun 2009 19:00:49 +0000 (19:00 +0000)] 
2009-06-11  Felix Zielcke  <fzielcke@z-51.de>

* util/grub.d/30_os-prober.in: Fix a comment. Source
${libdir}/grub/grub-mkconfig_lib.  Use prepare_grub_to_access_device
to set the root device.  Place drivemap command in the generated
chain entry.

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 17:31:38 +0000 (17:31 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* configure.ac: Remove host_m32.  Issues with 64-bit utilities
have long been resolved.

16 years ago2009-06-11 Colin Watson <cjwatson@ubuntu.com>
proski [Thu, 11 Jun 2009 17:06:35 +0000 (17:06 +0000)] 
2009-06-11  Colin Watson  <cjwatson@ubuntu.com>

* util/grub.d/10_linux.in: Capitalise "Linux".

16 years ago2009-06-11 Colin Watson <cjwatson@ubuntu.com>
proski [Thu, 11 Jun 2009 17:02:26 +0000 (17:02 +0000)] 
2009-06-11  Colin Watson  <cjwatson@ubuntu.com>

* util/grub-pe2elf.c (usage): Fix references to grub-editenv.

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 16:54:52 +0000 (16:54 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* kern/efi/efi.c (grub_exit): Add infinite loop at the end to
fix a gcc warning and ensure that the function won't ever exit.

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 16:49:51 +0000 (16:49 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* kern/i386/ieee1275/init.c: Add missing prototype for
grub_stop_floppy().

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 16:41:24 +0000 (16:41 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* loader/ieee1275/multiboot2.c [__i386__]: Include
grub/cpu/multiboot.h.

16 years agoRemove trailing spaces
proski [Thu, 11 Jun 2009 16:18:47 +0000 (16:18 +0000)] 
Remove trailing spaces

16 years ago2009-06-11 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 16:17:45 +0000 (16:17 +0000)] 
2009-06-11  Pavel Roskin  <proski@gnu.org>

* term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
casts to short - they are not portable and cause warnings.  Fix
use of uninitialized values in input_buf.  Use ARRAY_SIZE.

16 years ago2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Thu, 11 Jun 2009 16:13:39 +0000 (16:13 +0000)] 
2009-06-11  Vladimir Serbinenko  <phcoder@gmail.com>

Drivemap fixes

* commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
new function
(grub_get_root_biosnumber_saved): new variable
(GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
(GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
* commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
%dx after the call if necessary
* conf/common.rmk (pkglib_MODULES): remove boot.mod
(boot_mod_SOURCES): remove
(boot_mod_CFLAGS): remove
(boot_mod_LDFLAGS): remove
* conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
(boot_mod_SOURCES): new variable
(boot_mod_CFLAGS): likewise
(boot_mod_LDFLAGS): likewise
* conf/i386-efi.rmk: likewise
* conf/i386-ieee1275.rmk: likewise
* conf/i386-pc.rmk: likewise
* conf/powerpc-ieee1275.rmk: likewise
* conf/sparc64-ieee1275.rmk: likewise
* conf/x86_64-efi.rmk: likewise
* include/grub/i386/pc/biosnum.h: new file
* lib/i386/pc/biosnum.c: likewise
* loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
* loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
* loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise

16 years ago2009-06-10 Pavel Roskin <proski@gnu.org>
proski [Thu, 11 Jun 2009 01:06:39 +0000 (01:06 +0000)] 
2009-06-10  Pavel Roskin  <proski@gnu.org>

* io/gzio.c (test_header): Don't reuse one buffer for all data.
Use separate variables.  Read only the file size at the end, but
not the checksum that we don't use.

16 years ago2009-06-10 Pavel Roskin <proski@gnu.org>
proski [Wed, 10 Jun 2009 23:47:49 +0000 (23:47 +0000)] 
2009-06-10  Pavel Roskin  <proski@gnu.org>

* kern/file.c (grub_file_read): Use void pointer for the buffer.
Adjust all callers.

16 years ago2009-06-10 Pavel Roskin <proski@gnu.org>
proski [Wed, 10 Jun 2009 23:25:10 +0000 (23:25 +0000)] 
2009-06-10  Pavel Roskin  <proski@gnu.org>

* kern/ieee1275/openfw.c: Remove libc includes.
* kern/ieee1275/cmain.c: Likewise.
* include/grub/ieee1275/ieee1275.h: Likewise.

16 years ago2009-06-10 Pavel Roskin <proski@gnu.org>
proski [Wed, 10 Jun 2009 22:25:47 +0000 (22:25 +0000)] 
2009-06-10  Pavel Roskin  <proski@gnu.org>

* kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
compiler warnings.

16 years agoremove all trailing whitespace
fzielcke [Wed, 10 Jun 2009 21:04:23 +0000 (21:04 +0000)] 
remove all trailing whitespace

16 years ago2009-06-10 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 10 Jun 2009 21:01:29 +0000 (21:01 +0000)] 
2009-06-10  Felix Zielcke  <fzielcke@z-51.de>

* gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
`genparttoollist.sh'.
(DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
Add `*.sh' to the list find searches for and change `mdate.sh'
to `mdate-sh'.

16 years ago2009-06-10 Pavel Roskin <proski@gnu.org>
proski [Wed, 10 Jun 2009 20:11:12 +0000 (20:11 +0000)] 
2009-06-10  Pavel Roskin  <proski@gnu.org>

* include/grub/multiboot2.h: Provide compatibility defines for
multiboot2.h.
* include/multiboot2.h: Include stdint.h only if needed, using
angle brackets.
* loader/i386/pc/multiboot2.c: Include multiboot2.h after
grub/multiboot2.h.
* loader/ieee1275/multiboot2.c: Likewise.
* loader/multiboot2.c: Likewise.
* loader/multiboot_loader.c: Likewise.

16 years ago2009-06-10 Pavel Roskin <proski@gnu.org>
proski [Wed, 10 Jun 2009 18:32:13 +0000 (18:32 +0000)] 
2009-06-10  Pavel Roskin  <proski@gnu.org>

* configure.ac: Use -nostdlib when probing for the target.  It
should not be required to have libc for the target.

16 years ago2009-06-10 Pavel Roskin <proski@gnu.org>
proski [Wed, 10 Jun 2009 18:26:50 +0000 (18:26 +0000)] 
2009-06-10  Pavel Roskin  <proski@gnu.org>

* configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
they fail without libc headers for the target.
* include/grub/powerpc/libgcc.h: Use weak attribute for all
exports.
* include/grub/sparc64/libgcc.h: Likewise.  Don't use
preprocessor conditionals.

16 years ago2009-06-10 Pavel Roskin <proski@gnu.org>
proski [Wed, 10 Jun 2009 17:02:15 +0000 (17:02 +0000)] 
2009-06-10  Pavel Roskin  <proski@gnu.org>

* conf/common.rmk: Compile tar.mod from tar.c, not cpio.c.  The
build system doesn't need to be aware of the tar.c internals.

16 years agoFix typos, spacing
proski [Tue, 9 Jun 2009 19:45:18 +0000 (19:45 +0000)] 
Fix typos, spacing

16 years agoPut back lost ChangeLog entries
phcoder [Tue, 9 Jun 2009 19:14:21 +0000 (19:14 +0000)] 
Put back lost ChangeLog entries

16 years ago2009-06-09 Michel Hermier <michel.hermier@gmail.com>
phcoder [Tue, 9 Jun 2009 19:08:36 +0000 (19:08 +0000)] 
2009-06-09  Michel Hermier  <michel.hermier@gmail.com>

* fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.

16 years ago2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Tue, 9 Jun 2009 14:42:37 +0000 (14:42 +0000)] 
2009-06-09  Robert Millan  <rmh.grub@aybabtu.com>

        * util/deviceiter.c (grub_util_iterate_devices): Increase number of
        disk limit to 26 for IDE, Virtio, Xen and SCSI.

16 years ago2009-06-09 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 9 Jun 2009 13:22:31 +0000 (13:22 +0000)] 
2009-06-09  Felix Zielcke  <fzielcke@z-51.de>

* util/i386/pc/grub-install.in: Change the error message if UUIDs
aren't avaible if ata.mod gets used.

16 years ago2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
phcoder [Mon, 8 Jun 2009 23:56:06 +0000 (23:56 +0000)] 
2009-06-09  Oliver Henshaw <oliver.henshaw@gmail.com>

        * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
initialising controller.
        * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.

16 years ago2009-06-08 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Mon, 8 Jun 2009 20:51:16 +0000 (20:51 +0000)] 
2009-06-08  Felix Zielcke  <fzielcke@z-51.de>

* util/i386/pc/grub-install.in: Add a parameter --disk-module
to choose between ata and biosdisk module on i386-pc.

16 years ago2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
proski [Mon, 8 Jun 2009 20:23:09 +0000 (20:23 +0000)] 
2009-06-08  Oliver Henshaw <oliver.henshaw@gmail.com>

* bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
Subclass and Programming Interface fields in terms of the 3 byte
Class Code register.
* bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.

16 years ago2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
proski [Mon, 8 Jun 2009 20:20:13 +0000 (20:20 +0000)] 
2009-06-08  Oliver Henshaw <oliver.henshaw@gmail.com>

* bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
interface is OHCI.  Add grub_dprintf for symmetry with
bus/usb/uhci.c.
* bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
interface is UHCI.  Add interf variable for programming
interface.  Print interface with class/subclass.

16 years ago2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
proski [Mon, 8 Jun 2009 20:10:27 +0000 (20:10 +0000)] 
2009-06-08  Oliver Henshaw <oliver.henshaw@gmail.com>

* bus/usb/ohci.c: Set interf with correct field.

16 years ago2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
proski [Mon, 8 Jun 2009 20:08:59 +0000 (20:08 +0000)] 
2009-06-08  Oliver Henshaw <oliver.henshaw@gmail.com>

* bus/usb/uhci.c: Remove unneeded doubled lines.
* bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
Remove whitespace inside comment.

16 years ago2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 8 Jun 2009 16:12:58 +0000 (16:12 +0000)] 
2009-06-08  Robert Millan  <rmh.grub@aybabtu.com>

        * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
        as fallback an equivalent option without depth.

16 years ago2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 8 Jun 2009 13:29:05 +0000 (13:29 +0000)] 
2009-06-08  Vladimir Serbinenko  <phcoder@gmail.com>

Not fail if unable to retrieve C/H/S on LBA disks

* disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
if unable to retrieve C/H/S on LBA disks

16 years ago2009-06-08 Pavel Roskin <proski@gnu.org>
proski [Mon, 8 Jun 2009 13:25:54 +0000 (13:25 +0000)] 
2009-06-08  Pavel Roskin  <proski@gnu.org>

* fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
about aliasing.

16 years ago2009-06-08 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Mon, 8 Jun 2009 13:11:58 +0000 (13:11 +0000)] 
2009-06-08  Felix Zielcke  <fzielcke@z-51.de>

* Makefile.in (uninstall): Remove all $lib_DATA files.

16 years ago2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 8 Jun 2009 13:04:02 +0000 (13:04 +0000)] 
2009-06-08  Vladimir Serbinenko  <phcoder@gmail.com>

Bugfix: install on partitionless device

* util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
is a whole disk

16 years agoremove 2 echo's accidentally introduced in previous commit
fzielcke [Mon, 8 Jun 2009 12:45:04 +0000 (12:45 +0000)] 
remove 2 echo's accidentally introduced in previous commit

16 years ago2009-06-08 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Mon, 8 Jun 2009 12:16:58 +0000 (12:16 +0000)] 
2009-06-08  Felix Zielcke  <fzielcke@z-51.de>

* Makefile.in (uninstall): Remove all $include_DATA files.