HEV

The guideline to build UEFI firmware for Qemu of LoongArch

· hev
mkdir workspace; cd workspace

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

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

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

. edk2/edksetup.sh
make -C edk2/BaseTools
build -b RELEASE -t GCC5 -a LOONGARCH64  -p Platform/Loongson/LoongArchQemuPkg/Loongson.dsc

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