[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Make grub2 compile with Apple's gcc
From: |
Vladimir 'phcoder' Serbinenko |
Subject: |
Re: [PATCH] Make grub2 compile with Apple's gcc |
Date: |
Mon, 11 May 2009 18:30:02 +0200 |
On Mon, May 11, 2009 at 12:48 PM, Peter Cros <address@hidden> wrote:
>
> Hi,
> patches were applied with grub2 rev 2202, compiles and builds grub.efi in Mac
> OSX 10.5.6 , i686-apple-darwin9-gcc-4.0.1, with no errors, but fails to run
> grub.efi.
> ./configure --with-platform=efi --target=x86_64
> ./grub-mkimage -d . -o grubosx.efi appleldr boot cat cmp chain configfile crc
> date echo ext2 fixvideo fat fs_uuid gpt gptsync halt help hexdump hfs
> hfsplus iso9660 linux loopback loadbios lspci ls minicmd memrw ntfs pc pci
> reboot reiserfs read scsi sleep search sh video videotest xfs
> rEFIt then gives -
> Starting grubosx.efi
> and hangs there (i.e. before the Welcome to GRUB).
It's a bug in grub-mkimage - it inappropriately assumes that text is a
first segment. I'll fix it. Temporarily you can just comment out the
following line:
util/i386/efi/grub-mkimage.c: line 104: strcpy (kernel_image + sizeof
(Elf_Ehdr) + GRUB_KERNEL_MACHINE_PREFIX, prefix);
>
> Attempt to compile macho2img.c gave error, but is this needed for x86_64?
>
> On Mon, May 11, 2009 at 2:46 AM, Vladimir 'phcoder' Serbinenko
> <address@hidden> wrote:
>>
>> Hello. With this patch you can compile grub2 using Apple's gcc. Only
>> partially tested. You need objconv available from
>> http://www.agner.org/optimize/ licensed under GPL and additionally patched
>> with attached patch
>> Then you need to patch grub2 with attached patch. If you compile for
>> i386-pcbefore you begin you need to compile execute:
>> gcc -o macho2img util/macho2img.c -Iinclude
>> Then just compile grub2 normally. I will look how to automatise the
>> compilation of macho2img
>> --
>> Regards
>> Vladimir 'phcoder' Serbinenko
>>
>> _______________________________________________
>> Grub-devel mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
>
>
> --
> Cros (pxw)
>
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Regards
Vladimir 'phcoder' Serbinenko
- [PATCH] Make grub2 compile with Apple's gcc, Vladimir 'phcoder' Serbinenko, 2009/05/10
- Re: [PATCH] Make grub2 compile with Apple's gcc, Peter Cros, 2009/05/11
- Re: [PATCH] Make grub2 compile with Apple's gcc,
Vladimir 'phcoder' Serbinenko <=
- Re: [PATCH] Make grub2 compile with Apple's gcc, Vladimir 'phcoder' Serbinenko, 2009/05/11
- Re: [PATCH] Make grub2 compile with Apple's gcc, step21, 2009/05/11
- Re: [PATCH] Make grub2 compile with Apple's gcc, Vladimir 'phcoder' Serbinenko, 2009/05/11
- Re: [PATCH] Make grub2 compile with Apple's gcc, Peter Cros, 2009/05/11
- Re: [PATCH] Make grub2 compile with Apple's gcc, Peter Cros, 2009/05/12
- Re: [PATCH] Make grub2 compile with Apple's gcc, step21, 2009/05/12
- Re: [PATCH] Make grub2 compile with Apple's gcc, Bean, 2009/05/12
- Re: [PATCH] Make grub2 compile with Apple's gcc, step21, 2009/05/12
- Re: [PATCH] Make grub2 compile with Apple's gcc, Vladimir 'phcoder' Serbinenko, 2009/05/16
Re: [PATCH] Make grub2 compile with Apple's gcc, Vladimir 'phcoder' Serbinenko, 2009/05/16