]> git.proxmox.com Git - grub2.git/log
grub2.git
17 years ago2007-05-07 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 7 May 2007 09:25:23 +0000 (09:25 +0000)]
2007-05-07  Robert Millan  <rmh@aybabtu.com>

* Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
source directory differs from build directory.

17 years ago2007-05-05 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 5 May 2007 11:55:20 +0000 (11:55 +0000)]
2007-05-05  Robert Millan  <rmh@aybabtu.com>

* util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
initialisation.

17 years ago2007-05-05 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 5 May 2007 10:57:51 +0000 (10:57 +0000)]
2007-05-05  Robert Millan  <rmh@aybabtu.com>

* util/update-grub.in: Create ${grub_prefix} if it doesn't exist.

17 years ago2007-05-05 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 5 May 2007 10:34:05 +0000 (10:34 +0000)]
2007-05-05  Robert Millan  <rmh@aybabtu.com>

* util/grub.d/10_linux.in: Allow the administrator to insert Linux
command-line arguments via ${GRUB_CMDLINE_LINUX}.

17 years ago2007-05-05 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 4 May 2007 23:00:56 +0000 (23:00 +0000)]
2007-05-05  Robert Millan  <rmh@aybabtu.com>

* conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
(grub_probe_SOURCES): Likewise.
* util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
GPT and initialize dos_part and bsd_part accordingly.
* util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
install_bsd_part.
(main): Activate gpt module for use during partition identification,
and deactivate it afterwards.
* util/i386/pc/grub-install.in: Add gpt module to core.img.
* util/i386/pc/grub-probe.c (main): Activate gpt module for use during
partition identification, and deactivate it afterwards.

17 years ago2007-05-05 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 4 May 2007 22:28:31 +0000 (22:28 +0000)]
2007-05-05  Robert Millan  <rmh@aybabtu.com>

* term/i386/pc/console.c (grub_console_fini): Call
grub_term_set_current() before grub_term_unregister().

17 years ago2007-05-04 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 4 May 2007 07:11:44 +0000 (07:11 +0000)]
2007-05-04  Robert Millan  <rmh@aybabtu.com>

* DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
* Makefile.in: Build update-grub_SCRIPTS.  Install update-grub_SCRIPTS
and update-grub_DATA.
* conf/common.rmk: Build and install update-grub components.
* conf/common.mk: Regenerate.
* util/update-grub.in: New.  Core of update-grub.
* util/grub.d/00_header.in: New.  Generates grub.cfg header.
* util/grub.d/10_hurd.in: New.  Generates boot entries for the Hurd.
* util/grub.d/10_linux.in: New.  Generates boot entries for Linux.
* util/grub.d/README: New.  Document grub.d directory layout.

17 years ago2007-05-01 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 30 Apr 2007 22:22:24 +0000 (22:22 +0000)]
2007-05-01  Robert Millan  <rmh@aybabtu.com>

* util/grub-emu.c: Move initialization functions
grub_util_biosdisk_init() and grub_init_all() before
grub_util_biosdisk_get_grub_dev(), which relies on them.

17 years ago2007-04-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 19 Apr 2007 12:24:47 +0000 (12:24 +0000)]
2007-04-19  Robert Millan  <rmh@aybabtu.com>

* util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
it is used later.

17 years agoAdd missing parenthesis for conditional statement stanza.
jerone [Wed, 18 Apr 2007 22:59:52 +0000 (22:59 +0000)]
Add missing parenthesis for conditional statement stanza.

17 years agoAdd newline in change log. Where was missed before checked in.
jerone [Tue, 10 Apr 2007 22:03:15 +0000 (22:03 +0000)]
Add newline in change log. Where was missed before checked in.

17 years agoFixes the situation with i386-pc where grub-probe & grub-setup are searching
jerone [Tue, 10 Apr 2007 22:00:24 +0000 (22:00 +0000)]
Fixes the situation with i386-pc where grub-probe & grub-setup are searching
for the root fs for grub files  and they happen to be on the same file system
as the root ("/") filesystem.

17 years agoAdd single extra space between name and email address in ChangeLog.
jerone [Tue, 10 Apr 2007 21:49:47 +0000 (21:49 +0000)]
Add single extra space between name and email address in ChangeLog.

17 years agoAdd the ability to transform Grub program names. For example, a user can easily launch
jerone [Tue, 10 Apr 2007 21:38:26 +0000 (21:38 +0000)]
Add the ability to transform Grub program names. For example, a user can easily launch

./configure --program-transform-name="s/grub/grub2/"

And the installed files (in this case for i386-pc) will be:

