]> git.proxmox.com Git - grub2.git/log
grub2.git
17 years ago2007-07-02 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 2 Jul 2007 13:58:03 +0000 (13:58 +0000)]
2007-07-02  Robert Millan  <rmh@aybabtu.com>

* util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
invocation to fail, in order to support partition-less media.

* util/i386/pc/grub-install.in: Likewise.

* util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
which fs or partmap modules are needed (akin to its sister scripts).

Also use grub-probe to get rid of unportable /proc/mounts check.

Print the same informational message that the other scripts do, before
exitting.

17 years ago2007-06-23 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 23 Jun 2007 19:34:57 +0000 (19:34 +0000)]
2007-06-23  Robert Millan  <rmh@aybabtu.com>

* util/update-grub_lib.in (font_path): New function.  Determine wether
a font file can be found and, if so, echo the GRUB path to it.

* util/update-grub.in: Handle multiple terminals depending on user
input, platform availability and font file presence.  Propagate
variables of our findings to /etc/grub.d/ children.

* util/grub.d/00_header.in: Handle multiple terminals, based on
environment setup by update-grub.

17 years agoOops. Commit the changes corresponding to this ChangeLog entry:
robertmh [Sat, 23 Jun 2007 17:57:42 +0000 (17:57 +0000)]
Oops.  Commit the changes corresponding to this ChangeLog entry:

* util/update-grub_lib.in (convert_system_path_to_grub_path): Split
code to make path relative to its root into a separate function.

* util/i386/pc/grub-install.in: Use newly provided
make_system_path_relative_to_its_root() to convert ${grubdir}, then
pass the result to grub-install --prefix.

that I forgot to apply before.

17 years agoFix syntax error.
robertmh [Sat, 23 Jun 2007 17:40:42 +0000 (17:40 +0000)]
Fix syntax error.

17 years ago2007-06-23 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 23 Jun 2007 14:44:37 +0000 (14:44 +0000)]
2007-06-23  Robert Millan  <rmh@aybabtu.com>

* conf/i386-pc.rmk: (pkgdata_MODULES): Add serial.mod.

17 years ago2007-06-21 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 21 Jun 2007 21:01:11 +0000 (21:01 +0000)]
2007-06-21  Robert Millan  <rmh@aybabtu.com>

* include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
indicate end of data section in kernel image.
* include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
GRUB_KERNEL_MACHINE_DATA_END.

* kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
space for it.
* kern/i386/efi/startup.S: Likewise.

* util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
during image generation.  Implement --prefix option to override this
patch.
* util/i386/efi/grub-mkimage.c: Likewise.

* util/update-grub_lib.in (convert_system_path_to_grub_path): Split
code to make path relative to its root into a separate function.

* util/i386/pc/grub-install.in: Use newly provided
make_system_path_relative_to_its_root() to convert ${grubdir}, then
pass the result to grub-install --prefix.

17 years ago2007-06-13 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 13 Jun 2007 16:53:54 +0000 (16:53 +0000)]
2007-06-13  Robert Millan  <rmh@aybabtu.com>

* include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
DEFAULT_DEVICE_MAP.
* util/grub-emu.c: Use above definitions from misc.h instead of
defining them.
* util/grub-mkdevicemap.c: Likewise.
* util/i386/pc/grub-setup.c: Likewise.
* util/grub-probe.c: Likewise.
(probe): Abort with grub_util_error() when either
grub_guess_root_device or grub_util_get_grub_dev fails.

17 years ago2007-06-12 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 12 Jun 2007 14:23:12 +0000 (14:23 +0000)]
2007-06-12  Robert Millan  <rmh@aybabtu.com>

* normal/command.c (grub_command_execute): Use NULL rather than 0 for
"pager" assignment.
* util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
"pcdata".
* util/grub-probe.c (probe): Likewise for "drive_name".

17 years ago2007-06-11 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 11 Jun 2007 20:01:09 +0000 (20:01 +0000)]
2007-06-11  Robert Millan  <rmh@aybabtu.com>

* util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
not just the cdrom one.

17 years ago2007-06-11 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 11 Jun 2007 19:22:27 +0000 (19:22 +0000)]
2007-06-11  Robert Millan  <rmh@aybabtu.com>

* util/i386/pc/grub-mkrescue.in: Add "set -e".
Add --pkglibdir=DIR option to override pkglibdir.
Mention --image-type=TYPE in help output.
Fix --grub-mkimage (it was a no-op).
Abort gracefuly when no parameter is given.

17 years ago2007-06-11 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 11 Jun 2007 06:26:18 +0000 (06:26 +0000)]
2007-06-11  Robert Millan  <rmh@aybabtu.com>

* util/i386/pc/grub-mkrescue.in: New file.
* conf/i386-pc.rmk: Add its build declarations.  Put it in bin_SCRIPTS.
* Makefile.in: Handle bin_SCRIPTS.

