From af3bdb452ae544dee38ccf7c589a68d3cc042ea1 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 16 Aug 2021 12:04:57 +0000 Subject: [PATCH] docs: amend CSM build instructions I found a few issues when following the instructions. Signed-off-by: Wei Liu --- docs/uefi.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/uefi.md b/docs/uefi.md index aa9a5bd63..f1243cacf 100644 --- a/docs/uefi.md +++ b/docs/uefi.md @@ -41,19 +41,20 @@ CSM is a module that allows to boot legacy operating systems using the OVMF firm ```shell sudo apt-get update -sudo apt-get install uuid-dev nasm iasl build-essential python3-distutils git +sudo apt-get install uuid-dev nasm iasl build-essential python3-distutils git libncurses-dev -git checkout https://github.com/cloud-hypervisor/seabios -b ch +git clone https://github.com/cloud-hypervisor/seabios -b ch cd seabios make menuconfig # Enable `CONFIG_CSM` and `CONFIG_QEMU_HARDWARE` +# Please make sure `python` is in your path make CONFIG_CSM=y CONFIG_QEMU_HARDWARE=y cd .. git clone https://github.com/cloud-hypervisor/edk2 -b ch cd edk2 . edksetup.sh -git submodule update --init +git submodule update --init --recursive cp ../seabios/out/Csm16.bin OvmfPkg/Csm/Csm16/ echo "ACTIVE_PLATFORM=OvmfPkg/OvmfCh.dsc" >> Conf/target.txt @@ -61,7 +62,7 @@ echo "TARGET_ARCH=X64" >> Conf/target.txt echo "TOOL_CHAIN_TAG=GCC5" >> Conf/target.txt make -C ./BaseTools -build +build -DCSM_ENABLE ```