All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Building on Ubuntu 7.10 x86-64
@ 2007-11-10 11:43 Vesa Jääskeläinen
  2007-11-10 18:22 ` Marco Gerards
  0 siblings, 1 reply; 3+ messages in thread
From: Vesa Jääskeläinen @ 2007-11-10 11:43 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

Hi All,

I needed to do following modification in order to build grub2 on my
64bit laptop. In case there is no complaints I will commit it to CVS.

Additionally I needed to install gcc-multilib package (and normal
packages like ruby, lzo...).

And after that just doing following made runnable binaries (at least in
qemu):

./autogen.sh

mkdir build-x86_64
cd build-x86_64

../configure --with-platform=pc --target=x86_64

make

Thanks,
Vesa Jääskeläinen

[-- Attachment #2: x64_64_build_fix.diff --]
[-- Type: text/plain, Size: 2075 bytes --]

Index: ChangeLog
===================================================================
RCS file: /sources/grub/grub2/ChangeLog,v
retrieving revision 1.438
diff -u -r1.438 ChangeLog
--- ChangeLog	6 Nov 2007 21:23:59 -0000	1.438
+++ ChangeLog	10 Nov 2007 11:22:13 -0000
@@ -1,3 +1,11 @@
+2007-11-10  Vesa Jaaskelainen  <chaac@nic.fi>
+
+	* conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_FLAGS for target
+	flags.
+	(pxeboot_img_LDFLAGS): Likewise.
+	(diskboot_img_LDFLAGS): Likewise.
+	(kernel_img_LDFLAGS): Likewise.
+
 2007-11-06  Robert Millan  <rmh@aybabtu.com>
 
 	* term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
Index: conf/i386-pc.rmk
===================================================================
RCS file: /sources/grub/grub2/conf/i386-pc.rmk,v
retrieving revision 1.91
diff -u -r1.91 i386-pc.rmk
--- conf/i386-pc.rmk	31 Oct 2007 22:29:20 -0000	1.91
+++ conf/i386-pc.rmk	10 Nov 2007 11:22:19 -0000
@@ -10,17 +10,17 @@
 # For boot.img.
 boot_img_SOURCES = boot/i386/pc/boot.S
 boot_img_ASFLAGS = $(COMMON_ASFLAGS)
-boot_img_LDFLAGS = -nostdlib -Wl,-N,-Ttext,7C00
+boot_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-Ttext,7C00
 
 # For pxeboot.img
 pxeboot_img_SOURCES = boot/i386/pc/pxeboot.S
 pxeboot_img_ASFLAGS = $(COMMON_ASFLAGS)
-pxeboot_img_LDFLAGS = -nostdlib -Wl,-N,-Ttext,7C00
+pxeboot_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-Ttext,7C00
 
 # For diskboot.img.
 diskboot_img_SOURCES = boot/i386/pc/diskboot.S
 diskboot_img_ASFLAGS = $(COMMON_ASFLAGS)
-diskboot_img_LDFLAGS = -nostdlib -Wl,-N,-Ttext,8000
+diskboot_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-Ttext,8000
 
 # For kernel.img.
 kernel_img_SOURCES = kern/i386/pc/startup.S kern/main.c kern/device.c \
@@ -37,7 +37,7 @@
 	machine/memory.h machine/loader.h machine/vga.h machine/vbe.h
 kernel_img_CFLAGS = $(COMMON_CFLAGS)
 kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
-kernel_img_LDFLAGS = -nostdlib -Wl,-N,-Ttext,8200 $(COMMON_CFLAGS)
+kernel_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-Ttext,8200 $(COMMON_CFLAGS)
 
 MOSTLYCLEANFILES += symlist.c kernel_syms.lst
 DEFSYMFILES += kernel_syms.lst

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Building on Ubuntu 7.10 x86-64
  2007-11-10 11:43 [PATCH] Building on Ubuntu 7.10 x86-64 Vesa Jääskeläinen
@ 2007-11-10 18:22 ` Marco Gerards
  2007-11-10 18:56   ` Vesa Jääskeläinen
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Gerards @ 2007-11-10 18:22 UTC (permalink / raw)
  To: The development of GRUB 2

Vesa Jääskeläinen <chaac@nic.fi> writes:

Hi Vesa,

> I needed to do following modification in order to build grub2 on my
> 64bit laptop. In case there is no complaints I will commit it to CVS.

This looks ok to me.

--
Marco




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Building on Ubuntu 7.10 x86-64
  2007-11-10 18:22 ` Marco Gerards
@ 2007-11-10 18:56   ` Vesa Jääskeläinen
  0 siblings, 0 replies; 3+ messages in thread
From: Vesa Jääskeläinen @ 2007-11-10 18:56 UTC (permalink / raw)
  To: The development of GRUB 2

Marco Gerards wrote:
> Vesa Jääskeläinen <chaac@nic.fi> writes:
> 
> Hi Vesa,
> 
>> I needed to do following modification in order to build grub2 on my
>> 64bit laptop. In case there is no complaints I will commit it to CVS.
> 
> This looks ok to me.

Committed. New configure was also generated, so please report how well
it works.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-10 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-10 11:43 [PATCH] Building on Ubuntu 7.10 x86-64 Vesa Jääskeläinen
2007-11-10 18:22 ` Marco Gerards
2007-11-10 18:56   ` Vesa Jääskeläinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.