On Wed, 2015-08-05 at 09:43 -0500, Scott Duplichan wrote:
> Here is how you can build Ovmf on Windows (tested with Win7 x64):
> 
> 1) Get edk2, including BaseTools\Bin\Win32. You are right, git doesn't
> work for getting the external BaseTools\Bin\Win32.
> 
> 2) Install Visual Studio 2008. EDK2 supports only a C: drive installation.
> EDK2 doesn't fully support installing multiple versions of Visual
> Studio.

OK.

> 3) Open a plain Windows command prompt (cmd.exe).
> 
> 4) Tell EDK2 where nasm is:
>    C:\tmp\edk2> set NASM_PREFIX=D:\edk2build\uefiTools\nasm211\

And where *is* nasm? I installed the Bin\Win32 tools as directed, but
it doesn't seem to be there.

So I downloaded a version and installed it, such that
%NASM_PREFIX%nasm.exe works.

I also installed IASL for good measure, although that wasn't mentioned
in the documentation I was looking at either.

> 5) Run Edk2Setup.bat:
> 
>    d:\tmp\edk2> Edk2Setup.bat
> 
>    Rebuilding of the tools is not required. Binaries of the latest,
>    tested versions of the tools have been tested and included in the
>    EDK II repository.
> 
>    If you really want to build the tools, use the --rebuild option.
> 
>    "!!! WARNING !!! No CYGWIN_HOME set, gcc build may not be used !!!"
> 
> 
>    
> #############################################################################
>        WORKSPACE            = d:\tmp\edk2
>        EDK_TOOLS_PATH       = d:\tmp\edk2\BaseTools
>        BASE_TOOLS_PATH      = d:\tmp\edk2\BaseTools
>    ############################## PATH 
> #########################################
>        d:\tmp\edk2\BaseTools\Bin\Win32
>        C:\Windows\system32
>        C:\Windows
>        C:\Windows\System32\Wbem
>        d:\util
> 
>    d:\tmp\edk2>

OK.

> 6) Add your openssl-1.0.2d files before building.
> 
> 7) Build using one of these command lines:
>    build.exe  -p OvmfPkg\OvmfPkgX64.dsc -b DEBUG -t VS2008x86 -n 16 -a X64 
> -DSECURE_BOOT_ENABLE -DFD_SIZE_2MB
>    build.exe  -p OvmfPkg\OvmfPkgIA32.dsc -b DEBUG -t VS2008x86 -n 16 -a IA32 
> -DSECURE_BOOT_ENABLE -DFD_SIZE_2MB
>    build.exe  -p OvmfPkg\OvmfPkgIA32X64.dsc -b DEBUG -t VS2008x86 -n 16 -a 
> IA32 -a X64 -DSECURE_BOOT_ENABLE -DFD_SIZE_2MB


> These instructions are for a 64-bit Windows version. For 32-bit,
> replace VS2008x86 with VS2008.

Aha, that was it. I was using VS2008 so was looking in "Program Files"
not "Program Files (x86)". Thanks.

Oh Windows, how I hate thee.

But at least I'd mostly solved the issues by building on a sane system
with MinGw64, and I only need to *test* under Windows/MSVC. Actually
having to do any real work in the Windows environment might have blown
my tiny little mind.

-- 
dwmw2

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to