mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
docs: amend CSM build instructions
I found a few issues when following the instructions. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
+5
-4
@@ -41,19 +41,20 @@ CSM is a module that allows to boot legacy operating systems using the OVMF firm
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt-get update
|
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
|
cd seabios
|
||||||
make menuconfig
|
make menuconfig
|
||||||
# Enable `CONFIG_CSM` and `CONFIG_QEMU_HARDWARE`
|
# Enable `CONFIG_CSM` and `CONFIG_QEMU_HARDWARE`
|
||||||
|
# Please make sure `python` is in your path
|
||||||
make CONFIG_CSM=y CONFIG_QEMU_HARDWARE=y
|
make CONFIG_CSM=y CONFIG_QEMU_HARDWARE=y
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
git clone https://github.com/cloud-hypervisor/edk2 -b ch
|
git clone https://github.com/cloud-hypervisor/edk2 -b ch
|
||||||
cd edk2
|
cd edk2
|
||||||
. edksetup.sh
|
. edksetup.sh
|
||||||
git submodule update --init
|
git submodule update --init --recursive
|
||||||
cp ../seabios/out/Csm16.bin OvmfPkg/Csm/Csm16/
|
cp ../seabios/out/Csm16.bin OvmfPkg/Csm/Csm16/
|
||||||
|
|
||||||
echo "ACTIVE_PLATFORM=OvmfPkg/OvmfCh.dsc" >> Conf/target.txt
|
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
|
echo "TOOL_CHAIN_TAG=GCC5" >> Conf/target.txt
|
||||||
|
|
||||||
make -C ./BaseTools
|
make -C ./BaseTools
|
||||||
build
|
build -DCSM_ENABLE
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user