/usr/lib/grub2/i386-pc/*
/usr/local/sbin/grub2-emu
/usr/local/sbin/grub2-install
...etc

Also grub2-install place boot files in "/boot/grub2"

This allows easy integration into distributions as it allows grub2 to
sit side by side with a grub legacy install without.

17 years ago2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 19 Mar 2007 00:04:29 +0000 (00:04 +0000)]
2007-03-19  Yoshinori K. Okuji  <okuji@enbug.org>

    * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
    (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
    (EXT2_REVISION): Likewise.
    (EXT2_INODE_SIZE): Likewise.
    (struct grub_ext2_block_group): Added a missing member
    "used_dirs".
    (grub_ext2_read_inode): Divide by the inode size in a superblock
    instead of 128 to obtain INODES_PER_BLOCK.
    Use the macro EXT2_INODE_SIZE instead of directly using
    SBLOCK->INODE_SIZE.

17 years ago2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 18 Mar 2007 01:18:39 +0000 (01:18 +0000)]
2007-03-18  Yoshinori K. Okuji  <okuji@enbug.org>

    * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
    superblock instead of the structure size to compute an
    offset. This fixes the problem that GRUB could not read a
    filesystem when inode size is different from 128-byte.

17 years ago2007-03-05 Marco Gerards <marco@gnu.org>
marco_g [Mon, 5 Mar 2007 20:32:43 +0000 (20:32 +0000)]
2007-03-05  Marco Gerards  <marco@gnu.org>

* normal/main.c (read_config_file): When "menu" is not set, create
an initial context.

17 years ago*** empty log message ***
hollisb [Wed, 21 Feb 2007 23:27:36 +0000 (23:27 +0000)]
*** empty log message ***

17 years ago2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 21 Feb 2007 23:25:09 +0000 (23:25 +0000)]
2007-02-21  Hollis Blanchard  <hollis@penguinppc.org>

* kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
(HEAP_LIMIT): New macro.
(grub_claim_heap): Claim memory up to `heaplimit'.

17 years ago2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 21 Feb 2007 23:22:20 +0000 (23:22 +0000)]
2007-02-21  Hollis Blanchard  <hollis@penguinppc.org>

* conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
* kern/powerpc/ieee1275/init.c (_end): Add declaration.
(_start): Likewise.
(grub_arch_modules_addr): Return address after `_end'.
* util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
(load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
(add_segments): Calculate `_end' from phdr size and location.
(ALIGN_UP): Moved to ...
* include/grub/misc.h: here.
* include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
New macro.
(GRUB_IEEE1275_MODULE_BASE): Removed.

17 years ago2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 20 Feb 2007 22:48:27 +0000 (22:48 +0000)]
2007-02-20  Hollis Blanchard  <hollis@penguinppc.org>

* kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
loop boundary.

17 years ago2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 20 Feb 2007 22:46:12 +0000 (22:46 +0000)]
2007-02-20  Hollis Blanchard  <hollis@penguinppc.org>

* include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
All users updated.
(grub_elf64_load_hook_t): Likewise.
* kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
debug output.

17 years ago2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 20 Feb 2007 22:39:57 +0000 (22:39 +0000)]
2007-02-20  Hollis Blanchard  <hollis@penguinppc.org>

* kern/mm.c: Update copyright.
(grub_mm_debug): Correct syntax error.
(grub_mm_dump_free): New function.
(grub_debug_free): Call `grub_free'.
* include/grub/mm.h: Update copyright.
(grub_mm_dump_free): Add declaration.

17 years ago2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 13 Feb 2007 03:49:43 +0000 (03:49 +0000)]
2007-02-12  Hollis Blanchard  <hollis@penguinppc.org>

* include/grub/ieee1275/ieee1275.h: Update copyright.
* kern/powerpc/ieee1275/init.c: Likewise.
* kern/powerpc/ieee1275/openfw.c: Likewise.

* loader/powerpc/ieee1275/linux.c: Likewise.
* include/grub/elfload.h: Likewise.
* kern/elf.c: Likewise.
(grub_elf32_load): Pass `base' and `size' parameters.  Update all
callers.
(grub_elf64_load): Likewise.
(grub_elf32_load_segment): Move to a nested function.
(grub_elf64_load_segment): Likewise.

17 years ago2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 13 Feb 2007 03:20:16 +0000 (03:20 +0000)]
2007-02-12  Hollis Blanchard  <hollis@penguinppc.org>

* include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
prototype.
* kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
(grub_heap_len): Likewise.
(HEAP_SIZE): New macro.
(grub_claim_heap): New function.
(grub_machine_init): Don't claim heap directly.  Call
`grub_claim_heap'.
* kern/powerpc/ieee1275/openfw.c: Include alloca.h.
(grub_available_iterate): New function.

17 years agoRegenerate files.
tschwinge [Sat, 3 Feb 2007 11:43:25 +0000 (11:43 +0000)]
Regenerate files.

17 years ago2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
tschwinge [Sat, 3 Feb 2007 11:36:13 +0000 (11:36 +0000)]
2007-02-03  Thomas Schwinge  <tschwinge@gnu.org>

* aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
* configure.ac: Use it for testing the HOST and TARGET compilers.

17 years agoRegenerate files.
tschwinge [Wed, 13 Dec 2006 22:34:04 +0000 (22:34 +0000)]
Regenerate files.

17 years ago2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
tschwinge [Wed, 13 Dec 2006 22:30:19 +0000 (22:30 +0000)]
2006-12-13  Thomas Schwinge  <tschwinge@gnu.org>

* Makefile.in (enable_grub_emu): New variable.
* configure.ac (--enable-grub-emu): New option.
Do the checks for (n)curses only if `--enable-grub-emu' is requested.
* conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
* conf/i386-pc.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.
* conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.

17 years ago2006-12-12 Marco Gerards <marco@gnu.org>
marco_g [Tue, 12 Dec 2006 00:13:55 +0000 (00:13 +0000)]
2006-12-12  Marco Gerards  <marco@gnu.org>

* include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.

* kern/env.c (grub_env_unset): Don't free the member `value' when
the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
pointer.

* normal/main.c (current_menu): Removed.
(free_menu): Unset the `menu' environment variable.
(grub_normal_menu_addentry): Make use of the environment variable
`menu', instead of using the global `current_menu'.  Allocate
memory for the sourcecode of this entry.
(read_config_file): New argument `nested', changed all callers.
Only in the case of a new context, initialize a new menu.  Set the
`menu' environment variable.
(grub_normal_execute): Don't set and unset the environment
variable `menu' here anymore.  Only free the menu when leaving the
context.

* util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
leak.

17 years ago2006-12-11 Marco Gerards <marco@gnu.org>
marco_g [Mon, 11 Dec 2006 21:00:06 +0000 (21:00 +0000)]
2006-12-11  Marco Gerards  <marco@gnu.org>

* normal/menu_entry.c (run): Fix off by one bug so the last line
is executed.  Move the loader check to outside the loop.

17 years ago2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 8 Dec 2006 21:16:47 +0000 (21:16 +0000)]
2006-12-08  Hollis Blanchard  <hollis@penguinppc.org>

* kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.

17 years ago2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 25 Nov 2006 03:21:29 +0000 (03:21 +0000)]
2006-11-25  Yoshinori K. Okuji  <okuji@enbug.org>

        * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
        the number of sectors.  Reported by Andrey Shuvikov
        <mr_hyro@yahoo.com>.

17 years ago2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Fri, 10 Nov 2006 23:31:55 +0000 (23:31 +0000)]
2006-11-11  Jeroen Dekkers  <jeroen@dekkers.cx>

* kern/disk.c (grub_disk_read): When there is a read error, always
try to read only the necessary data.

* conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
disk/raid.c.
* include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
prototype.
[GRUB_UTIL] (grub_raid_fini): Likewise.
[GRUB_UTIL] (grub_lvm_init): Likewise.
[GRUB_UTIL] (grub_lvm_fini): Likewise.
* util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
(main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
and grub_raid_fini().

17 years ago2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Thu, 9 Nov 2006 19:39:51 +0000 (19:39 +0000)]
2006-11-09  Jeroen Dekkers  <jeroen@dekkers.cx>

* include/grub/types.h (__unused): Rename to UNUSED.
* kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
(grub_elf64_size): Likewise.

17 years agoregenerate i386-pc.mk and i386-efi.mk to get rid of bogus loader/multiboot_normal...
jeroen [Wed, 8 Nov 2006 23:17:22 +0000 (23:17 +0000)]
regenerate i386-pc.mk and i386-efi.mk to get rid of bogus loader/multiboot_normal.c in dependencies

17 years ago2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 3 Nov 2006 23:05:14 +0000 (23:05 +0000)]
2006-11-03  Hollis Blanchard  <hollis@penguinppc.org>

* kern/elf.c (grub_elf_file): Call grub_file_seek. Call
grub_error_push and grub_error_pop in the error-handling path.
(grub_elf32_load_segment): Only call grub_file_read with non-zero
length.

17 years ago2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 3 Nov 2006 21:55:16 +0000 (21:55 +0000)]
2006-11-03  Hollis Blanchard  <hollis@penguinppc.org>

* include/grub/elfload.h: New file.
* kern/elf.c: Likewise.

17 years ago2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 3 Nov 2006 20:28:04 +0000 (20:28 +0000)]
2006-11-03  Hollis Blanchard  <hollis@penguinppc.org>

* conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
* conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
(kernel_elf_SOURCES): Likewise.
* conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
* conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
* conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
* conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
* conf/common.rmk (pkgdata_MODULES): Add elf.mod.
(elf_mod_SOURCES): New variable.
(elf_mod_CFLAGS): Likewise.
(elf_mod_LDFLAGS): Likewise.
* include/grub/types.h (__unused): New macro.
* include/grub/elfload.h: New file.
* kern/elf.c: Likewise.
* loader/powerpc/ieee1275/linux.c: Include elfload.h.
(ELF32_LOADMASK): New macro.
(ELF64_LOADMASK): Likewise.
(vmlinux): Removed.
(grub_linux_load32): New function.
(grub_linux_load64): Likewise.
(grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
Use grub_elf_t instead of grub_file_t.

17 years ago2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Thu, 2 Nov 2006 16:30:17 +0000 (16:30 +0000)]
2006-11-02  Hollis Blanchard  <hollis@penguinppc.org>

* kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
`catch_result' to struct set_color_args.

17 years ago2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 28 Oct 2006 14:00:05 +0000 (14:00 +0000)]
2006-10-28  Yoshinori K. Okuji  <okuji@enbug.org>

        * normal/menu.c: Include grub/script.h.
        * normal/menu_entry.c: Likewise.
        * include/grub/normal.h: Do not include grub/script.h.

17 years ago2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 27 Oct 2006 18:24:14 +0000 (18:24 +0000)]
2006-10-27  Hollis Blanchard  <hollis@penguinppc.org>

* kern/disk.c (grub_disk_read): Correct debug printf formatting.

17 years ago2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 27 Oct 2006 18:14:00 +0000 (18:14 +0000)]
2006-10-27  Hollis Blanchard  <hollis@penguinppc.org>

* kern/disk.c (grub_disk_open): Print debug messages when opening a
disk.
(grub_disk_close): Print debug messages when closing a disk.
(grub_disk_read): Print debug messages when disk read fails.
* kern/fs.c (grub_fs_probe): Print debug messages when detecting
filesystem type.
* kern/partition.c: Include misc.h.
(grub_partition_iterate): Print debug messages when detecting
partition type.

17 years ago2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 27 Oct 2006 17:57:05 +0000 (17:57 +0000)]
2006-10-27  Hollis Blanchard  <hollis@penguinppc.org>

* disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
is negative.
* kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.

17 years ago2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Thu, 26 Oct 2006 23:11:22 +0000 (23:11 +0000)]
2006-10-26  Hollis Blanchard  <hollis@penguinppc.org>

* kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.

17 years ago2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Wed, 25 Oct 2006 20:41:43 +0000 (20:41 +0000)]
2006-10-25  Jeroen Dekkers  <jeroen@dekkers.cx>

* disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
instead of sizeof(lv). Patch by Michael Guntsche.

17 years agoThe "don't use variable names that differ only one character" commit.
jeroen [Wed, 18 Oct 2006 21:42:42 +0000 (21:42 +0000)]
The "don't use variable names that differ only one character" commit.

2006-10-18  Jeroen Dekkers  <jeroen@dekkers.cx>

* disk/lvm.c: Rename VGS to VG_LIST.
(grub_lvm_iterate): Change VGS->LV to VG-LV.
(grub_lvm_open): Likewise.
Thanks to Michael Guntsche for finding this bug.

17 years ago2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 15 Oct 2006 13:53:59 +0000 (13:53 +0000)]
2006-10-15  Yoshinori K. Okuji  <okuji@enbug.org>

        * configure.ac (AC_INIT): Bumped to 1.95.

17 years ago2006-10-14 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 14 Oct 2006 21:51:37 +0000 (21:51 +0000)]
2006-10-14  Robert Millan  <rmh@aybabtu.com>

* util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
with "/dev/.static/dev/md".

17 years agoUpdated.
okuji [Sat, 14 Oct 2006 21:17:33 +0000 (21:17 +0000)]
Updated.

17 years ago2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 14 Oct 2006 21:07:48 +0000 (21:07 +0000)]
2006-10-14  Yoshinori K. Okuji  <okuji@enbug.org>

        * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
        DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
        DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
        DRIVE_NAME are always freed.

        * util/i386/pc/biosdisk.c (make_device_name): Add one into
        DOS_PART, as a DOS partition is counted from one instead of zero
        now. Reported by Robert Millan.

17 years agoArgh, really rename grub-probefs.c as the ChangeLog says.
robertmh [Sat, 14 Oct 2006 20:01:48 +0000 (20:01 +0000)]
Argh, really rename grub-probefs.c as the ChangeLog says.

17 years agoOops. Regenerate conf/i386-efi.mk and conf/i386-pc.mk (Using: ruby genmk.rb < conf...
robertmh [Sat, 14 Oct 2006 19:50:53 +0000 (19:50 +0000)]
Oops.  Regenerate conf/i386-efi.mk and conf/i386-pc.mk (Using: ruby genmk.rb < conf/foo.rmk > conf/foo.mk)

17 years ago2006-10-14 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 14 Oct 2006 18:59:34 +0000 (18:59 +0000)]
2006-10-14  Robert Millan  <rmh@aybabtu.com>

* util/i386/pc/getroot.c (grub_guess_root_device): Stop using
grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
* util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
string returned by grub_guess_root_device.
* util/i386/pc/grub-setup.c: Likewise.
* util/i386/pc/grub-probefs.c: Likewise.

* util/i386/pc/grub-probefs.c: Rename to ...
* util/i386/pc/grub-probe.c: ... this.
* DISTLIST: Remove grub-probefs, add grub-probe.
* conf/i386-efi.rmk: Likewise.
* conf/i386-pc.rmk: Likewise.
* util/i386/pc/grub-install.in: Likewise.

* util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
choose which information we want to print.

17 years ago2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 14 Oct 2006 15:24:53 +0000 (15:24 +0000)]
2006-10-14  Yoshinori K. Okuji  <okuji@enbug.org>

        * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
        include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
        include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
        include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
        video/readers/tga.c and video/i386/pc/vbeutil.c.

2006-10-14  Jeroen Dekkers  <jeroen@dekkers.cx>

        Added support for RAID and LVM.

        * disk/lvm.c: New file.
        * disk/raid.c: Likewise.
        * include/grub/lvm.h: Likewise.
        * include/grub/raid.h: Likewise.
        * include/grub/util/lvm.h: Likewise.
        * include/grub/util/raid.h: Likewise.
        * util/lvm.c: Likewise.
        * util/raid.c: Likewise.

        * include/grub/disk.h (grub_disk_dev_id): Add
        GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
        (grub_disk_get_size): New prototype.
        * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
        returns a partition.
        (grub_disk_get_size): New function.

        * kern/i386/pc/init.c (make_install_device): Copy the prefix
        verbatim if grub_install_dos_part is -2.

        * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
        and LVM devices.

        * util/i386/pc/grub-setup.c (setup): New argument
        MUST_EMBED. Force embedding of GRUB when the argument is
        true. Close FILE before returning.
        (main): Add support for RAID and LVM.

        * conf/common.rmk: Add RAID and LVM modules.
        * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
        util/lvm.c.
        (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.

        * kern/misc.c (grub_strstr): New function.
        * include/grub/misc.h (grub_strstr): New prototype.

18 years ago2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
jrydberg [Tue, 10 Oct 2006 17:39:10 +0000 (17:39 +0000)]
2006-10-10  Tristan Gingold  <tristan.gingold@bull.net>

        * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.

18 years agoAdd Tristan Gingold
jeroen [Thu, 5 Oct 2006 19:04:09 +0000 (19:04 +0000)]
Add Tristan Gingold

18 years ago2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
jrydberg [Thu, 5 Oct 2006 12:19:56 +0000 (12:19 +0000)]
2006-10-05  Tristan Gingold  <tristan.gingold@bull.net>

        * kern/misc.c (grub_strtoull): Guess the base only if not
        specified.

18 years ago2005-10-01 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Sun, 1 Oct 2006 08:34:36 +0000 (08:34 +0000)]
2005-10-01  Hollis Blanchard  <hollis@penguinppc.org>

* kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
PowerMac support.

18 years ago2005-10-01 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Sun, 1 Oct 2006 08:30:09 +0000 (08:30 +0000)]
2005-10-01  Hollis Blanchard  <hollis@penguinppc.org>

* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.

* include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
Remove `flags' argument.  All callers changed.
* kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
(IEEE1275_IHANDLE_INVALID): New variable.
(IEEE1275_CELL_INVALID): New variable.
(grub_ieee1275_finddevice, grub_ieee1275_get_property,
grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
codes from Open Firmware.  All callers updated.
(grub_ieee1275_next_property): Directly return Open Firmware return
code.
* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
Standardize error checking from `grub_ieee1275_get_property'.
* kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
`devalias' to `aliases'.  Correct comments.  Consolidate error paths.

18 years ago2005-10-01 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Sun, 1 Oct 2006 06:45:53 +0000 (06:45 +0000)]
2005-10-01  Hollis Blanchard  <hollis@penguinppc.org>

* kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
`instance_to_package_args' to `instance_to_path_args'.

* kern/powerpc/ieee1275/init.c (grub_machine_init): Use
`grub_ieee1275_chosen'.

* term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
`grub_ieee1275_interpret'.

18 years ago2005-09-25 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 26 Sep 2006 04:24:38 +0000 (04:24 +0000)]
2005-09-25  Hollis Blanchard  <hollis@penguinppc.org>

* util/powerpc/ieee1275/grub-mkimage.c: Include config.h.

18 years ago2005-09-25 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 26 Sep 2006 03:49:41 +0000 (03:49 +0000)]
2005-09-25  Hollis Blanchard  <hollis@penguinppc.org>

* include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
(__cmpdi): Likewise.

* kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
`flags' to `grub_ieee1275_next_property'.  Change `pathlen' to type
`grub_ssize_t'.

* kern/powerpc/ieee1275/cmain.c: include grub/misc.h.

* loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
to type `grub_ssize_t'.
(grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.

18 years ago2006-09-22 Marco Gerards <marco@gnu.org>
marco_g [Fri, 22 Sep 2006 21:32:48 +0000 (21:32 +0000)]
2006-09-22  Marco Gerards  <marco@gnu.org>

* normal/script.c (grub_script_create_cmdmenu): Skip leading
newlines.

18 years ago2006-09-22 Marco Gerards <marco@gnu.org>
marco_g [Fri, 22 Sep 2006 21:09:14 +0000 (21:09 +0000)]
2006-09-22  Marco Gerards  <marco@gnu.org>

* commands/echo.c: New file.

* conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.

* conf/common.rmk (echo_mod_SOURCES): New variable.
(echo_mod_CFLAGS): Likewise.
(echo_mod_LDFLAGS): Likewise.

18 years ago2006-09-22 Marco Gerards <marco@gnu.org>
marco_g [Fri, 22 Sep 2006 20:23:00 +0000 (20:23 +0000)]
2006-09-22  Marco Gerards  <marco@gnu.org>

* normal/main.c (get_line): Malloc memory instead of using
preallocated memory.  Removed the arguments `cmdline' and
`max_len'.  Updated all callers.

18 years ago2006-09-22 Marco Gerards <marco@gnu.org>
marco_g [Fri, 22 Sep 2006 19:36:32 +0000 (19:36 +0000)]
2006-09-22  Marco Gerards  <marco@gnu.org>

* conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
(normal_mod_DEPENDENCIES): Likewise.

* conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
(normal_mod_DEPENDENCIES): Likewise.

* conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.

18 years ago2006-09-22 Johan Rydberg <jrydberg@gnu.org>
jrydberg [Fri, 22 Sep 2006 00:27:38 +0000 (00:27 +0000)]
2006-09-22  Johan Rydberg  <jrydberg@gnu.org>

        * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
        programs.
        * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
        (normal_mod_DEPENDENCIES): Likewise.
        * conf/i386-pc.mk: Regenerate.
        * conf/i386-efi.mk: Likewise
        * conf/common.mk: Likewise.
        * conf/powerpc-ieee1275.mk: Likewise.
        * conf/sparc64-ieee1275.mk: Likewise.

18 years ago2006-09-22 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 21 Sep 2006 22:24:05 +0000 (22:24 +0000)]
2006-09-22  Robert Millan  <rmh@aybabtu.com>

Sync with i386 version.
* conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
* conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.

18 years ago2006-09-21 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 21 Sep 2006 17:39:14 +0000 (17:39 +0000)]
2006-09-21  Robert Millan  <rmh@aybabtu.com>

Import from GRUB Legacy (lib/device.c):
* util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
(init_device_map) [__linux__]: Add support for I2O devices.

18 years agoMinor fix in my changelog entry.
robertmh [Thu, 21 Sep 2006 17:08:19 +0000 (17:08 +0000)]
Minor fix in my changelog entry.

18 years ago2006-09-14 Marco Gerards <marco@gnu.org>
marco_g [Thu, 14 Sep 2006 19:04:18 +0000 (19:04 +0000)]
2006-09-14  Marco Gerards  <marco@gnu.org>

* conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
`-melf_i386'.

18 years agoOops. Fix wrong ChangeLog date.
robertmh [Thu, 14 Sep 2006 18:53:24 +0000 (18:53 +0000)]
Oops.  Fix wrong ChangeLog date.

18 years ago2006-08-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 14 Sep 2006 18:52:50 +0000 (18:52 +0000)]
2006-08-19  Robert Millan  <rmh@aybabtu.com>

* util/i386/pc/grub-install.in: Skip menu.lst when removing
/boot/grub/*.lst.
* util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
* util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
before adding it to device.map.

18 years ago2006-08-15 Johan Rydberg <jrydberg@gnu.org>
jrydberg [Tue, 15 Aug 2006 12:29:08 +0000 (12:29 +0000)]
2006-08-15  Johan Rydberg  <jrydberg@gnu.org>

        * genmk.rb: Let GCC generate dependenceies the first time it
        compiles a file; using the -MD option.
        * conf/common.mk: Regenerate.
        * conf/i386-pc.mk: Likewise.
        * conf/i386-efi.mk: Likewise.
        * conf/powerpc-ieee1275.mk: Likewise.
        * conf/sparc64-ieee1275.mk: Likewise.

18 years ago2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Fri, 4 Aug 2006 19:23:28 +0000 (19:23 +0000)]
2006-08-04  Yoshinori K. Okuji  <okuji@enbug.org>

        Move the prototypes of grub_setjmp and grub_longjmp to
        cpu/setjmp.h, so that each architecture may specify different
        attributes.

        * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
        (grub_longjmp): Likewise.
        * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
        (grub_longjmp): Likewise.
        * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
        (grub_longjmp): Likewise.

        * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
        [!GRUB_UTIL] (grub_longjmp): Removed.

18 years ago2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
subdino [Tue, 1 Aug 2006 21:45:34 +0000 (21:45 +0000)]
2006-08-01  Pelletier Vincent  <subdino2004@yahoo.fr>

        * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
        "color!" method does not return any value.

18 years ago2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Mon, 31 Jul 2006 14:21:36 +0000 (14:21 +0000)]
2006-07-29  Vesa Jaaskelainen  <chaac@nic.fi>

* include/grub/bitmap.h: New file.

* include/grub/i386/pc/vbeutil.h: Likewise.

* video/bitmap.c: Likewise.

* video/readers/tga.c: Likewise.

* video/i386/pc/vbeutil.c: Likewise.

* commands/videotest.c: Code cleanup and updated to reflect to new
video API.

* term/gfxterm.c: Likewise.

* video/video.c: Likewise.

* conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
(vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
(bitmap_mod_SOURCES): New entry.
(bitmap_mod_CFLAGS): Likewise.
(bitmap_mod_LDFLAGS): Likewise.
(tga_mod_SOURCES): Likewise.
(tga_mod_CFLAGS): Likewise.
(tga_mod_LDFLAGS): Likewise.

* include/grub/video.h (grub_video_blit_operators): New enum type.
(grub_video_render_target): Changed as forward declaration and moved
actual definition to be video driver specific.
(grub_video_adapter.blit_bitmap): Added blitting operator.
(grub_video_adapter.blit_render_target): Likewise.
(grub_video_blit_bitmap): Likewise.
(grub_video_blit_render_target): Likewise.

* include/grub/i386/pc/vbe.h (grub_video_render_target): Added
driver specific render target definition.
(grub_video_vbe_map_rgba): Added driver internal helper.
(grub_video_vbe_unmap_color): Updated to use
grub_video_i386_vbeblit_info.
(grub_video_vbe_get_video_ptr): Likewise.

* include/grub/i386/pc/vbeblit.h
(grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
grub_video_i386_vbeblit_info.
(grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
(grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
(grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
(grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
(grub_video_i386_vbeblit_index_R8G8B8): Likewise.
(grub_video_i386_vbeblit_index_index): Likewise.
(grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
(grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
(grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
(grub_video_i386_vbeblit_blend): Added generic blitter for blend
operator.
(grub_video_i386_vbeblit_replace): Added generic blitter for replace
operator.

* video/i386/pc/vbeblit.c: Updated to reflect changes on
include/grub/i386/pc/vbeblit.h.

* include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
Updated to use grub_video_i386_vbeblit_info.
(grub_video_i386_vbefill_R8G8B8): Likewise.
(grub_video_i386_vbefill_index): Likewise.
(grub_video_i386_vbefill): Added generic filler.

* video/i386/pc/vbefill.c: Updated to reflect changes on
include/grub/i386/pc/vbefill.h.

* video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
grub_video_i386_vbeblit_info.
(grub_video_vbe_unmap_color): Likewise.
(grub_video_vbe_blit_glyph): Likewise.
(grub_video_vbe_scroll): Likewise.
(grub_video_vbe_draw_pixel): Removed function.
(grub_video_vbe_get_pixel): Likewise.
(grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
updated code to use it.
(common_blitter): Added common blitter for render target and bitmap.
(grub_video_vbe_blit_bitmap): Updated to use common_blitter.
(grub_video_vbe_blit_render_target): Likewise.

18 years ago2006-07-30 Johan Rydberg <jrydberg@gnu.org>
jrydberg [Sun, 30 Jul 2006 12:20:48 +0000 (12:20 +0000)]
2006-07-30  Johan Rydberg  <jrydberg@gnu.org>

        * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
        is in text mode if there is no console control protocol instance
        available.

18 years ago2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Sat, 29 Jul 2006 11:22:52 +0000 (11:22 +0000)]
2006-07-29  Vesa Jaaskelainen  <chaac@nic.fi>

        * include/grub/video.h: Code cleanup.

        * include/grub/i386/pc/vbe.h: Likewise.

        * video/i386/pc/vbe.c: Likewise.

        * video/i386/pc/vbeblit.c: Likewise.

        * video/i386/pc/vbefill.c: Likewise.

        * video/video.c: Likewise.  Also added more comments.

18 years ago2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Sat, 29 Jul 2006 10:11:01 +0000 (10:11 +0000)]
2006-07-29  Vesa Jaaskelainen  <chaac@nic.fi>

        * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
        (struct grub_biosdisk_dap): Likewise.

        * include/grub/i386/pc/biosdisk.h: ... to here.  Also corrected
        linkage settings for all functions.

18 years ago2006-07-12 Marco Gerards <marco@gnu.org>
marco_g [Wed, 12 Jul 2006 20:42:52 +0000 (20:42 +0000)]
2006-07-12  Marco Gerards  <marco@gnu.org>

* configure.ac (--enable-mm-debug): Fix typo.

* genkernsyms.sh.in: Use proper quoting for `CC'.

18 years agoRegenerate conf/i386-pc.mk.
jeroen [Tue, 4 Jul 2006 20:00:28 +0000 (20:00 +0000)]
Regenerate conf/i386-pc.mk.

18 years ago2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Sun, 2 Jul 2006 15:30:43 +0000 (15:30 +0000)]
2006-07-02  Jeroen Dekkers  <jeroen@dekkers.cx>

* conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
(normal_mod_ASFLAGS): Remove "-m32".

18 years agoChange the address of Johan to gnu.org.
okuji [Sat, 1 Jul 2006 10:26:37 +0000 (10:26 +0000)]
Change the address of Johan to gnu.org.

18 years ago2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Tue, 13 Jun 2006 22:50:01 +0000 (22:50 +0000)]
2006-06-14  Yoshinori K. Okuji  <okuji@enbug.org>

        * util/misc.c: Include config.h.
        [!HAVE_MEMALIGN]: Do not include malloc.h.
        (grub_memalign): Use posix_memalign, if present. Then, use
        memalign, if present. Otherwise, emit an error.

        * util/grub-emu.c: Do not include malloc.h.

        * include/grub/util/misc.h: Include unistd.h. This is required for
        FreeBSD, because off_t is defined in unistd.h. Reported by Harley
        D. Eades III <hde@foobar-qux.org>.

        * configure.ac (AC_GNU_SOURCE): Added.
        (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
        type.

18 years ago2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Thu, 8 Jun 2006 22:30:25 +0000 (22:30 +0000)]
2006-06-09  Yoshinori K. Okuji  <okuji@enbug.org>

        * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
        ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.

18 years ago2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Thu, 8 Jun 2006 12:38:44 +0000 (12:38 +0000)]
2006-06-07  Jeroen Dekkers  <jeroen@dekkers.cx>

* include/grub/types.h (grub_host_addr_t): Rename to
grub_target_addr_t.
(grub_host_off_t): Rename to grub_target_off_t.
(grub_host_size_t): Rename to grub_target_size_t.
(grub_host_ssize_t): Rename to grub_target_ssize_t.
Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.

* include/grub/kernel.h (struct grub_module_header): Change type
of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
(grub_module_info): Likewise.

18 years ago2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 5 Jun 2006 19:59:33 +0000 (19:59 +0000)]
2006-06-05  Yoshinori K. Okuji  <okuji@enbug.org>

        * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
        of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
        Velazquez <jesus.velazquez@gmail.com>.

18 years ago2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 5 Jun 2006 17:18:31 +0000 (17:18 +0000)]
2006-06-05  Yoshinori K. Okuji  <okuji@enbug.org>

        Count partitions from 1 instead of 0 in the string representation
        of partitions. Still use 0-based internally.

        * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
        (sun_partition_map_iterate): Use grub_partition_t instead of
        struct grub_partition *. Cast DESC->START_CYLINDER to
        grub_uint64_t after converting the endian.
        (sun_partition_map_probe): Subtract 1 for PARTNUM.
        (sun_partition_map_get_name): Add 1 to P->INDEX.

        * partmap/pc.c (grub_partition_parse): Subtract 1 for
        PCDATA->DOS_PART.
        (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.

        * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
        zero instead of one.
        (gpt_partition_map_probe): Subtract 1 for PARTNUM.
        (gpt_partition_map_get_name): Add 1 into P->INDEX.

        * partmap/apple.c (apple_partition_map_iterate): Change the type
        of POS to unsigned.
        (apple_partition_map_probe): Subtract 1 for PARTNUM.
        (apple_partition_map_get_name): Add 1 into P->INDEX.

        * partmap/amiga.c (amiga_partition_map_iterate): Change the type
        of POS to unsigned.
        (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
        calculate the offset of a partition.
        (amiga_partition_map_probe): Subtract 1 for PARTNUM.
        (amiga_partition_map_get_name): Add 1 into P->INDEX.

        * partmap/acorn.c (acorn_partition_map_find): Change the type of
        SECTOR to grub_disk_addr_t.
        (acorn_partition_map_iterate): Likewise.
        (acorn_partition_map_probe): Subtract 1 for PARTNUM.
        Change the type of SECTOR to grub_disk_addr_t. Declare P on the
        top.
        (acorn_partition_map_get_name): Add 1 into P->INDEX.

        * kern/i386/pc/init.c (make_install_device): Add 1 into
        GRUB_INSTALL_DOS_PART.

        * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
        conditional.

18 years ago2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 4 Jun 2006 15:56:55 +0000 (15:56 +0000)]
2006-06-04  Yoshinori K. Okuji  <okuji@enbug.org>

        Clean up the code to support 64-bit addressing in disks and
        files. This change is not enough for filesystems yet.

        * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
        type of "start" to grub_uint64_t.
        (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
        grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
        save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
        convert addresses.

        * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
        to grub_disk_addr_t.

        * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
        string.

        * partmap/pc.c (pc_partition_map_iterate): Likewise.

        * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
        to char *.

        * normal/script.c (grub_script_parse): Remove unused MEMFREE.

        * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.

        * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.

        * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
        to grub_off_t, to detect an error from grub_file_seek.
        (grub_multiboot_load_elf32): Likewise.

        * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
        maximum unsigned long value when an overflow is detected.
        (grub_strtoull): New function.
        (grub_divmod64): Likewise.
        (grub_lltoa): use grub_divmod64.

        * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
        grub_disk_addr_t.
        (grub_fs_blocklist_open): Increase P if P is not NULL to advance
        the pointer to next character. Use grub_strtoull instead of
        grub_strtoul.
        (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
        SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
        respectively.

        * kern/file.c (grub_file_read): Prevent an oveflow of LEN, as the
        return value is signed.
        (grub_file_seek): Change the type of OLD to grub_off_t. Do not
        test if OFFSET is less than zero, as OFFSET is unsigned now.

        * kern/disk.c (struct grub_disk_cache): Change the type of
        "sector" to grub_disk_addr_t.
        (grub_disk_cache_get_index): Change the type of SECTOR to
        grub_disk_addr_t. Calculate the hash with SECTOR casted to
        unsigned after shifting.
        (grub_disk_cache_invalidate): Change the type of SECTOR to
        grub_disk_addr_t.
        (grub_disk_cache_unlock): Likewise.
        (grub_disk_cache_store): Likewise.
        (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
        START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
        grub_disk_addr_t and grub_uint64_t, respectively.
        (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
        body, as the value of OFFSET is tweaked by
        grub_disk_check_range. Change the types of START_SECTOR, LEN and
        POS to grub_disk_addr_t, grub_size_t and grub_size_t,
        respectively.
        (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
        body, as the value of OFFSET is tweaked by
        grub_disk_check_range. Change the types of LEN and N to
        grub_size_t.

        * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
        and "saved_offset" to grub_off_t.
        (test_header): Cast BUF to char *.
        (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
        to char *.
        (grub_gzio_read): Change the types of OFFSET and SIZE to
        grub_off_t and grub_size_t, respectively.

        * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
        Removed.
        (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
        (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
        (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
        (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
        (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.

        * include/grub/types.h (grub_off_t): Unconditionally set to
        grub_uint64_t.
        (grub_disk_addr_t): Changed to grub_uint64_t.

        * include/grub/partition.h (struct grub_partition): Change the
        types of "start", "len" and "offset" to grub_disk_addr_t,
        grub_uint64_t and grub_disk_addr_t, respectively.
        (grub_partition_get_start): Return grub_disk_addr_t.
        (grub_partition_get_len): Return grub_uint64_t.

        * include/grub/misc.h (grub_strtoull): New prototype.
        (grub_divmod64): Likewise.

        * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
        of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
        grub_off_t, respectively.
        All callers and references changed.

        * include/grub/fs.h (struct grub_fs): Change the type of LEN to
        grub_size_t in "read".
        All callers and references changed.

        * include/grub/file.h (struct grub_file): Change the types of
        "offset" and "size" to grub_off_t and grub_off_t,
        respectively. Change the type of SECTOR to grub_disk_addr_t in
        "read_hook".
        (grub_file_read): Change the type of LEN to grub_size_t.
        (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
        grub_off_t.
        (grub_file_size): Return grub_off_t.
        (grub_file_tell): Likewise.
        All callers and references changed.

        * include/grub/disk.h (struct grub_disk_dev): Change the types of
        SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
        "write".
        (struct grub_disk): Change the type of "total_sectors" to
        grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
        "read_hook".
        (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
        grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
        (grub_disk_write): Likewise.
        All callers and references changed.

        * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
        char * for grub_strncmp to silence gcc.
        (grub_iso9660_mount): Likewise.
        (grub_iso9660_mount): Likewise.
        (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
        return statement.
        (grub_iso9660_iterate_dir): Likewise.
        (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.

        * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
        LEN to grub_disk_addr_t and grub_size_t, respectively.

        * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.

        * fs/jfs.c (grub_jfs_read_file): Likewise.

        * fs/minix.c (grub_jfs_read_file): Likewise.

        * fs/sfs.c (grub_jfs_read_file): Likewise.

        * fs/ufs.c (grub_jfs_read_file): Likewise.

        * fs/xfs.c (grub_jfs_read_file): Likewise.

        * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
        and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
        respectively.

        * fs/ext2.c (grub_ext2_read_block): When an error happens, set
        BLKNR to -1 instead of returning GRUB_ERRNO.
        (grub_ext2_read_file): Change the types of SECTOR and
        LEN to grub_disk_addr_t and grub_size_t, respectively.

        * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
        LEN to grub_disk_addr_t and grub_size_t, respectively.

        * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
        grub_file_read.

        * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
        string. Do not cast SECTOR explicitly.

        * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
        TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
        (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
        grub_disk_addr_t and grub_size_t, respectively. If the sector is
        over 2TB and LBA mode is not supported, raise an error.
        (get_safe_sectors): New function.
        (grub_biosdisk_read): Use get_safe_sectors.
        (grub_biosdisk_write): Likewise.

        * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
        (grub_efidisk_write): Likewise.

        * disk/loopback.c (delete_loopback): Cosmetic changes.
        (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
        correctly.
        (grub_loopback_open): Likewise.
        (grub_loopback_read): Likewise. Also, change the type of POS to
        grub_off_t, and fix the usage of grub_memset.

        * commands/i386/pc/play.c: Include grub/machine/time.h.

        * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
        print FILE->SIZE.

        * commands/configfile.c: Include grub/env.h.

        * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
        GRUB_ERRNO directly instead. Change the type of POS to
        grub_off_t. Follow the coding standard.

        * commands/blocklist.c: Include grub/partition.h.
        (grub_cmd_blocklist): Return an error if the underlying device is
        not a disk. Take the starting sector of a partition into account,
        if a partition is used.

        * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
        a length field.
        (lba_mode): Support 64-bit addresses.
        (chs_mode): Likewise.
        (copy_buffer): Adapted to the new offsets of a length field and a
        segment field.
        (blocklist_default_start): Allocate 64-bit space.

        * boot/i386/pc/boot.S (force_lba): Removed.
        (boot_drive): Moved to under KERNEL_SECTOR.
        (kernel_sector): Moved to under KENREL_SEGMENT. Allocate 64-bit
        space.
        (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
        is useless.
        (lba_mode): Refactored to support a 64-bit address. More size
        optimization.
        (setup_sectors): Likewise.

18 years ago2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 4 Jun 2006 12:59:19 +0000 (12:59 +0000)]
2006-06-04  Yoshinori K. Okuji  <okuji@enbug.org>

        * DISTLIST: Added include/grub/i386/linux.h. Removed
        include/grub/i386/pc/linux.h

        * configure.ac (AC_INIT): Bumped to 1.94.

        * config.guess: Updated from gnulib.
        * config.sub: Likewise.
        * install-sh: Likewise.
        * mkinstalldirs: Likewise.

18 years ago2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Fri, 2 Jun 2006 19:33:58 +0000 (19:33 +0000)]
2006-06-02  Yoshinori K. Okuji  <okuji@enbug.org>

        * conf/common.rmk (grub_modules_init.lst): Depended on
        grub_emu_SOURCES, excluding grub_emu_init.c, instead of
        MODSRCFILES.

        * genmk.rb (PModule::rule): Reverted the previous change.

18 years ago2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Fri, 2 Jun 2006 19:23:08 +0000 (19:23 +0000)]
2006-06-02  Yoshinori K. Okuji  <okuji@enbug.org>

        * conf/common.rmk (grub_modules_init.lst): Depends on
        $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
        that the target does not exist before producing.
        (grub_modules_init.h): Remove the target before generating.
        (grub_emu_init.c): Likewise.

        * genmk.rb (PModule::rule): Add source files into MODSRCFILES.

18 years ago2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Thu, 1 Jun 2006 15:51:51 +0000 (15:51 +0000)]
2006-05-31  Jeroen Dekkers  <jeroen@dekkers.cx>

* configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
for the target-specific tests. Make sure that we also have the
up-to-date target variables for those tests.

18 years ago2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Wed, 31 May 2006 00:46:37 +0000 (00:46 +0000)]
2006-05-31  Yoshinori K. Okuji  <okuji@enbug.org>

        * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
        (PModule::rule): Likewise.

18 years ago2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Wed, 31 May 2006 00:28:03 +0000 (00:28 +0000)]
2006-05-31  Yoshinori K. Okuji  <okuji@enbug.org>

        * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
        TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
        target-specific flags should be prefixed.
        (PModule::rule): Likewise.

18 years ago2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Tue, 30 May 2006 00:32:29 +0000 (00:32 +0000)]
2006-05-30  Yoshinori K. Okuji  <okuji@enbug.org>

        * configure.ac (CMP): Check if cmp is available explicitly.

18 years ago2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 28 May 2006 23:01:43 +0000 (23:01 +0000)]
2006-05-29  Yoshinori K. Okuji  <okuji@enbug.org>

        * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
        (target_cpu): New variable.
        (pkglibdir): Use target_cpu instead of host_cpu.

        * util/i386/pc/grub-install.in (host_cpu): Removed.
        (target_cpu): New variable.
        (pkglibdir): Use target_cpu instead of host_cpu.

        * util/genmoddep.c: Removed.

        * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
        instead of GRUB_HOST_SIZEOF_VOID_P.
        * kern/dl.c: Likewise.

        * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
        ...
        (GRUB_TARGET_SIZEOF_VOID_P): ... this.
        (GRUB_HOST_SIZEOF_LONG): Renamed to ...
        (GRUB_TARGET_SIZEOF_LONG): ... this.
        (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
        (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
        * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
        to ...
        (GRUB_TARGET_SIZEOF_VOID_P): ... this.
        (GRUB_HOST_SIZEOF_LONG): Renamed to ...
        (GRUB_TARGET_SIZEOF_LONG): ... this.
        (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
        (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
        * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
        to ...
        (GRUB_TARGET_SIZEOF_VOID_P): ... this.
        (GRUB_HOST_SIZEOF_LONG): Renamed to ...
        (GRUB_TARGET_SIZEOF_LONG): ... this.
        (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
        (GRUB_TARGET_WORDS_BIGENDIAN): ... this.

        * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
        GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
        [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
        instead of GRUB_HOST_SIZEOF_LONG.
        [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
        GRUB_HOST_WORDS_BIGENDIAN to define or undefine
        GRUB_CPU_WORDS_BIGENDIAN.
        Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
        define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
        grub_host_ssize_t.

        * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
        (genmoddep_SOURCES): Likewise.
        * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
        (genmoddep_SOURCES): Likewise.
        * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
        (genmoddep_SOURCES): Likewise.
        * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
        Likewise.
        (genmoddep_SOURCES): Likewise.

        * genmoddep.awk: New file.

        * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
        TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
        CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
        (PModule::rule): Likewise.
        (Program::rule): Likewise.
        (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
        BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
        respectively.

        * configure.ac: Rewritten intensively to use host and target
        instead of build and host, respectively.

        * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
        (host_cpu): Removed.
        (target_cpu): New variable.
        (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
        (BUILD_CC): Removed.
        (BUILD_CFLAGS): Likewise.
        (BUILD_CPPFLAGS): Likewise.
        (TARGET_CC): New variable.
        (TARGET_CFLAGS): Likewise.
        (TARGET_CPPFLAGS): Likewise.
        (TARGET_LDFLAGS): Likewise.
        (AWK): Likewise.
        (include): Use target_cpu instead of host_cpu.
        (moddep.lst:): Use genmoddep.awk instead of genmoddep.

        * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.

18 years ago2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Sun, 28 May 2006 21:58:35 +0000 (21:58 +0000)]
2006-05-29  Vesa Jaaskelainen  <chaac@nic.fi>

        * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
        'exec_to_evaluate'.  Renamed field 'true' to 'exec_on_true'.  Renamed
        field 'false' to 'exec_on_false'.
        (grub_script_create_cmdif): Renamed argument names to reflect above
        changes.

        * normal/execute.c (grub_script_execute_cmdif): Likewise.

        * normal/script.c (grub_script_create_cmdif): Likewise.