github.com/mvdan/u-root-coreutils@v0.0.0-20230122170626-c2eef2898555/cmds/exp/uefiboot/README.md (about)

     1  # How to build a UEFI payload
     2  
     3  *   Obtain edk2
     4  
     5  ```shell
     6  git clone --branch uefipayload --recursive https://github.com/linuxboot/edk2 uefipayload
     7  ```
     8  
     9  *   Follow setup instructions in
    10      [Get Started with EDK II](https://github.com/tianocore/tianocore.github.io/wiki/Getting-Started-with-EDK-II)
    11  
    12  *   build UEFI payload
    13  
    14  ```shell
    15  make -C BaseTools
    16  source edksetup.sh
    17  build -a X64 -p UefiPayloadPkg/UefiPayloadPkg.dsc -b DEBUG -t GCC5 -D BOOTLOADER=LINUXBOOT
    18  # payload will be in Build/UefiPayloadPkgX64/DEBUG_GCC5/FV/UEFIPAYLOAD.fd
    19  ```