Commit 97f42cd0 authored by Colin Watson's avatar Colin Watson

Hack prefix for OLPC

This sucks, but it's better than what OFW was giving us.

Patch-Name: olpc_prefix_hack.patch
parent 4ddac1bc
......@@ -73,6 +73,7 @@ grub_exit (void)
grub_ieee1275_exit ();
#ifndef __i386__
/* Translate an OF filesystem path (separated by backslashes), into a GRUB
path (separated by forward slashes). */
static void
......@@ -87,9 +88,18 @@ grub_translate_ieee1275_path (char *filepath)
backslash = grub_strchr (filepath, '\\');
void (*grub_ieee1275_net_config) (const char *dev, char **device, char **path,
char *bootpath);
#ifdef __i386__
grub_machine_get_bootlocation (char **device __attribute__ ((unused)),
char **path __attribute__ ((unused)))
grub_env_set ("prefix", "(sd,1)/");
grub_machine_get_bootlocation (char **device, char **path)
......@@ -157,6 +167,7 @@ grub_machine_get_bootlocation (char **device, char **path)
grub_free (bootpath);
/* Claim some available memory in the first /memory node. */
#ifdef __sparc__
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment