This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
forked from HouQiming/i915ovmfPkg
-
-
Notifications
You must be signed in to change notification settings - Fork 23
Compiling
Patrick Magauran edited this page Jan 5, 2022
·
6 revisions
- 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
- 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
-
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
- 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
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.