6.1 Beginning to Write the INF File

The following is a sample for [Defines] section of the SEC module:

[Defines]
  INF_VERSION    = 0x00010005
  BASE_NAME      = SampleSec
  FILE_GUID      = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  MODULE_TYPE    = SEC
  VERSION_STRING = 1.0
  ENTRY_POINT    = _ModuleEntryPoint

For a physical platform, MODULE_TYPE must be set to SEC. For an Emulation Platform, the SEC module's MODULE_TYPE must be set to SEC or USER_DEFINED.

For IA-32 Intel Architecture _ModuleEntryPoint is the default entry point for the SEC module.

For Itanium Processor Family platform, the entry point is configurable, such as SAMPLE_ENTRY. Nevertheless, this entry point should be added in [BuildOptions] section as following,

[Defines]
  ENTRY_POINT = SAMPLE_ENTRY

[BuildOptions]
  INTEL:*_*_IPF_DLINK_FLAGS = /ENTRY: SAMPLE _ENTRY
  MSFT:*_*_IPF_DLINK_FLAGS  = /ENTRY: SAMPLE _ENTRY
  GCC:*_*_IPF_PP_FLAGS      = --entry _ SAMPLE _ENTRY

The implementation of the SEC entry point is commonly in the assembly language.

results matching ""

    No results matching ""