All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Javier Martín" <lordhabbit@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] New x86_64 EFI patch
Date: Thu, 17 Jul 2008 18:01:56 +0200	[thread overview]
Message-ID: <1216310516.21767.29.camel@localhost> (raw)
In-Reply-To: <ca0f59980807170850h7a4de9dh1ac2b77ef77a125@mail.gmail.com>

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

El jue, 17-07-2008 a las 23:50 +0800, Bean escribió:
> On Thu, Jul 17, 2008 at 11:45 PM, Javier Martín <lordhabbit@gmail.com> wrote:
> > El jue, 17-07-2008 a las 23:26 +0800, Bean escribió:
> >> On Thu, Jul 17, 2008 at 11:22 PM, Pavel Roskin <proski@gnu.org> wrote:
> >> > On Thu, 2008-07-17 at 17:02 +0200, Javier Martín wrote:
> >> >> El jue, 17-07-2008 a las 17:50 +0800, Bean escribió:
> >> >> > Committed.
> >> >> >
> >> >> Seemingly, the fact that there is now separate recognition for "x86_64"
> >> >> machine types has borked the current build system in amd64 PCs:
> >> >>
> >> >> $ make
> >> >> ./config.status --recheck
> >> >> running CONFIG_SHELL=/bin/bash /bin/bash ../src/configure
> >> >> --prefix=/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" = "xefi" ; then
> >>   case "$target_cpu" in
> >>     i386) ;;
> >>     x86_64) target_m64=1 ;;
> >>     *) AC_MSG_ERROR([unsupported CPU type for EFI]) ;;
> >>   esac
> >> else
> >>   case "$target_cpu" in
> >>     i386) ;;
> >>     x86_64) target_cpu=i386 target_m32=1 ;;
> >>     powerpc) ;;
> >>     powerpc64) target_cpu=powerpc target_m32=1;;
> >>     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" = x; then
>    case "$target_cpu"-"$target_vendor" in
>      i386-apple) platform=efi ;;
>      i386-*) platform=pc ;;
> +    x86_64-*) platform=pc ;;
>      powerpc-*) platform=ieee1275 ;;
>      sparc64-*) platform=ieee1275 ;;
>      *) AC_MSG_ERROR([unsupported machine type]) ;;
> 
> 

I think this one would be better, as it follows the structure what's
done with i386: vendor=apple -> efi; anything_else -> pc. Also, this one
errors out with a more understandable message that does not conflict
with another check some lines down.

Index: configure.ac
===================================================================
--- configure.ac        (revisión: 1714)
+++ configure.ac        (copia de trabajo)
@@ -59,11 +59,11 @@
 # Guess the platform if not specified.
 if test "x$with_platform" = x; then
   case "$target_cpu"-"$target_vendor" in
-    i386-apple) platform=efi ;;
-    i386-*) platform=pc ;;
+    i386-apple|x86_64-apple) platform=efi ;;
+    i386-*|x86_64-*) platform=pc ;;
     powerpc-*) platform=ieee1275 ;;
     sparc64-*) platform=ieee1275 ;;
-    *) AC_MSG_ERROR([unsupported machine type]) ;;
+    *) AC_MSG_ERROR([unable to guess platform. Use --with-platform]) ;;
   esac
 else
   platform="$with_platform"


[-- Attachment #2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

  reply	other threads:[~2008-07-17 16:01 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-20 17:04 [PATCH] New x86_64 EFI patch Bean
2008-06-21 17:04 ` Bean
2008-06-23 11:58   ` Isaac Dupree
2008-06-23 12:53     ` Bean
2008-06-24 12:52   ` Isaac Dupree
2008-06-24 13:12     ` Bean
2008-06-24 16:57       ` Isaac Dupree
2008-06-24 17:11         ` Bean
2008-06-24 21:59           ` Isaac Dupree
2008-06-25  6:49             ` Bean
2008-06-25 12:50               ` Isaac Dupree
2008-06-25 13:54                 ` Bean
2008-06-28 10:51                   ` Isaac Dupree
2008-06-28 11:55                     ` Bean
2008-06-29 23:55                       ` Isaac Dupree
2008-06-30  5:05                         ` Bean
2008-07-02 13:43                           ` Bean
2008-07-05 23:02                           ` Isaac Dupree
2008-07-06  4:31                             ` Bean
2008-07-08 16:16                               ` Isaac Dupree
2008-07-08 16:31                                 ` Bean
2008-07-12 14:41                                   ` Robert Millan
2008-07-12 15:16                                     ` Bean
2008-07-12 15:26                                       ` Bean
2008-07-12 17:10                                         ` Robert Millan
2008-07-12 18:05                                           ` Bean
2008-07-17  9:50                                             ` Bean
2008-07-17 15:02                                               ` Javier Martín
2008-07-17 15:18                                                 ` Bean
2008-07-17 15:28                                                   ` Pavel Roskin
2008-07-17 15:22                                                 ` Pavel Roskin
2008-07-17 15:26                                                   ` Bean
2008-07-17 15:45                                                     ` Javier Martín
2008-07-17 15:50                                                       ` Bean
2008-07-17 16:01                                                         ` Javier Martín [this message]
2008-07-17 16:17                                                           ` Pavel Roskin
2008-07-17 16:06                                                         ` Pavel Roskin
2008-07-17 16:17                                                           ` Javier Martín
2008-07-19 15:01                                             ` generic BIOS-less boot (Re: [PATCH] New x86_64 EFI patch) Robert Millan
2008-07-12 15:26                                       ` [PATCH] New x86_64 EFI patch Robert Millan
2008-07-12 15:37                                         ` Bean
2008-07-12 15:48                                           ` Bean
2008-06-25 12:59               ` Isaac Dupree
2008-07-03 18:11 ` Marco Gerards
2008-07-03 19:51   ` Bean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1216310516.21767.29.camel@localhost \
    --to=lordhabbit@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.