Compiling - patmagauran/i915ovmfPkg GitHub Wiki
Compiling
Ubuntu 20.04.2 LTS
- Make sure your system is fully up to date:
sudo apt update && sudo apt upgrade
- Install the requisite libraries and software:
sudo apt install iasl nasm clang lld cmake automake build-essential uuid-dev git gcc python3-distutils python-is-python3
- Follow common instructions for linux
Fedora 32
- First update to the latest packages:
sudo dnf update
- Install the requisite packages:
sudo dnf install libuuid-devel iasl nasm clang lld-devel llvm-devel cmake automake
- Follow common Linux instructions
Common Linux Install
-
Download all the needed files and dependencies and setup the workspace.
mkdir i915dev cd i915dev/ git clone https://github.com/patmagauran/i915ovmfPkg.git git clone https://github.com/tianocore/edk2.git git clone https://github.com/tianocore/edk2-platforms.git cd edk2-platforms/ git submodule update --init cd ../edk2 git switch stable/202011 git submodule update --init cd .. mkdir Conf cp i915ovmfPkg/target.txt Conf/target.txt
-
Edit the
build.sh
file to use the newly created workspace.- Modify the
WORKSPACE
variable to point to your new folder(ex/home/USER/i915dev
)
- Modify the
-
Try to build the code:
sudo ./i915ovmfPkg/build.sh
- Note Sudo may be required for a variety of reasons.
- If you recieve an error about BaseTools, please navigate to the
WORKSPACE
folder and runsudo make -C edk2/BaseTools/
then try again. - If the BaseTools Build gives errors such as
-W-NoVlaParameter
, remove-werror
fromedk2/BaseTools/Source/C/Makefiles/header.makefile
- This applies for gcc versions >= 11
Using compiled version
- Use most of the commands and steps listed on the Using Page, BUT
- Use the
test
script for gvt-g and thetest-gvt-d.sh
script for gvt-d- These scripts both build and run the software
- Use the
Other Linux Distributions
It should be possible to compile and run this without much issue on other distributions of linux. However some dependencies and commands may be different.