2018-08-23 07:02:52 +02:00
|
|
|
## @file
|
|
|
|
# Entry Point of Win Emulator
|
|
|
|
#
|
|
|
|
# Main executable file of Win Emulator that loads Sec core after initialization finished.
|
2019-05-16 23:56:30 +02:00
|
|
|
# Copyright (c) 2008 - 2019, Intel Corporation. All rights reserved.<BR>
|
2018-08-23 07:02:52 +02:00
|
|
|
# Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>
|
2020-04-09 05:20:39 +02:00
|
|
|
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
|
2018-08-23 07:02:52 +02:00
|
|
|
#
|
2019-04-04 01:03:44 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2018-08-23 07:02:52 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[Defines]
|
|
|
|
INF_VERSION = 0x00010005
|
|
|
|
BASE_NAME = WinHost
|
|
|
|
FILE_GUID = 62E8F833-2B0A-4C19-A966-63C180588BE7
|
|
|
|
MODULE_TYPE = USER_DEFINED
|
|
|
|
VERSION_STRING = 1.0
|
|
|
|
|
|
|
|
#
|
|
|
|
# The following information is for reference only and not required by the build tools.
|
|
|
|
#
|
|
|
|
# VALID_ARCHITECTURES = IA32 X64
|
|
|
|
#
|
|
|
|
|
|
|
|
[Sources]
|
|
|
|
WinMemoryAllocationLib.c
|
2018-08-23 07:33:54 +02:00
|
|
|
WinGopInput.c
|
|
|
|
WinGopScreen.c
|
|
|
|
WinGop.h
|
2018-08-23 07:43:00 +02:00
|
|
|
WinFileSystem.c
|
2018-08-23 09:36:15 +02:00
|
|
|
WinBlockIo.c
|
2018-08-23 07:02:52 +02:00
|
|
|
WinThunk.c
|
|
|
|
WinHost.h
|
|
|
|
WinHost.c
|
2020-04-09 05:20:39 +02:00
|
|
|
WinPacketFilter.c
|
2018-08-23 07:02:52 +02:00
|
|
|
WinInclude.h
|
|
|
|
|
|
|
|
[Packages]
|
|
|
|
MdePkg/MdePkg.dec
|
|
|
|
MdeModulePkg/MdeModulePkg.dec
|
2020-04-09 05:20:39 +02:00
|
|
|
NetworkPkg/NetworkPkg.dec
|
2018-08-23 07:02:52 +02:00
|
|
|
EmulatorPkg/EmulatorPkg.dec
|
|
|
|
|
|
|
|
[LibraryClasses]
|
|
|
|
DebugLib
|
|
|
|
PcdLib
|
|
|
|
PrintLib
|
|
|
|
BaseMemoryLib
|
|
|
|
BaseLib
|
|
|
|
PeCoffLib
|
|
|
|
ThunkPpiList
|
|
|
|
ThunkProtocolList
|
|
|
|
PpiListLib
|
|
|
|
PeiServicesLib
|
2018-08-24 05:45:37 +02:00
|
|
|
FrameBufferBltLib
|
2018-08-23 07:02:52 +02:00
|
|
|
|
|
|
|
[Ppis]
|
|
|
|
gEmuThunkPpiGuid
|
|
|
|
|
2018-08-23 07:33:54 +02:00
|
|
|
[Protocols]
|
|
|
|
gEmuIoThunkProtocolGuid
|
|
|
|
gEmuGraphicsWindowProtocolGuid
|
2018-08-23 09:36:15 +02:00
|
|
|
gEmuBlockIoProtocolGuid
|
2018-08-23 07:43:00 +02:00
|
|
|
gEfiSimpleFileSystemProtocolGuid
|
2020-04-09 05:20:39 +02:00
|
|
|
gEmuSnpProtocolGuid
|
2018-08-23 07:43:00 +02:00
|
|
|
|
|
|
|
[Guids]
|
|
|
|
gEfiFileSystemVolumeLabelInfoIdGuid # SOMETIMES_CONSUMED
|
|
|
|
gEfiFileInfoGuid # SOMETIMES_CONSUMED
|
|
|
|
gEfiFileSystemInfoGuid # SOMETIMES_CONSUMED
|
|
|
|
|
2018-08-23 07:02:52 +02:00
|
|
|
[Pcd]
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdInitValueInTempStack
|
|
|
|
|
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuBootMode
|
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareVolume
|
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySize
|
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuFdBaseAddress
|
2018-08-23 09:36:15 +02:00
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuVirtualDisk
|
2018-08-23 07:33:54 +02:00
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window"
|
2018-08-23 07:43:00 +02:00
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuFileSystem
|
2018-08-23 07:02:52 +02:00
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage
|
2020-04-09 05:20:39 +02:00
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuNetworkInterface|L"0"
|
2018-08-23 07:02:52 +02:00
|
|
|
|
|
|
|
[BuildOptions]
|
2019-05-16 23:56:30 +02:00
|
|
|
MSFT:*_*_*_DLINK_FLAGS == /out:"$(BIN_DIR)\$(BASE_NAME).exe" /base:0x10000000 /pdb:"$(BIN_DIR)\$(BASE_NAME).pdb"
|
|
|
|
MSFT:*_*_*_CC_FLAGS == /nologo /W4 /WX /Gy /c /D UNICODE /Od /Oy- /FIAutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
|
|
|
|
MSFT:*_*_*_PP_FLAGS == /nologo /E /TC /FIAutoGen.h
|
2018-08-23 07:02:52 +02:00
|
|
|
|
2019-05-16 23:56:30 +02:00
|
|
|
MSFT:*_VS2015_IA32_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%Lib" /LIBPATH:"%VS2015_PREFIX%VC\Lib" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib vcruntimed.lib ucrtd.lib
|
|
|
|
MSFT:*_VS2015x86_IA32_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%Lib" /LIBPATH:"%VS2015_PREFIX%VC\Lib" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib vcruntimed.lib ucrtd.lib
|
2018-08-23 07:02:52 +02:00
|
|
|
MSFT:*_VS2017_IA32_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x86" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
2020-03-19 07:15:46 +01:00
|
|
|
MSFT:*_VS2019_IA32_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x86" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
2018-08-23 07:02:52 +02:00
|
|
|
MSFT:*_*_IA32_ASM_FLAGS == /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi
|
|
|
|
MSFT:*_*_IA32_ASMLINK_FLAGS == /link /nologo /tiny
|
|
|
|
|
2019-05-16 23:56:30 +02:00
|
|
|
MSFT:*_VS2015_X64_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%VC\Lib\AMD64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:AMD64 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
|
|
|
MSFT:*_VS2015x86_X64_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%VC\Lib\AMD64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:AMD64 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
2018-08-23 07:02:52 +02:00
|
|
|
MSFT:*_VS2017_X64_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:AMD64 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
2020-03-19 07:15:46 +01:00
|
|
|
MSFT:*_VS2019_X64_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:AMD64 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
2018-08-23 07:02:52 +02:00
|
|
|
MSFT:*_*_X64_ASM_FLAGS == /nologo /W3 /WX /c /Cx /Zd /W0 /Zi
|
|
|
|
MSFT:*_*_X64_ASMLINK_FLAGS == /link /nologo
|
2019-10-17 08:55:54 +02:00
|
|
|
|
2019-11-14 09:04:36 +01:00
|
|
|
GCC:*_CLANGPDB_X64_DLINK_FLAGS == /out:"$(BIN_DIR)\$(BASE_NAME).exe" /base:0x10000000 /pdb:"$(BIN_DIR)\$(BASE_NAME).pdb" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64" /LIBPATH:"%VCToolsInstallDir%lib\x64" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /OPT:REF /DEBUG /MACHINE:AMD64 Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib /lldmap /EXPORT:InitializeDriver=_ModuleEntryPoint
|
|
|
|
GCC:*_CLANGPDB_X64_CC_FLAGS == -m64 -g -fshort-wchar -fno-strict-aliasing -Wall -c -include AutoGen.h -D _CRT_SECURE_NO_WARNINGS -Wnonportable-include-path -D UNICODE -D _CRT_SECURE_NO_DEPRECATE
|
2019-10-17 08:55:54 +02:00
|
|
|
|
2019-11-14 09:04:36 +01:00
|
|
|
GCC:*_CLANGPDB_IA32_DLINK_FLAGS == /out:"$(BIN_DIR)\$(BASE_NAME).exe" /base:0x10000000 /pdb:"$(BIN_DIR)\$(BASE_NAME).pdb" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86" /LIBPATH:"%VCToolsInstallDir%ib\x86" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /OPT:REF /DEBUG /MACHINE:I386 Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib /lldmap /EXPORT:InitializeDriver=_ModuleEntryPoint
|
|
|
|
GCC:*_CLANGPDB_IA32_CC_FLAGS == -m32 -g -fshort-wchar -fno-strict-aliasing -Wall -c -include AutoGen.h -D _CRT_SECURE_NO_WARNINGS -Wnonportable-include-path -D UNICODE -D _CRT_SECURE_NO_DEPRECATE
|