17 years agoFixed formatting problems and copyright year on last commit.
chaac [Sun, 10 Jun 2007 17:34:27 +0000 (17:34 +0000)]
Fixed formatting problems and copyright year on last commit.

17 years ago2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Sun, 10 Jun 2007 17:31:03 +0000 (17:31 +0000)]
2007-06-10  Vesa Jaaskelainen  <chaac@nic.fi>

        * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
        list of video modes.

17 years ago2007-06-06 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 6 Jun 2007 18:08:56 +0000 (18:08 +0000)]
2007-06-06  Robert Millan  <rmh@aybabtu.com>

* util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
file doesn't exist, or if it is in a filesystem grub can't read.

* util/update-grub.in: Set fallback for GRUB_FS check to "unknown".  Do
not abort if GRUB_DRIVE could not be defined.  Rearrange generated
header comment to fit in 80 columns when the variables are resolved.

* util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
could be identified by update-grub.  Remove redundant check for
unifont.pff existance (since convert_system_path_to_grub_path now
handles that).

17 years ago2007-06-04 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 4 Jun 2007 19:48:53 +0000 (19:48 +0000)]
2007-06-04  Robert Millan  <rmh@aybabtu.com>

* conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.

* conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.

17 years ago2007-06-04 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 4 Jun 2007 18:58:17 +0000 (18:58 +0000)]
2007-06-04  Robert Millan  <rmh@aybabtu.com>

* conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.

* include/grub/partition.h: Declare grub_apple_partition_map_init and
grub_apple_partition_map_fini.

* util/biosdisk.c
(grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
to access >2 TiB disks).

Print disk->total_sectors with %llu instead of %lu, since this
variable is always 64-bit (prevents wrong disk size from being displayed
on either >2 TiB disk or big-endian CPU).

(grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
into a generic case that supports all (sane) partition maps.

Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
breaks big-endian.

* util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
and grub_apple_partition_map_fini() after that.

17 years ago2007-06-01 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 1 Jun 2007 15:21:20 +0000 (15:21 +0000)]
2007-06-01  Robert Millan  <rmh@aybabtu.com>

* util/update-grub.in: Export GRUB_CMDLINE_LINUX.

* util/grub.d/00_header.in: Only enable gfxterm when
convert_system_path_to_grub_path() succeeds.

17 years ago2007-05-20 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 20 May 2007 09:10:06 +0000 (09:10 +0000)]
2007-05-20  Robert Millan  <rmh@aybabtu.com>

* util/update-grub_lib.in: New file.
* DISTLIST: Add update-grub_lib.in.
* conf/common.rmk: Generate update-grub_lib and install it in
$(lib_DATA).
* Makefile.in: Add install routine for $(lib_DATA).

* util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
function provided by update-grub_lib to support arbitrary paths of
unifont.pff.
* util/update-grub.in: Use convert_system_path_to_grub_path() to
initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.

17 years ago2007-05-19 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 20 May 2007 07:20:43 +0000 (07:20 +0000)]
2007-05-19  Robert Millan  <rmh@aybabtu.com>

* commands/i386/cpuid.c: New module.
* DISTLIST: Add it.
* conf/i386-efi.rmk: Enable cpuid.mod.
* conf/i386-pc.rmk: Likewise.

17 years ago2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Fri, 18 May 2007 21:40:06 +0000 (21:40 +0000)]
2007-05-18  Jeroen Dekkers  <jeroen@dekkers.cx>

* kern/disk.c (grub_disk_read): Check return value of
grub_realloc().

17 years ago2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Thu, 17 May 2007 23:23:03 +0000 (23:23 +0000)]
2007-05-18  Jeroen Dekkers  <jeroen@dekkers.cx>

* util/getroot.c (grub_util_get_grub_dev): Support partitionable
arrays.
* disk/raid.c (grub_raid_open): Likewise.

17 years ago2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Thu, 17 May 2007 19:03:42 +0000 (19:03 +0000)]
2007-05-17  Jeroen Dekkers  <jeroen@dekkers.cx>

* util/biosdisk.c (linux_find_partition): Allocate real_dev on the
stack instead of on the heap.

* kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
before doing a read on it.

* configure.ac: Only use -fno-stack-protector for the target
environment.

17 years ago2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Thu, 17 May 2007 15:43:32 +0000 (15:43 +0000)]
2007-05-17  Jeroen Dekkers  <jeroen@dekkers.cx>

* video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
__attribute_ ((unused)) to mode_type argument.

* util/getroot.c (grub_guess_root_device): Fix #endif.

* kern/misc.c (memcmp): Fix prototype.

* include/grub/partition.h [GRUB_UTIL]
(grub_gpt_partition_map_init): Add prototype.
(grub_gpt_partition_map_fini): Likewise.

* fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
at the right place.

* fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
(grub_fat_read_data): Likewise.
(grub_fat_find_dir): Likewise.

* font/manager.c (find_glyph): Make table a const.
(grub_font_get_glyph): Remove bitmap from if statement.

17 years ago2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Wed, 16 May 2007 21:38:44 +0000 (21:38 +0000)]
2007-05-16  Jeroen Dekkers  <jeroen@dekkers.cx>

* util/getroot.c (grub_guess_root_device): Remove RAID and LVM
code, first search for device in /dev/mapper, then in /dev.
(grub_util_get_grub_dev): New function.
* include/grub/util/getroot.h (grub_util_get_grub_dev): Add
prototype.
* util/grub-probe.c (probe): Remove check for RAID, call
grub_util_get_grub_dev() instead of
grub_util_biosdisk_get_grub_dev().
* util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
grub_util_biosdisk_get_grub_dev().
* util/i386/pc/grub-setup.c (main): Likewise.

17 years ago2007-05-16 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 16 May 2007 15:19:38 +0000 (15:19 +0000)]
2007-05-16  Robert Millan  <rmh@aybabtu.com>

* DISTLIST: Update for the latest changes.
* conf/i386-pc.rmk: Use the new paths for util/getroot.c,
util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
* util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
grub/util/biosdisk.h.
* util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
grub/util/biosdisk.h.

17 years ago2007-05-16 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 16 May 2007 15:06:45 +0000 (15:06 +0000)]
2007-05-16  Robert Millan  <rmh@aybabtu.com>

* util/grub.d/00_header.in: Set default gfxmode to `640x480'.

17 years ago2007-05-16 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 16 May 2007 15:05:02 +0000 (15:05 +0000)]
2007-05-16  Robert Millan  <rmh@aybabtu.com>

* util/i386/efi/grub-install.in: New.
* conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
newly added grub-install.
* util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
include.
* util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
grub/util/biosdisk.h.
* util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
grub/util/biosdisk.h.

17 years ago2007-05-16 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 16 May 2007 14:54:08 +0000 (14:54 +0000)]
2007-05-16  Robert Millan  <rmh@aybabtu.com>

* include/grub/i386/pc/util/biosdisk.h: Moved to ...
* include/grub/util/biosdisk.h: ... here.
* util/i386/pc/biosdisk.c: Moved to ...
* util/biosdisk.c: ... here.
* util/i386/pc/getroot.c: Moved to ...
* util/getroot.c: ... here.
* util/i386/pc/grub-mkdevicemap.c: Moved to ...
* util/grub-mkdevicemap.c: ... here.
* util/i386/pc/grub-probe.c: Moved to ...
* util/grub-probe.c: ... here.

17 years agoRegenerate
jeroen [Wed, 16 May 2007 13:30:58 +0000 (13:30 +0000)]
Regenerate

17 years ago2007-05-15 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 15 May 2007 19:25:56 +0000 (19:25 +0000)]
2007-05-15  Robert Millan  <rmh@aybabtu.com>

* util/update-grub.in: Remove duplicated line in grub.cfg header
message.

17 years ago2007-05-13 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 13 May 2007 19:28:54 +0000 (19:28 +0000)]
2007-05-13  Robert Millan  <rmh@aybabtu.com>

* util/update-grub.in: Fix a few assumptions about the devices holding
/, /boot and /boot/grub being the same.
* util/grub.d/00_header.in: Likewise.
* util/grub.d/10_hurd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.

* util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
patterns.  Use that to define the `.old' suffix as older than `'.

* util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.

* util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
the grub.cfg header message.

17 years ago2007-05-11 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 11 May 2007 15:53:02 +0000 (15:53 +0000)]
2007-05-11  Robert Millan  <rmh@aybabtu.com>

* util/update-grub.in: Create device.map if it doesn't already exist,
before attempting to run grub-probe.
Check for grub-probe and grub-mkdevicemap with the same code
grub-install is using.
Remove test mode.

17 years ago2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Wed, 9 May 2007 21:24:33 +0000 (21:24 +0000)]
2007-05-09  Jeroen Dekkers  <jeroen@dekkers.cx>

* Makefile.in: Add the datarootdir autoconf variable.

17 years ago2007-05-09 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 9 May 2007 15:09:41 +0000 (15:09 +0000)]
2007-05-09  Robert Millan  <rmh@aybabtu.com>

* util/i386/pc/grub-probe.c (probe): When detecting partition map,
        fail gracefuly if dev->disk->partition == NULL.

17 years ago2007-05-07 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 7 May 2007 19:54:46 +0000 (19:54 +0000)]
2007-05-07  Robert Millan  <rmh@aybabtu.com>

* util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
determine partition map module.
* util/i386/pc/grub-install.in: Use this feature to decide which
partition module to load, instead of hardcoding pc and gpt.

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.