source: grub-pc/trunk/fuentes/debian/patches/olpc_prefix_hack.patch @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

File size: 1.4 KB
  • grub-core/kern/ieee1275/init.c

    From c79d05703ec41571c44a0a09df31cf220d951c09 Mon Sep 17 00:00:00 2001
    From: Colin Watson <cjwatson@debian.org>
    Date: Mon, 13 Jan 2014 12:12:50 +0000
    Subject: Hack prefix for OLPC
    
    This sucks, but it's better than what OFW was giving us.
    
    Patch-Name: olpc_prefix_hack.patch
    ---
     grub-core/kern/ieee1275/init.c | 11 +++++++++++
     1 file changed, 11 insertions(+)
    
    diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c
    index 89b2822..ecce450 100644
    a b grub_exit (void) 
    6565  grub_ieee1275_exit ();
    6666}
    6767
     68#ifndef __i386__
    6869/* Translate an OF filesystem path (separated by backslashes), into a GRUB
    6970   path (separated by forward slashes).  */
    7071static void
    grub_translate_ieee1275_path (char *filepath) 
    7980      backslash = grub_strchr (filepath, '\\');
    8081    }
    8182}
     83#endif
    8284
    8385void (*grub_ieee1275_net_config) (const char *dev,
    8486                                  char **device,
    8587                                  char **path);
     88#ifdef __i386__
     89void
     90grub_machine_get_bootlocation (char **device __attribute__ ((unused)),
     91                               char **path __attribute__ ((unused)))
     92{
     93  grub_env_set ("prefix", "(sd,1)/");
     94}
     95#else
    8696void
    8797grub_machine_get_bootlocation (char **device, char **path)
    8898{
    grub_machine_get_bootlocation (char **device, char **path) 
    150160    }
    151161  grub_free (bootpath);
    152162}
     163#endif
    153164
    154165/* Claim some available memory in the first /memory node. */
    155166#ifdef __sparc__
Note: See TracBrowser for help on using the repository browser.