Oliver Steffen 5f8b749c73 EmulatorPkg: CI: use ubuntu-22.04 vm_image (Linux only) | 1 jaar geleden | |
---|---|---|
.. | ||
Application | 2 jaren geleden | |
AutoScanPei | 2 jaren geleden | |
BootModePei | 2 jaren geleden | |
CpuRuntimeDxe | 2 jaren geleden | |
EmuBlockIoDxe | 2 jaren geleden | |
EmuBusDriverDxe | 2 jaren geleden | |
EmuGopDxe | 2 jaren geleden | |
EmuSimpleFileSystemDxe | 2 jaren geleden | |
EmuSnpDxe | 2 jaren geleden | |
EmuThunkDxe | 2 jaren geleden | |
FirmwareVolumePei | 2 jaren geleden | |
FlashMapPei | 2 jaren geleden | |
FvbServicesRuntimeDxe | 2 jaren geleden | |
Include | 1 jaar geleden | |
Library | 1 jaar geleden | |
PlatformCI | 1 jaar geleden | |
PlatformSmbiosDxe | 2 jaren geleden | |
RealTimeClockRuntimeDxe | 2 jaren geleden | |
ResetRuntimeDxe | 2 jaren geleden | |
Sec | 2 jaren geleden | |
ThunkPpiToProtocolPei | 2 jaren geleden | |
TimerDxe | 2 jaren geleden | |
Unix | 1 jaar geleden | |
Win | 1 jaar geleden | |
EmulatorPkg.ci.yaml | 1 jaar geleden | |
EmulatorPkg.dec | 1 jaar geleden | |
EmulatorPkg.dsc | 1 jaar geleden | |
EmulatorPkg.fdf | 3 jaren geleden | |
Readme.md | 4 jaren geleden | |
build.sh | 4 jaren geleden |
EmulatorPkg provides an environment where a UEFI environment can be emulated under an environment where a full UEFI compatible environment is not possible. (For example, running under an OS where an OS process hosts the UEFI emulation environment.)
https://github.com/tianocore/tianocore.github.io/wiki/EmulatorPkg
You can use the following command to build.
32bit emulator in Windows:
build -p EmulatorPkg\EmulatorPkg.dsc -t VS2017 -a IA32
64bit emulator in Windows:
build -p EmulatorPkg\EmulatorPkg.dsc -t VS2017 -a X64
32bit emulator in Linux:
build -p EmulatorPkg\EmulatorPkg.dsc -t GCC5 -a IA32
64bit emulator in Linux:
build -p EmulatorPkg\EmulatorPkg.dsc -t GCC5 -a X64
You can start/run the emulator using the following command:
32bit emulator in Windows:
cd Build\EmulatorIA32\DEBUG_VS2017\IA32\ && WinHost.exe
64bit emulator in Windows:
cd Build\EmulatorX64\DEBUG_VS2017\X64\ && WinHost.exe
32bit emulator in Linux:
cd Build/EmulatorIA32/DEBUG_GCC5/IA32/ && ./Host
64bit emulator in Linux:
cd Build/EmulatorX64/DEBUG_GCC5/X64/ && ./Host
On posix-like environment with the bash shell you can use EmulatorPkg/build.sh to simplify building and running emulator.
For example, to build + run:
$ EmulatorPkg/build.sh
$ EmulatorPkg/build.sh run
The build architecture will match your host machine’s architecture.
On X64 host machines, you can build + run IA32 mode as well:
$ EmulatorPkg/build.sh -a IA32
$ EmulatorPkg/build.sh -a IA32 run