forked from pool/grub2
31 lines
958 B
Diff
31 lines
958 B
Diff
|
Index: grub-1.99/grub-core/commands/usbtest.c
|
||
|
===================================================================
|
||
|
--- grub-1.99.orig/grub-core/commands/usbtest.c
|
||
|
+++ grub-1.99/grub-core/commands/usbtest.c
|
||
|
@@ -111,7 +111,7 @@ grub_usb_get_string (grub_usb_device_t d
|
||
|
static void
|
||
|
usb_print_str (const char *description, grub_usb_device_t dev, int idx)
|
||
|
{
|
||
|
- char *name;
|
||
|
+ char *name = NULL;
|
||
|
grub_usb_err_t err;
|
||
|
/* XXX: LANGID */
|
||
|
|
||
|
Index: grub-1.99/conf/Makefile.common
|
||
|
===================================================================
|
||
|
--- grub-1.99.orig/conf/Makefile.common
|
||
|
+++ grub-1.99/conf/Makefile.common
|
||
|
@@ -11,10 +11,10 @@ if COND_i386_pc
|
||
|
CFLAGS_PLATFORM += -mrtd -mregparm=3
|
||
|
endif
|
||
|
if COND_i386_efi
|
||
|
- LDFLAGS_PLATFORM = -melf_i386
|
||
|
+ LDFLAGS_PLATFORM = -Wl,-melf_i386
|
||
|
endif
|
||
|
if COND_x86_64_efi
|
||
|
- LDFLAGS_PLATFORM = -melf_x86_64
|
||
|
+ LDFLAGS_PLATFORM = -Wl,-melf_x86_64
|
||
|
endif
|
||
|
if COND_i386_qemu
|
||
|
CFLAGS_PLATFORM += -mrtd -mregparm=3
|