Skip to content

Crosstool-NG config and patches for building a UEFI toolchain

Notifications You must be signed in to change notification settings

efidroid/crosstool-ng-uefi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

crosstool-ng project for UEFI

You'll have to use the latest master branch version of crosstool-ng. on Arch linux you can install crosstool-ng-git from the AUR, on other distros you'll have to clone, make and make install it according to the official instructions.

Configure:

ct-ng defconfig DEFCONFIG=configs/uefi_[GCCARCH]_defconfig
ct-ng menuconfig

Now navigate to C-Library > Target CFLAGS for newlib and extend it like this to add the required directories to the include path: -I /home/builduser/edk2/MdePkg/Include -I /home/builduser/edk2/MdePkg/Include/[EDKARCH] -I /home/builduser/EFIDroidLKLPkg/UEFIThreads/Include

/home/builduser/edk2 is the path to your EDK2 directory.

GCCARCH: See configs/ for a list of supported values

EDKARCH: Supported values:

  • Arm
  • X64

Compile:

ct-ng build

About

Crosstool-NG config and patches for building a UEFI toolchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published