[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] x86_64 EFI support for grub2
From: |
Bean |
Subject: |
[PATCH] x86_64 EFI support for grub2 |
Date: |
Thu, 29 May 2008 13:52:15 +0800 |
Hi,
This patch add a new platform x86_64 EFI, it's used in the new "Santa
Rosa" generation of MacBooks.
You can compile it from 32-bit or 64-bit machine:
./configure --target=x86_64 --with-platform=efi
make
In 32-bit machine, the *.mod files are 64-bit, but tools like
grub-mkimage is still 32-bit, so that you can create the efi image in
your native environment and deploy it in 64-bit machine.
To create the original 32-bit EFI image: (hopefully I don't break anything)
./configure --target=i386 --with-platform=efi
make
Please note that if you want to cross compile between 64-bit and
32-bit, you need to install the gcc-multilib package.
To create the efi image, use grub-mkimage:
grub-mkimage -d . -o grub2.efi gpt normal hfsplus ext2 fat ls
TODO:
There is some problem with loaders, other function seems ok.
Also, I currently use GRUB_TARGET_SIZEOF_VOID_P to distingish between
i386 and x86_64, but it should be more specific, otherwise it can't
coexist with other 64-bit platform like ia64. Is there some auto
generated macro in autoconf, or do I need to define some ?
--
Bean
efi.diff
Description: Text document
- [PATCH] x86_64 EFI support for grub2,
Bean <=