HEV

The guideline to build UEFI firmware for Qemu of LoongArch

· hev
mkdir workspace; cd workspace

wget https://github.com/cross-tools/musl-cross/releases/latest/download/loongarch64-unknown-linux-musl.tar.xz
tar xf loongarch64-unknown-linux-musl.tgz

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

export PATH=${PWD}/loongarch64-unknown-linux-musl/bin:${PATH}
export PACKAGES_PATH=${PWD}/edk2
export GCC5_LOONGARCH64_PREFIX=loongarch64-unknown-linux-musl-

. edk2/edksetup.sh
make -C edk2/BaseTools
build -b RELEASE -t GCC5 -a LOONGARCH64  -p OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc

# Firmware file path: Build/LoongArchVirtQemu/RELEASE_GCC5/FV/QEMU_EFI.fd