[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: building grub2 on a Mac, possible bug
From: |
Andrei Borzenkov |
Subject: |
Re: building grub2 on a Mac, possible bug |
Date: |
Mon, 27 Oct 2014 06:24:19 +0300 |
В Sun, 26 Oct 2014 21:00:18 -0600
Chris Murphy <address@hidden> пишет:
> This is on a macbookpro9,2, running Fedora 20, and I've git cloned from
> git://git.savannah.gnu.org/grub.git and I'm in master branch.
>
> $ ./configure
> 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
>
This is normal; I get the same on openSUSE and IIRC it had always been
the case.
> The unknown seems suspicious. And at the end I see "GRUB2 will be compiled
> with following components:
> Platform: i386-pc" which is also wrong.
>
Well ... short of checking for /sys/firmware/efi, how can we know we
may need efi build?
> If I use --with-platform=efi, then at the end I get "GRUB2 will be compiled
> with following components:
> Platform: x86_64-efi" which is correct.
>
> In the configure file I see this:
> # 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 ;;
> x86_64-apple) platform=efi ;;
>
> I guess $target_vendor isn't getting set to apple and therefore platform
> doesn't get set to efi.
You are running Linux, not OS X here, so $target_vendore cannot be
apple. It refers to OS vendor, not underlying hardware vendor.
>
>
> Chris Murphy
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel