Build UEFI for QEMU-AARCH64

1. Download and compiler the QEMU after 2.2

     git clone https://github.com/qemu/qemu.git

2. Build a aarch64-softmmu

3. Get EDK2 cod

     git clone https://github.com/tianocore/edk2.git

4. setup a cross compiler enviroment

5. build in UEFI code directory

source edksetup.sh
export GCC48_AARCH64_PREFIX=aarch64-linux-gnu-

make -C BaseTools

build -a AARCH64 -t GCC48 -p ArmVirtPkg/ArmVirtQemu.dsc

6. you will fied firmware image from below

Build/ArmVirtQemu-AARCH64/DEBUG_GCC48/FV/QEMU_EFI.fd

7. UEFI Secure Boot

​build -a AARCH64 -t GCC48 -p ArmVirtPkg/ArmVirtQemu.dsc \
    -D SECURE_BOOT_ENABLE​

posted @ 2019-01-20 03:04  lyan_tech  阅读(1805)  评论(0编辑  收藏  举报