Getting Started Writing MyHelloWorld.inf - Wayne777Chiu/Chinese_Practice_about_TianoCore GitHub Wiki

(2019/03/08) MyHelloWorld.inf ηš„δΎ‹ε­

θ«‹ζŸ₯ηœ‹ EDK II 規範 ζœ€ζ–°η‰ˆ

注意: 從: http://www.guidgen.com/ θ€‡θ£½θ²ΌδΈŠ GUID 硦 δ»₯δΈ‹δΎ‹ε­ηš„ FILE_GUID

## @file
#  Brief Description of UEFI MyHelloWorld
#  
#  Detailed Description of UEFI MyWizardDriver
#
#  Copyright for UEFI  MyHelloWorld
#  
#  License for UEFI  MyHelloWorld
#  
##

[Defines]
  INF_VERSION                    = 1.25
  BASE_NAME                      = MyHelloWorld
  FILE_GUID                      = #Copy and paste the GUID from http://www.guidgen.com/ here
  MODULE_TYPE                    = UEFI_APPLICATION
  VERSION_STRING                 = 1.0
  ENTRY_POINT                    = UefiMain
#
# The following information is for reference only and not required by the build tools.
#
#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC Etc...
#

[Sources]
  MyHelloWorld.c

[Packages]
  MdePkg/MdePkg.dec
  
[LibraryClasses]
  UefiApplicationEntryPoint
  UefiLib
  
[Guids]

[Ppis]

[Protocols]

[FeaturePcd]

[Pcd]

εŽŸζ–‡

Example of MyHelloWorld.inf

Please check for the latest version of the EDK II Specifications

Note: Copy and paste the GUID from : http://www.guidgen.com/ for the FILE_GUID in the example below

## @file
#  Brief Description of UEFI MyHelloWorld
#  
#  Detailed Description of UEFI MyWizardDriver
#
#  Copyright for UEFI  MyHelloWorld
#  
#  License for UEFI  MyHelloWorld
#  
##

[Defines]
  INF_VERSION                    = 1.25
  BASE_NAME                      = MyHelloWorld
  FILE_GUID                      = #Copy and paste the GUID from http://www.guidgen.com/ here
  MODULE_TYPE                    = UEFI_APPLICATION
  VERSION_STRING                 = 1.0
  ENTRY_POINT                    = UefiMain
#
# The following information is for reference only and not required by the build tools.
#
#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC Etc...
#

[Sources]
  MyHelloWorld.c

[Packages]
  MdePkg/MdePkg.dec
  
[LibraryClasses]
  UefiApplicationEntryPoint
  UefiLib
  
[Guids]

[Ppis]

[Protocols]

[FeaturePcd]

[Pcd]
⚠️ **GitHub.com Fallback** ⚠️