grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

building grub2 on a Mac, possible bug


From: Chris Murphy
Subject: building grub2 on a Mac, possible bug
Date: Sun, 26 Oct 2014 21:00:18 -0600

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

The unknown seems suspicious. And at the end I see "GRUB2 will be compiled with 
following components:
Platform: i386-pc" which is also wrong. 

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.


Chris Murphy


reply via email to

[Prev in Thread] Current Thread [Next in Thread]