Skip to content

Building

Curi0 edited this page Nov 5, 2022 · 13 revisions

ReBarDxe

Linux

pip install pefile
git clone https://github.com/tianocore/edk2.git
cd edk2
git submodule update --init
make -C BaseTools
source ./edksetup.sh

Edit Conf/target.txt

TARGET = RELEASE
TARGET_ARCH           = X64
TOOL_CHAIN_TAG        = GCC5 # change this if you want to use Clang
git clone https://github.com/xCuri0/ReBarUEFI.git
cd ReBarUEFI/ReBarDxe
python3 ./buildffs.py

FFS file will be found in ./Build/ReBarUEFI/RELEASE_GCC5/X64/. Note that the Linux build may have less compatibility with some UEFI firmware than the Windows build. For this reason the version found in Releases is built on Windows 10 with Visual Studio 2022.

Windows

Install Git and Python 3, make sure they are in your PATH. Use x86 Native Tools Command Prompt for Visual Studio instead of the regular command prompt.

pip install pefile
git clone https://github.com/tianocore/edk2.git
cd edk2
git submodule update --init
edksetup.bat Rebuild

Edit Conf/target.txt

TARGET = RELEASE
TARGET_ARCH           = X64
TOOL_CHAIN_TAG        = VS2019 # works with Visual Studio 2022 too. EDK2 doesn't support 2022 officially atm.
git clone https://github.com/xCuri0/ReBarUEFI.git
cd ReBarUEFI/ReBarDxe
python3 ./buildffs.py

FFS file will be found in ./Build/ReBarUEFI/RELEASE_VS2019/X64/.

ReBarState

Linux

git clone https://github.com/xCuri0/ReBarUEFI.git
cd ReBarUEFI/ReBarState
mkdir build
cd build
cmake ..
make

ReBarState executable will be found in build folder.

Windows

Clone ReBarUEFI and open the ReBarState folder in Visual Studio (with CMake support installed). You should then be able to build it using Visual Studio.