Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KJVl4-0003sm-CZ for mharc-grub-devel@gnu.org; Thu, 17 Jul 2008 11:51:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJVl3-0003sZ-9u for grub-devel@gnu.org; Thu, 17 Jul 2008 11:51:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJVl0-0003sN-RU for grub-devel@gnu.org; Thu, 17 Jul 2008 11:51:04 -0400 Received: from [199.232.76.173] (port=56321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJVl0-0003sK-Lc for grub-devel@gnu.org; Thu, 17 Jul 2008 11:51:02 -0400 Received: from ti-out-0910.google.com ([209.85.142.188]:44472) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJVkz-0000fW-TN for grub-devel@gnu.org; Thu, 17 Jul 2008 11:51:02 -0400 Received: by ti-out-0910.google.com with SMTP id u5so3063911tia.10 for ; Thu, 17 Jul 2008 08:51:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=nwJww5W3GYm9lj2EsBj4T6eOS/oCiQqe0yulJtmaJcY=; b=N/Hc7DV1GSEJhV+/lXGwLVaCWp7uOGlZD1g2dwAyHEMvGOyH7gT9s8Om5Y6AzQRmS6 vvG2TT/6G4MzD2kCOz2c/yw2epOQIZtzE/gBM2xZDmWnQapTUUyrafp/Crxbz8dDIAOz RbNmI1Njq4RMoTMuYtYFc7uP42CoCSBPR1J2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ZD8WfuQ3IC3r9J/BwlpPbrDRBl1UyAn9cUycK9LMCl+X65EFvY9u180H3zKcazcHlI LKiZYEgTZf6VaxN6L4iXtdFWHM/BDqQEmlXVNtKIT3GxiwvhXju3q6pPuyZkxB5kAHBK ST44eoL7IZA1VLTzQ1I3v9lhSsiCEMEbu/cnQ= Received: by 10.110.52.1 with SMTP id z1mr1379483tiz.11.1216309860037; Thu, 17 Jul 2008 08:51:00 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Thu, 17 Jul 2008 08:50:59 -0700 (PDT) Message-ID: Date: Thu, 17 Jul 2008 23:50:59 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <1216309517.21767.26.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <487392C9.40208@isaac.cedarswampstudios.org> <20080712144131.GE25455@thorin> <1216306949.21767.20.camel@localhost> <1216308135.16120.5.camel@dv> <1216309517.21767.26.camel@localhost> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] New x86_64 EFI patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 15:51:05 -0000 On Thu, Jul 17, 2008 at 11:45 PM, Javier Mart=EDn wr= ote: > El jue, 17-07-2008 a las 23:26 +0800, Bean escribi=F3: >> On Thu, Jul 17, 2008 at 11:22 PM, Pavel Roskin wrote: >> > On Thu, 2008-07-17 at 17:02 +0200, Javier Mart=EDn wrote: >> >> El jue, 17-07-2008 a las 17:50 +0800, Bean escribi=F3: >> >> > Committed. >> >> > >> >> Seemingly, the fact that there is now separate recognition for "x86_6= 4" >> >> machine types has borked the current build system in amd64 PCs: >> >> >> >> $ make >> >> ./config.status --recheck >> >> running CONFIG_SHELL=3D/bin/bash /bin/bash ../src/configure >> >> --prefix=3D/home/javier/Proyectos/grub/build/out/ --no-create >> >> --no-recursion >> >> checking build system type... x86_64-unknown-linux-gnu >> >> checking host system type... x86_64-unknown-linux-gnu >> >> checking target system type... x86_64-unknown-linux-gnu >> >> configure: error: unsupported machine type >> >> make: *** [config.status] Error 1 >> > >> > I've just noticed that. I think x86_64 should default to "i386-pc" >> > platform. I'll have a look how to do it nicely. >> >> I have the following in configure.ac: >> >> if test "x$platform" =3D "xefi" ; then >> case "$target_cpu" in >> i386) ;; >> x86_64) target_m64=3D1 ;; >> *) AC_MSG_ERROR([unsupported CPU type for EFI]) ;; >> esac >> else >> case "$target_cpu" in >> i386) ;; >> x86_64) target_cpu=3Di386 target_m32=3D1 ;; >> powerpc) ;; >> powerpc64) target_cpu=3Dpowerpc target_m32=3D1;; >> sparc64) ;; >> *) AC_MSG_ERROR([unsupported CPU type]) ;; >> esac >> fi >> >> If platform is not efi, x86_64 will become i386, perhaps there is >> something I miss ? >> > > It does not reach that point, the "unsupported machine type" message is > thrown by this earlier check (line 59) Hi, Oh, you're right, use this patch: diff --git a/configure.ac b/configure.ac index 943b9fe..45eb472 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,7 @@ if test "x$with_platform" =3D x; then case "$target_cpu"-"$target_vendor" in i386-apple) platform=3Defi ;; i386-*) platform=3Dpc ;; + x86_64-*) platform=3Dpc ;; powerpc-*) platform=3Dieee1275 ;; sparc64-*) platform=3Dieee1275 ;; *) AC_MSG_ERROR([unsupported machine type]) ;; --=20 Bean