EDK2: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
FIx source excerpts
Save draft
Line 32:
git clone https://github.com/tianocore/edk2.git -b"stable/202011"
</source>
or whatever is appropriate at the time you are reading this. After that, we now must setupclone variousthe variables.submodules
<source lang="bash">
git submodule update --init
</source>
Then, we need to setup the environment for EDK2
<source lang="bash">
cd edk2
Line 43 ⟶ 47:
source edksetup.sh
</source>
The last step generates various configuration files and sets up some variables. Note that itedksetup.sh must be sourced, as thereits variables must persist.
Now we need to build the base tools
<source lang="bash">
make -C BaseTools
</source>
And lastly, we must actually build EDK2 using its Python build script.
<source lang="bash">
build -a YOUR_ARCH -t GCC5 -p YOUR_PACKAGE
</source>
YOUR_ARCH can be IA32, X64, AARCH64, or RISCV64. Note that not all packages compile for all architectures. YOUR_PACKAGE must point to a package in the source tree. If you want to build the UEFI library,