Windows System Configuration: Microsoft Windows XP Professional Version 2002 Service Pack 3 *
I. Setup Build Environment
- Install Microsoft Visual Studio 2008* SP1 in the build machine and make sure that AMD64 complier was selected when installing.
- Download "iasl-win-20070508.zip" from http://www.acpica.org/downloads/Version_20070508.php" and extract file "iasl.exe" to C:\ASL
- Donwload WinDDK.3790.1830 from:
- http://download.microsoft.com/download/9/0/f/90f019ac-8243-48d3-91cf-81fc4093ecfd/1830_usa_ddk.iso and install WINDDK 3790.1830* at : C:\WINDDK\3790.1830 NOTE: Be certain to obtain version 3790.1830 of the WinDDK and none other
- NOTE: In the following steps substitue the name of the directory in which the UDK2010 build will be performed for the "C:\MyWorkspace." For example, if the build was to be performed in the directory "C:\UDK2010_UP3" then when directed to perform a step in directory "C:\MyWorkspace" substitue "C:\UDK2010_UP4" for "C:\MyWorkspace."
II. Extract Common Source Code
[UDK2010.UP4]
- Create a working space directory in the build machine, for example, C:\MyWorkspace
- Extract files in [UDK2010.UP4] the working space directory. In this case, it is C:\MyWorkspace. There are two BaseTools package one is for Windows system and another is for UNIX-Like system. Please make sure BaseTools(Windows).zip is used here.
- Extract files in [P.UDK2010.UP4.Network] one by one to the working space directory. Copy NetworkPkg to C:\MyWorkspace.
- Extract files in [P.UDK2010.UP4.SourceDebugging] one by one to the working space directory. Copy SourceDebuggingPkg to C:\MyWorkspace.
[UDK2010.SR1]
- Extract files in [UDK2010.SR1.MyWorkSpace.zip] to the working space directory (e.g C:). Note the Directory "MyWorkSpace" will be created as a result. In this case, it is C:\MyWorkspace.
- There are two BaseTools package one is for Windows system and another is for UNIX-Like system. Please make sure BaseTools(Windows)_UDK2010.SR1.zip is used here. Expand the appropriate BaseTools to C:\MyWorkSpace
III. Generate OpenSSL* Crypto Library
- Open file "C:\MyWorkspace\CryptoPkg\Library\OpensslLib\Patch-HOWTO.txt" and follow the instruction to install OpenSSL* for UEFI building.
- Download OpenSSL 0.9.8l from official website: http://www.openssl.org/source/openssl-0.9.8l.tar.gz NOTE: Some web browsers may rename the downloaded TAR file to openssl-0.9.8l.tar.tar. When you do the download, rename the "openssl-0.9.8l.tar.tar" to "openssl-0.9.8l.tar.gz" or rename the local downloaded file with ".tar.tar" extension to ".tar.gz".
- Extract TAR into CryptoPkg/Library/OpenSslLib/openssl-0.9.8l NOTE: If you use WinZip to unpack the openssl source in Windows, please uncheck the WinZip smart CR/LF conversion option (WINZIP: Options --> Configuration --> Miscellaneous --> "TAR file smart CR/LF conversion").
- Apply this patch: EDKII_openssl-0.9.8l.patch, and make installation
- Make sure the patch utility (patch.exe) has been installed in your machine at the following location: $(WORKSPACE)\CryptoPkg\Library\OpensslLib\openssl-0.9.8l Either install Cygwin or get the patch utility binary (patch.exe) from the following location: http://gnuwin32.sourceforge.net/packages/patch.htm
- Open a command prompt and enter the following commands in the exact order given - allowing each command to complete before entring the next command:
- NOTE: Win32, i.e. MS-Windows 95/98/ME/NT/2000/XP/2003/Vista with msvcrt.dll and msvcp60.dll. If msvcrt.dll or msvcp60.dll is not in your Windows/System folder, get them from Microsoft, or (msvcrt.dll only) by installing Internet Explorer 4.0 or higher.
cd $(WORKSPACE)\CryptoPkg\Library\OpensslLib\openssl-0.9.8l
patch -p0 -i ..\EDKII_openssl-0.9.8l.patch
cd ..
install.cmd
------------------------------------
IV. Build Steps
- Open a "Visual Studio 2008 Command Prompt", type command "cd C:\MyWorkspace" to enter the workspace directory, and then type command "edksetup" to initialize the working environment.
- Type below commands to build platforms "build -a IA32 -p Nt32Pkg\Nt32Pkg.dsc"
- Type below commands to build DUET IA32 platforms "build -a IA32 -p DuetPkg\DuetPkgIa32.dsc"
- Update TOOL_CHAIN_TAG in file Conf/target.txt: TOOL_CHAIN_TAG = VS2008
- Add -t build option in command line: "build -t VS2008 ... "
Please refer to tools_def.txt for all supported tool chains and detailed descriptions. (tools_def.txt will be generated at Conf directory after running "edksetup".)
沒有留言:
張貼留言