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​


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM