With these 3 patches you can boot the EFI shell X64 Ovmf on Mac OS X using 
Xcode 5.
[edk2] [OvmfPkg][Review] Use XCODE5 toolchain for current and future OS X 
versions
[edk2] [SourceLevelDebugPkg] Code review: Compile/link with clang/Xcode 5
[UefiCpuPkg][CpuExceptionHandlerLib] Make self modifying code work with Xcode

OvmfPkg/build.sh -a X64
OvmfPkg/build.sh -a X64 qemu -debugcon file:debug.log -global 
isa-debugcon.iobase=0x402  -monitor stdio -no-reboot -no-shutdown -s -singlestep

I was forced to install nasm, and you MUST set NASM_PREFIX to the install 
location of nasm. Xcode ships with a very old version of nasm in /usr/bin/nasm.

You get errors trying to assemble the SEC with the Xcode nasm (It looks like it 
is missing some needed features).
Ia32/Flat32ToFlat64.asm:38: warning: numeric constant 0x100000000 does not fit 
in 32 bits
Ia32/Flat32ToFlat64.asm:39: error: `64' is not a valid segment size; must be 16 
or 32
Ia16/Real16ToFlat32.asm:40: warning: numeric constant 0x100000000 does not fit 
in 32 bits
Ia16/Real16ToFlat32.asm:62: warning: numeric constant 0x100000000 does not fit 
in 32 bits
Main.asm:78: error: `64' is not a valid segment size; must be 16 or 32

Thanks,

Andrew Fish

PS. Sorry I omitted Contributed-under, and Signed-off-by from some of the patch 
mails. It has been a long week.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Anderw Fish <[email protected]>

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to