Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Compiling

Patrick Magauran edited this page Jan 5, 2022 · 6 revisions

Compiling

Ubuntu 20.04.2 LTS

  1. Make sure your system is fully up to date: sudo apt update && sudo apt upgrade
  2. 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
  3. Follow common instructions for linux

Fedora 32

  1. First update to the latest packages: sudo dnf update
  2. Install the requisite packages: sudo dnf install libuuid-devel iasl nasm clang lld-devel llvm-devel cmake automake
  3. Follow common Linux instructions

Common Linux Install

  1. 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
  2. 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)
  3. 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 run sudo make -C edk2/BaseTools/ then try again.
    • If the BaseTools Build gives errors such as -W-NoVlaParameter, remove -werror from edk2/BaseTools/Source/C/Makefiles/header.makefile - This applies for gcc versions >= 11

Using compiled version

  1. Use most of the commands and steps listed on the Using Page, BUT
    • Use the test script for gvt-g and the test-gvt-d.sh script for gvt-d
      • These scripts both build and run the software

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.