SourceForge to Github Quick Start - jljusten/tianocore GitHub Wiki
GitHub Help
GitHub (https://help.github.com/index.html) provides step-by-step instructions for user registration and basic features supported by GitHub.
GitHub EDK II Project Repositories
The EDK II project repository is available at https://github.com/tianocore/edk2.
Prebuilt Windows tools are available at https://github.com/tianocore/edk2-BaseTools-win32.
Please note that FatPkg is now included in the EDKII project repository, as of April 2016. Previously the FatPkg was in an independent repository which can be found at https://github.com/tianocore/edk2-FatPkg.
Content that is not released under an accepted open source license can be found at https://github.com/tianocore/edk2-non-osi.
How to Setup the EDK II Tree
Note: Some of the following examples use the Multiple Workspace feature to configure the EDK II BaseTools. More information on the Multiple Workspace feature can be found at the following location.
Linux Support
For EDKII project developers:
- Clone the EDK II project repository
- git clone https://github.com/tianocore/edk2
- Change to the edk2 directory
- Build the tools
- make -C BaseTools
- Run the edksetup.sh script
- . edksetup.sh
When the above steps are done, you can work in the edk2 directory for code development.
For FatPkg developers:
- Create a workspace directory
- Change to the workspace directory
- Clone the EDK II project repository
- git clone https://github.com/tianocore/edk2
- Clone the edk2-FatPkg repository to โFatPkgโ
- git clone https://github.com/tianocore/edk2-FatPkg FatPkg
- Build the tools
- make -C edk2/BaseTools
- Set environment variables
- WORKSPACE โ The workspace directory created above
- PACKAGES_PATH โ Set it to $WORKSPACE/edk2
Example:
export WORKSPACE=/Sample/Path
export PACKAGES_PATH=$WORKSPACE/edk2
- Run the edksetup.sh script
- . edk2/edksetup.sh
When the above steps are done, the directory structure will look like:
Sample
โโโโPath (WORKSPACE)
โโโโedk2
โโโโFatPkg
Windows Support
For EDKII project developers:
- Create a workspace directory
- Change to the workspace directory
- Clone the EDK II project repository
- git clone https://github.com/tianocore/edk2
- Clone the edk2-BaseTools-win32 repository
- Set environment variables:
- EDK_TOOLS_BIN โ Set it as the edk2-BaseTools-win32 directory
Example:
set EDK_TOOLS_BIN=c:\efi\test\edk2-BaseTools-win32
- Change to the edk2 directory
- Run the edksetup.bat script
When the above steps are done, the directory structure will look like:
efi
โโโโtest (WORKSPACE)
โโโโedk2
โโโโedk2-BaseTools-win32
For FatPkg developers:
- Create a workspace directory
- Change to the workspace directory
- Clone the EDK II project repository
- git clone https://github.com/tianocore/edk2
- Clone the edk2-BaseTools-win32 repository
- Clone the edk2-FatPkg repository to โFatPkgโ
- git clone https://github.com/tianocore/edk2-FatPkg FatPkg
- Set environment variables:
- WORKSPACE โ The workspace directory created above
- PACKAGES_PATH โ Set it to %WORKSPACE%\edk2
- EDK_TOOLS_BIN โ Set it to %WORKSPACE%\edk2-BaseTools-win32
Example:
set WORKSPACE=c:\efi\test
set PACKAGES_PATH=%WORKSPACE%\edk2
set EDK_TOOLS_BIN=%WORKSPACE%\edk2-BaseTools-win32
- Run the edksetup.bat script
- edk2\edksetup.bat
When the above steps are done, the directory structure will look like:
efi
โโโโtest (WORKSPACE)
โโโโedk2
โโโโedk2-BaseTools-win32
โโโโFatPkg
Please keep in mind that the EDK II project, FatPkg and edk2-BaseTools-win32 are independent Git repositories. Each of these repositories must be updated individually.
Development Process for the EDK II Project
The process is documented on the EDK II Development Process page.