2010-02-24 00:58:38 +01:00
|
|
|
## @file
|
2007-07-03 11:18:19 +02:00
|
|
|
# Entry Point of NT32 Emulator
|
|
|
|
#
|
|
|
|
# Main executable file of NT32 Emulator that loads PEI core after initialization finished.
|
|
|
|
#
|
2011-06-09 02:11:28 +02:00
|
|
|
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:18 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-07-03 11:18:19 +02:00
|
|
|
#
|
2010-02-24 00:58:38 +01:00
|
|
|
##
|
2007-07-03 11:18:19 +02:00
|
|
|
|
|
|
|
[Defines]
|
|
|
|
INF_VERSION = 0x00010005
|
|
|
|
BASE_NAME = SecMain
|
|
|
|
FILE_GUID = 4b837b03-6587-4d19-b82b-edfad836c0a0
|
2007-07-25 08:13:30 +02:00
|
|
|
MODULE_TYPE = USER_DEFINED
|
2007-07-03 11:18:19 +02:00
|
|
|
VERSION_STRING = 1.0
|
|
|
|
|
|
|
|
#
|
|
|
|
# The following information is for reference only and not required by the build tools.
|
|
|
|
#
|
|
|
|
# VALID_ARCHITECTURES = IA32
|
|
|
|
#
|
|
|
|
|
2010-01-30 00:30:55 +01:00
|
|
|
[Sources]
|
2007-07-03 11:18:19 +02:00
|
|
|
SecMain.h
|
|
|
|
WinNtThunk.c
|
|
|
|
FwVol.c
|
|
|
|
SecMain.c
|
2013-10-12 08:31:55 +02:00
|
|
|
|
|
|
|
[Sources.ia32]
|
2008-02-29 19:24:43 +01:00
|
|
|
Stack.asm
|
2007-07-03 11:18:19 +02:00
|
|
|
|
2013-10-12 08:31:55 +02:00
|
|
|
[Sources.x64]
|
|
|
|
StackX64.asm
|
|
|
|
|
2007-07-03 11:18:19 +02:00
|
|
|
[Packages]
|
|
|
|
MdePkg/MdePkg.dec
|
2007-07-27 18:55:19 +02:00
|
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
Nt32Pkg/Nt32Pkg.dec
|
2007-07-03 11:18:19 +02:00
|
|
|
|
|
|
|
[LibraryClasses]
|
|
|
|
DebugLib
|
|
|
|
PcdLib
|
|
|
|
PrintLib
|
|
|
|
BaseMemoryLib
|
|
|
|
BaseLib
|
|
|
|
PeCoffLib
|
2007-07-27 18:55:19 +02:00
|
|
|
ReportStatusCodeLib
|
2007-07-03 11:18:19 +02:00
|
|
|
|
|
|
|
[Ppis]
|
|
|
|
gNtPeiLoadFilePpiGuid # PPI ALWAYS_PRODUCED
|
|
|
|
gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
|
|
|
|
gNtFwhPpiGuid # PPI ALWAYS_PRODUCED
|
|
|
|
gPeiNtAutoScanPpiGuid # PPI ALWAYS_PRODUCED
|
|
|
|
gPeiNtThunkPpiGuid # PPI ALWAYS_PRODUCED
|
2008-02-29 19:24:43 +01:00
|
|
|
gEfiTemporaryRamSupportPpiGuid
|
2007-07-03 11:18:19 +02:00
|
|
|
|
2010-01-30 00:30:55 +01:00
|
|
|
[Pcd]
|
2007-08-30 11:11:54 +02:00
|
|
|
gEfiNt32PkgTokenSpaceGuid.PcdWinNtBootMode
|
2007-09-29 06:43:54 +02:00
|
|
|
gEfiNt32PkgTokenSpaceGuid.PcdWinNtFirmwareFdSize
|
2007-10-10 04:13:43 +02:00
|
|
|
gEfiNt32PkgTokenSpaceGuid.PcdWinNtMemorySizeForSecMain
|
|
|
|
gEfiNt32PkgTokenSpaceGuid.PcdWinNtFirmwareVolume
|
2017-11-02 03:59:15 +01:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdInitValueInTempStack
|
2015-12-22 02:01:31 +01:00
|
|
|
|
2010-02-24 00:58:38 +01:00
|
|
|
[BuildOptions]
|
2016-10-18 04:45:02 +02:00
|
|
|
MSFT:*_*_IA32_DLINK_FLAGS == /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"$(VCINSTALLDIR)\Lib" /LIBPATH:"$(VCINSTALLDIR)\PlatformSdk\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
|
|
|
|
MSFT:*_VS2015_IA32_DLINK_FLAGS == /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"$(VCINSTALLDIR)\Lib" /LIBPATH:"$(VCINSTALLDIR)\PlatformSdk\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 vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
|
|
|
MSFT:*_VS2015x86_IA32_DLINK_FLAGS == /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"$(VCINSTALLDIR)\Lib" /LIBPATH:"$(VCINSTALLDIR)\PlatformSdk\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 vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
2017-11-22 17:26:10 +01:00
|
|
|
MSFT:*_VS2017_IA32_DLINK_FLAGS == /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /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
|
2011-06-09 02:11:28 +02:00
|
|
|
MSFT:*_*_IA32_CC_FLAGS == /nologo /W4 /WX /Gy /c /D UNICODE /Od /FIAutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
|
|
|
|
MSFT:*_*_IA32_PP_FLAGS == /nologo /E /TC /FIAutoGen.h
|
2009-02-06 09:54:41 +01:00
|
|
|
MSFT:*_*_IA32_ASM_FLAGS == /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi
|
|
|
|
MSFT:*_*_IA32_ASMLINK_FLAGS == /link /nologo /tiny
|
2008-10-14 10:59:32 +02:00
|
|
|
|
2016-10-18 04:45:02 +02:00
|
|
|
MSFT:*_*_X64_DLINK_FLAGS == /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"$(VCINSTALLDIR)\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 Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
|
|
|
MSFT:*_VS2015_X64_DLINK_FLAGS == /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"$(VCINSTALLDIR)\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 == /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"$(VCINSTALLDIR)\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
|
2017-11-22 17:26:10 +01:00
|
|
|
MSFT:*_VS2017_X64_DLINK_FLAGS == /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /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
|
2013-10-12 08:31:55 +02:00
|
|
|
MSFT:*_*_X64_CC_FLAGS == /nologo /W4 /WX /Gy /c /D UNICODE /Od /FIAutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
|
|
|
|
MSFT:*_*_X64_PP_FLAGS == /nologo /E /TC /FIAutoGen.h
|
|
|
|
MSFT:*_*_X64_ASM_FLAGS == /nologo /W3 /WX /c /Cx /Zd /W0 /Zi
|
|
|
|
MSFT:*_*_X64_ASMLINK_FLAGS == /link /nologo
|
|
|
|
|
2009-02-06 09:54:41 +01:00
|
|
|
INTEL:*_*_IA32_DLINK_FLAGS == /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"C:\Program Files\Intel\Compiler\C++\9.1\IA32\Lib" /LIBPATH:"$(VCINSTALLDIR)\Lib" /LIBPATH:"$(VCINSTALLDIR)\PlatformSdk\Lib" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib
|
2011-06-09 02:11:28 +02:00
|
|
|
INTEL:*_*_IA32_CC_FLAGS == /nologo /W4 /WX /Gy /c /D UNICODE /Od /FIAutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
|
|
|
|
INTEL:*_*_IA32_PP_FLAGS == /nologo /E /TC /FIAutoGen.h
|
2009-02-06 09:54:41 +01:00
|
|
|
INTEL:*_*_IA32_ASM_FLAGS == /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi
|
|
|
|
INTEL:*_*_IA32_ASMLINK_FLAGS == /link /nologo /tiny
|