Home | History | Annotate | Download | only in Nt32Pkg
      1 ## @file

      2 # EFI/Framework Emulation Platform with UEFI HII interface supported.

      3 #

      4 # The Emulation Platform can be used to debug individual modules, prior to creating

      5 #    a real platform. This also provides an example for how an DSC is created.

      6 #

      7 # Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>

      8 # Copyright (c) 2015, Hewlett-Packard Development Company, L.P.<BR>

      9 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>

     10 #

     11 #    This program and the accompanying materials

     12 #    are licensed and made available under the terms and conditions of the BSD License

     13 #    which accompanies this distribution. The full text of the license may be found at

     14 #    http://opensource.org/licenses/bsd-license.php

     15 #

     16 #    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

     17 #    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

     18 #

     19 ##

     20 
     21 ################################################################################

     22 #

     23 # Defines Section - statements that will be processed to create a Makefile.

     24 #

     25 ################################################################################

     26 [Defines]
     27   PLATFORM_NAME                  = NT32
     28   PLATFORM_GUID                  = EB216561-961F-47EE-9EF9-CA426EF547C2
     29   PLATFORM_VERSION               = 0.4
     30   DSC_SPECIFICATION              = 0x00010005
     31   OUTPUT_DIRECTORY               = Build/NT32$(ARCH)
     32   SUPPORTED_ARCHITECTURES        = IA32|X64
     33   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT
     34   SKUID_IDENTIFIER               = DEFAULT
     35   FLASH_DEFINITION               = Nt32Pkg/Nt32Pkg.fdf
     36   #

     37   # This flag is to control tool to generate PCD info for dynamic(ex) PCD,

     38   # then enable or disable PCD info feature. TRUE is enable, and FLASE is disable.

     39   # If the flag is absent, it will be same as FALSE.

     40   #

     41   PCD_INFO_GENERATION            = TRUE
     42 
     43   #

     44   # Defines for default states.  These can be changed on the command line.

     45   # -D FLAG=VALUE

     46   #

     47   # Note: Secure Boot feature highly depends on the OpenSSL building. To enable this 

     48   #       feature, please follow the instructions found in the file "Patch-HOWTO.txt" 

     49   #       located in CryptoPkg\Library\OpensslLib to enable the OpenSSL building first.

     50   #

     51   DEFINE SECURE_BOOT_ENABLE      = FALSE
     52   
     53   #

     54   # This flag is to enable or disable TLS feature.  

     55   # These can be changed on the command line.

     56   # -D FLAG=VALUE

     57   #

     58   # Note: TLS feature highly depends on the OpenSSL building. To enable this 

     59   #       feature, please follow the instructions found in the file "Patch-HOWTO.txt" 

     60   #       located in CryptoPkg\Library\OpensslLib to enable the OpenSSL building first.

     61   #

     62   DEFINE TLS_ENABLE      = FALSE
     63 
     64 ################################################################################

     65 #

     66 # SKU Identification section - list of all SKU IDs supported by this

     67 #                              Platform.

     68 #

     69 ################################################################################

     70 [SkuIds]
     71   0|DEFAULT              # The entry: 0|DEFAULT is reserved and always required.

     72 
     73 ################################################################################

     74 #

     75 # Library Class section - list of all Library Classes needed by this Platform.

     76 #

     77 ################################################################################

     78 [LibraryClasses]
     79   #

     80   # Entry point

     81   #

     82   PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
     83   PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
     84   DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
     85   UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
     86   UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
     87   #

     88   # Basic

     89   #

     90   BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
     91   SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
     92   PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
     93   CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
     94   IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
     95   PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
     96   PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
     97   PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
     98   CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
     99   PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
    100   PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
    101   SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
    102   #

    103   # UEFI & PI

    104   #

    105   UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
    106   UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
    107   UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
    108   UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
    109   UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
    110   HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
    111   DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
    112   UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
    113   PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
    114   PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
    115   DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
    116   DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
    117   UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
    118   FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
    119   
    120   #

    121   # Generic Modules

    122   #

    123   UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
    124   UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
    125   NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
    126   IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
    127   UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
    128   HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
    129   DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
    130   OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
    131   GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
    132   CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
    133   SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
    134   TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
    135   SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
    136   CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
    137   BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
    138   #

    139   # Platform

    140   #

    141   PlatformBootManagerLib|Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
    142   #

    143   # Misc

    144   #

    145   DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
    146   DebugPrintErrorLevelLib|MdeModulePkg/Library/DxeDebugPrintErrorLevelLib/DxeDebugPrintErrorLevelLib.inf
    147   PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
    148   DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
    149   CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
    150   LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
    151   IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
    152   OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
    153   
    154 !if $(SECURE_BOOT_ENABLE) == TRUE
    155   PlatformSecureLib|Nt32Pkg/Library/PlatformSecureLib/PlatformSecureLib.inf
    156   TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
    157   AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
    158 !else
    159   TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
    160   AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
    161 !endif
    162   VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
    163 
    164 [LibraryClasses.common.USER_DEFINED]
    165   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
    166   PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
    167   ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
    168   OemHookStatusCodeLib|Nt32Pkg/Library/PeiNt32OemHookStatusCodeLib/PeiNt32OemHookStatusCodeLib.inf
    169   MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
    170   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
    171 
    172 [LibraryClasses.common.PEIM,LibraryClasses.common.PEI_CORE]
    173   #

    174   # PEI phase common

    175   #

    176   HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
    177   MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
    178   ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
    179   ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
    180   BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptPei/BaseMemoryLibOptPei.inf
    181   IoLib|MdePkg/Library/PeiIoLibCpuIo/PeiIoLibCpuIo.inf
    182   PeCoffGetEntryPointLib|Nt32Pkg/Library/Nt32PeiPeCoffGetEntryPointLib/Nt32PeiPeCoffGetEntryPointLib.inf
    183   PeCoffExtraActionLib|Nt32Pkg/Library/PeiNt32PeCoffExtraActionLib/PeiNt32PeCoffExtraActionLib.inf
    184   DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
    185 
    186 [LibraryClasses.common.PEI_CORE]
    187   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
    188   OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
    189 
    190 [LibraryClasses.common.PEIM]
    191   PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
    192   OemHookStatusCodeLib|Nt32Pkg/Library/PeiNt32OemHookStatusCodeLib/PeiNt32OemHookStatusCodeLib.inf
    193   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
    194 
    195 [LibraryClasses.common]
    196   #

    197   # DXE phase common

    198   #

    199   BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
    200   HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
    201   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
    202   MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
    203   ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
    204   OemHookStatusCodeLib|Nt32Pkg/Library/DxeNt32OemHookStatusCodeLib/DxeNt32OemHookStatusCodeLib.inf
    205   PeCoffExtraActionLib|Nt32Pkg/Library/DxeNt32PeCoffExtraActionLib/DxeNt32PeCoffExtraActionLib.inf
    206   ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
    207   WinNtLib|Nt32Pkg/Library/DxeWinNtLib/DxeWinNtLib.inf
    208   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
    209   TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
    210 
    211 [LibraryClasses.common.DXE_CORE]
    212   HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
    213   MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
    214   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
    215 
    216 [LibraryClasses.common.DXE_SMM_DRIVER]
    217   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
    218 
    219 [LibraryClasses.common.UEFI_DRIVER]
    220   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
    221 
    222 [LibraryClasses.common.UEFI_APPLICATION]
    223   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
    224   PrintLib|MdeModulePkg/Library/DxePrintLibPrint2Protocol/DxePrintLibPrint2Protocol.inf
    225   
    226 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
    227   #

    228   # Runtime

    229   #

    230   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
    231 
    232 ################################################################################

    233 #

    234 # Pcd Section - list of all EDK II PCD Entries defined by this Platform

    235 #

    236 ################################################################################

    237 [PcdsFeatureFlag]
    238   gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
    239   gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
    240   gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplBuildPageTables|FALSE
    241   gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst|FALSE
    242   gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics|TRUE
    243 
    244 [PcdsFixedAtBuild]
    245   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|0x0
    246   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizePopulateCapsule|0x0
    247   gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000040
    248   gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x1f
    249   gEfiNt32PkgTokenSpaceGuid.PcdWinNtFirmwareVolume|L"..\\Fv\\Nt32.fd"
    250   gEfiNt32PkgTokenSpaceGuid.PcdWinNtFirmwareBlockSize|0x10000
    251   gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f
    252   gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
    253 !if $(SECURE_BOOT_ENABLE) == TRUE || $(TLS_ENABLE) == TRUE
    254   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
    255 !endif
    256 
    257 !ifndef $(USE_OLD_SHELL)
    258   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
    259 !endif
    260 
    261 !if $(SECURE_BOOT_ENABLE) == TRUE
    262   # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot

    263   gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
    264   gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
    265   gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
    266 !endif
    267                         
    268   gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
    269 
    270 
    271 ################################################################################

    272 #

    273 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform

    274 #

    275 ################################################################################

    276 [PcdsDynamicDefault.common.DEFAULT]
    277   gEfiNt32PkgTokenSpaceGuid.PcdWinNtSerialPort|L"COM1!COM2"|VOID*|20
    278   gEfiNt32PkgTokenSpaceGuid.PcdWinNtGop|L"UGA Window 1!UGA Window 2"|VOID*|52
    279   gEfiNt32PkgTokenSpaceGuid.PcdWinNtConsole|L"Bus Driver Console Window"|VOID*|52
    280   gEfiNt32PkgTokenSpaceGuid.PcdWinNtVirtualDisk|L"FW;40960;512"|VOID*|26
    281   gEfiNt32PkgTokenSpaceGuid.PcdWinNtMemorySize|L"64!64"|VOID*|12
    282   gEfiNt32PkgTokenSpaceGuid.PcdWinNtPhysicalDisk|L"a:RW;2880;512!d:RO;307200;2048!j:RW;262144;512"|VOID*|100
    283   gEfiNt32PkgTokenSpaceGuid.PcdWinNtUga|L"UGA Window 1!UGA Window 2"|VOID*|52
    284 
    285   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
    286   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
    287   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0
    288   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
    289   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
    290   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
    291 
    292 [PcdsDynamicDefault.Ia32]
    293   gEfiNt32PkgTokenSpaceGuid.PcdWinNtFileSystem|L".!..\..\..\..\EdkShellBinPkg\Bin\Ia32\Apps"|VOID*|106
    294 
    295 [PcdsDynamicDefault.x64]
    296   gEfiNt32PkgTokenSpaceGuid.PcdWinNtFileSystem|L".!..\..\..\..\EdkShellBinPkg\Bin\X64\Apps"|VOID*|106
    297 
    298 [PcdsDynamicHii.common.DEFAULT]
    299   gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutColumn|L"SetupConsoleConfig"|gEfiNt32PkgTokenSpaceGuid|0x0|80
    300   gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutRow|L"SetupConsoleConfig"|gEfiNt32PkgTokenSpaceGuid|0x4|25
    301   gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|10
    302   gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|L"HwErrRecSupport"|gEfiGlobalVariableGuid|0x0|1
    303 
    304 ###################################################################################################

    305 #

    306 # Components Section - list of the modules and components that will be processed by compilation

    307 #                      tools and the EDK II tools to generate PE32/PE32+/Coff image files.

    308 #

    309 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed

    310 #       into firmware volume images. This section is just a list of modules to compile from

    311 #       source into UEFI-compliant binaries.

    312 #       It is the FDF file that contains information on combining binary files into firmware

    313 #       volume images, whose concept is beyond UEFI and is described in PI specification.

    314 #       Binary modules do not need to be listed in this section, as they should be

    315 #       specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),

    316 #       Logo (Logo.bmp), and etc.

    317 #       There may also be modules listed in this section that are not required in the FDF file,

    318 #       When a module listed here is excluded from FDF file, then UEFI-compliant binary will be

    319 #       generated for it, but the binary will not be put into any firmware volume.

    320 #

    321 ###################################################################################################

    322 [Components]
    323   ##

    324   #  SEC Phase modules

    325   ##

    326   Nt32Pkg/Sec/SecMain.inf {
    327   <BuildOptions>
    328     # Add override here, because default X64_CC_FLAGS is already overriden in DSC

    329     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
    330   }
    331 
    332   ##

    333   #  PEI Phase modules

    334   ##

    335   MdeModulePkg/Core/Pei/PeiMain.inf
    336   MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
    337     <LibraryClasses>
    338       PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
    339   }
    340   MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
    341   MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
    342   Nt32Pkg/WinNtOemHookStatusCodeHandlerPei/WinNtOemHookStatusCodeHandlerPei.inf
    343   Nt32Pkg/BootModePei/BootModePei.inf
    344   Nt32Pkg/StallPei/StallPei.inf
    345   Nt32Pkg/WinNtFlashMapPei/WinNtFlashMapPei.inf
    346   
    347   MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
    348   MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
    349 
    350   Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf
    351   Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
    352   Nt32Pkg/WinNtThunkPPIToProtocolPei/WinNtThunkPPIToProtocolPei.inf
    353   MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
    354   ##

    355   #  DXE Phase modules

    356   ##

    357   MdeModulePkg/Core/Dxe/DxeMain.inf {
    358     <LibraryClasses>
    359       NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
    360       DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
    361     <BuildOptions>
    362       *_*_*_CC_FLAGS =
    363   }
    364 
    365   MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
    366     <LibraryClasses>
    367       PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
    368   }
    369   Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
    370   Nt32Pkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
    371   Nt32Pkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
    372   MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
    373   Nt32Pkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
    374   MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf  {
    375     <LibraryClasses>
    376 !if $(SECURE_BOOT_ENABLE) == TRUE
    377       NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
    378 !endif 
    379   }
    380   MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
    381   MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
    382   MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
    383   Nt32Pkg/WinNtThunkDxe/WinNtThunkDxe.inf
    384   Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
    385   MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
    386   Nt32Pkg/MiscSubClassPlatformDxe/MiscSubClassPlatformDxe.inf
    387   Nt32Pkg/TimerDxe/TimerDxe.inf
    388   MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
    389   MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
    390   Nt32Pkg/WinNtOemHookStatusCodeHandlerDxe/WinNtOemHookStatusCodeHandlerDxe.inf
    391   MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
    392     <LibraryClasses>
    393       NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
    394   }
    395 !if $(SECURE_BOOT_ENABLE) == TRUE
    396   SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
    397 !endif
    398   MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
    399   MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
    400   MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
    401   MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
    402   MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf {
    403     <LibraryClasses>
    404       PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
    405   }
    406   MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
    407     <LibraryClasses>
    408       PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
    409   }
    410   MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf {
    411     <LibraryClasses>
    412       PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
    413   }
    414   MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
    415     <LibraryClasses>
    416       DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
    417   }
    418   MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
    419   MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
    420   MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
    421   FatPkg/EnhancedFatDxe/Fat.inf
    422   MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
    423   MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf     ##This driver follows UEFI specification definition

    424   MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf    ##This driver follows UEFI specification definition

    425   IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
    426   Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriverDxe.inf {
    427     <LibraryClasses>
    428       PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
    429   }
    430   Nt32Pkg/WinNtBlockIoDxe/WinNtBlockIoDxe.inf
    431   Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIoDxe.inf
    432   Nt32Pkg/WinNtGopDxe/WinNtGopDxe.inf
    433   Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystemDxe.inf
    434   MdeModulePkg/Application/HelloWorld/HelloWorld.inf
    435 
    436   #

    437   # Network stack drivers

    438   # To test network drivers, need network Io driver(SnpNt32Io.dll), please refer to NETWORK-IO Subproject.

    439   #

    440   MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
    441   MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
    442   MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
    443   MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
    444   MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
    445   MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
    446   MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
    447   MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
    448   MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
    449   MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
    450   Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf
    451 
    452   MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
    453 
    454   NetworkPkg/HttpBootDxe/HttpBootDxe.inf
    455   NetworkPkg/DnsDxe/DnsDxe.inf
    456   NetworkPkg/HttpDxe/HttpDxe.inf
    457   NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
    458    
    459 !if $(TLS_ENABLE) == TRUE
    460   NetworkPkg/TlsDxe/TlsDxe.inf
    461   NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf
    462 !endif
    463 
    464   MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
    465   MdeModulePkg/Application/UiApp/UiApp.inf{
    466     <LibraryClasses>
    467       NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
    468       NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
    469       NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
    470   }
    471   MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
    472   MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
    473   MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
    474   MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
    475   MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
    476   MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf {
    477     <LibraryClasses>
    478       PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
    479   }
    480   MdeModulePkg/Application/VariableInfo/VariableInfo.inf
    481 
    482   MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
    483   MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv2.inf
    484   MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf {
    485     <LibraryClasses>
    486       NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
    487   }
    488   MdeModulePkg/Logo/LogoDxe.inf
    489 
    490 ###################################################################################################

    491 #

    492 # BuildOptions Section - Define the module specific tool chain flags that should be used as

    493 #                        the default flags for a module. These flags are appended to any 

    494 #                        standard flags that are defined by the build process. They can be 

    495 #                        applied for any modules or only those modules with the specific 

    496 #                        module style (EDK or EDKII) specified in [Components] section.

    497 #

    498 ###################################################################################################

    499 [BuildOptions]
    500   DEBUG_*_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000 /ALIGN:4096 /FILEALIGN:4096 /SUBSYSTEM:CONSOLE
    501   NOOPT_*_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000 /ALIGN:4096 /FILEALIGN:4096 /SUBSYSTEM:CONSOLE
    502   RELEASE_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096
    503 
    504 #############################################################################################################

    505 # NOTE:

    506 # The following [Libraries] section is for building EDK module under the EDKII tool chain.

    507 # If you want build EDK module for Nt32 platform, please uncomment [Libraries] section and

    508 # libraries used by that EDK module.

    509 # Currently, Nt32 platform do not has any EDK style module

    510 #

    511 #

    512 #[Libraries]

    513   #

    514   # Libraries common to PEI and DXE

    515   #

    516   #  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf

    517   #  EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.inf

    518   #  EdkCompatibilityPkg/Foundation/Guid/EdkGuidLib.inf

    519   #  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf

    520   #  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf

    521   #  EdkCompatibilityPkg/Foundation/Cpu/Itanium/CpuIa64Lib/CpuIA64Lib.inf

    522   #  EdkCompatibilityPkg/Foundation/Library/CustomizedDecompress/CustomizedDecompress.inf

    523   #  EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf

    524   #  EdkCompatibilityPkg/Foundation/Library/Dxe/Hob/HobLib.inf

    525 
    526   #

    527   # PEI libraries

    528   #

    529   #  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf

    530   #  EdkCompatibilityPkg/Foundation/Ppi/EdkPpiLib.inf

    531   #  EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf

    532   #  EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.inf

    533 
    534   #

    535   # DXE libraries

    536   #

    537   #  EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.inf

    538   #  EdkCompatibilityPkg/Foundation/Efi/Protocol/EfiProtocolLib.inf

    539   #  EdkCompatibilityPkg/Foundation/Framework/Protocol/EdkFrameworkProtocolLib.inf

    540   #  EdkCompatibilityPkg/Foundation/Protocol/EdkProtocolLib.inf

    541   #  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf

    542   #  EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/EfiRuntimeLib.inf

    543   #  EdkCompatibilityPkg/Foundation/Library/Dxe/Graphics/Graphics.inf

    544   #  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/EfiIfrSupportLib.inf

    545   #  EdkCompatibilityPkg/Foundation/Library/Dxe/Print/PrintLib.inf

    546   #  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiScriptLib/EfiScriptLib.inf

    547   #  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiUiLib/EfiUiLib.inf

    548 
    549   #

    550   # Print/Graphics Library consume SetupBrowser Print Protocol

    551   #

    552   #  EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/PrintLib.inf

    553   #  EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.inf

    554 
    555