2014年7月8日 星期二

How to use Visual Studio to compile EDKII packages

Before doing this task, please make sure that you can compile EDKII packages with your own work space.



1.  Create a new folder for your own package:
2.  Create and modify .dsc and .dec files for your package.
3.  Create a new folder in your package for applications or anything else you want to build in your package.
4.  Create all files for your own modules such as:


5.  Create a batch file for compiling your package like:



     And the following script is used to do some compiler tasks like "Build", "Build All" or "Clean":

 call %CD%\..\edksetup.bat reconfig  
 if not "%1"=="" goto ALL  
 build -a X64 -p MyPkg\MyPkg.dsc --log=build.log  
 goto end  
 :ALL  
 if not "%1"=="all" goto CLEAN  
 ECHO ALL  
 build %1 -p MyPkg\MyPkg.dsc --log=build.log  
 goto end  
 :CLEAN  
 if not "%1"=="clean" goto X86  
 ECHO CLEAN  
 build %1 -p MyPkg\MyPkg.dsc --log=build.log  
 echo %1  
 goto end  
 :X86  
 if not "%1"=="32" goto X64  
 ECHO Build X86  
 build -a IA32 -p MyPkg\MyPkg.dsc --log=build.log  
 goto end  
 :X64  
 if not "%1"=="64" goto other  
 ECHO Build X64  
 build -a X64 -p MyPkg\MyPkg.dsc --log=build.log  
 goto end  
 :other  
 echo ERROR ! Input variable  
 goto end  
 :end  

6. New a Project:

     And select the type of "Visaul C++":

     Select the project file location and choose all type of files in your project:


     Select building method:


     Type building commands as below:

Done!

Now you can compile your EDKII package by visaul studio IDE.

2014年5月25日 星期日

[UEFI][EDK][EDK II] Related Document and Development Tool Kit Download

[UEFI]


UEFI Related Spec List:
1. Unified Extensible Firmware Interface Specification - Revision 2.3
2. Unified Extensible Firmware Interface Specification Version 2.3.1, Errata C
3. Unified Extensible Firmware Interface Specification Version 2.4 Errata A
4. Unified Extensible Firmware Interface Specification Version 2.4 Errata B
5. Driver Writer's Guide for UEFI 2.3.1
6. UEFI Shell Specification Revision 2.0 Errata A
7. Platform Initialization (PI) Specification 1.2.1 (Volume 1~Volume 5)
8. Platform Initialization (PI) Specification 1.2.1 ErrataA  (Volume 1~Volume 5)
9. Platform Initialization (PI) Specification 1.3  (Volume 1~Volume 5)
10. Distribution Package 1.0
11. UEFI SCT 2.3.1c
Download Link

UEFI Trainning:
Download Link

[EDK]


EDK Related Spec List:
1. EDK Getting Started Guide
2. EDK Build Document
3. Tiano Setup Design Guide
4. EDK Reference Manual
5. EBC Debugger User Manual
6. EDK R8.x Build-R.5
7. EFI 1.10 Driver Writer's Guide
8. EFI Driver Library Specification
9. EFI Shell Developer's Guide
10. EFI Shell User's Guide
11. Shell Command Reference ManualEchoClient
Download Link

Development Tool Kit:
1. EDK 1.06
2. EFI Shell 1.06
3. EFI Tool Kit 2.0.0.1
Download Link

EDK Sample Code:
1. HelloWorld
2. ConTest
3. EchoClient
4. EchoServer
5. EdbCfg
6. MemTest
7. PciIoTest
Download Link

[EDK II]


EDK II Related Spec List:
1. EDKII User Manual 0.7
2. EDK II Build Specification 1.22 Errata B
3. EDK II Build Specification 1.22 Errata D
4. EDK II C Coding Standards Specification 0.53
5. EDK II Glue Library Programming Guide 0.9
6. EDK 2.0 Module Development Environment Library 0.6
7. EDK II Module Writer's Guide 0.7
8. EDK II Module Information (INF) File Specification 1.22 Errata B
9. EDK II Package Declaration (DEC) File Format Specification 1.22 Errata B
10. EDK II Platform Description (DSC) File Specification 1.22 Errata C
11. EDK II platform Configuration Database (PCD) Infrastructure Description 0.55
12. VFR Programming Language 1.7
13. EDK II Flash Description (FDF) File Specification 1.22 Errata B
14. How-to Create a Visual Studio Solution from UDK2010 code
15. EDK II SMM call topologySMBASE RelocationSMI HandlerSMI Exception Handler
Download Link

UEFI Driver Wizard:
Download Link

[UDK]


1. UDK2010.SR1.UP1.Complete.MyWorkSpace
2. UDK2014.Complete.MyWorkSpace
3. EadkPkg Beta 1.02
4. UDK Debugger Tool 1.4-Windows
5. UDK Debugger Tool 1.4-Linux
6. Intel® UEFI Development Kit Debugger Tool User Manual Version 1.8
7. Intel® UEFI Development Kit Debugger Tool Configuration and Setup Guide Version 1.10
Download Link

[Intel]


1. Intel® 64 and IA-32 Architectures Software Developer's Manual Combined Volumes 1, 2A, 2B, 2C, 3A, 3B and 3C
2. Intel® 64 and IA-32 Architectures Software Developer's Manual Documentation Changes
3. Inte3 IA-64 Assembly language Reference Guide
4. Platform Innovation Framework
5. Intel® Platform Innovation Framework for EFI Firmware Volume Specification
Download Link

[Others]


1. Microsoft Portable Executable and Common Object File Format Specification v83
Download Link

[Industry Standard]

1. System Management BIOS (SMBIOS) Reference Specification 2.7.1
2. Advanced Configuration and Power Interface (ACPI) Specification 5.0
3. ACPI Component Architecture User Guide and Programmer Reference 5.13
4. ACPI Implementers Guide