diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-11-08 14:38:13 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-11-08 19:02:59 +0300 |
commit | bf1ec7c34e789a82b362adede1c96049c32d3d27 (patch) | |
tree | 2e7cc9ca2419743c0d8bd802a682580085c813db /Lessons/Lesson_51/UefiLessonsPkg | |
parent | 43a54284ee4bdda6d9ffdb6348d7c2d79c9d09f1 (diff) | |
download | UEFI-Lessons-bf1ec7c34e789a82b362adede1c96049c32d3d27.tar.gz UEFI-Lessons-bf1ec7c34e789a82b362adede1c96049c32d3d27.tar.bz2 UEFI-Lessons-bf1ec7c34e789a82b362adede1c96049c32d3d27.zip |
Add lesson 51
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons/Lesson_51/UefiLessonsPkg')
4 files changed, 132 insertions, 0 deletions
diff --git a/Lessons/Lesson_51/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c b/Lessons/Lesson_51/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c new file mode 100644 index 0000000..569f2d7 --- /dev/null +++ b/Lessons/Lesson_51/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c @@ -0,0 +1,14 @@ +#include <Library/UefiBootServicesTableLib.h> +#include <Library/UefiLib.h> + +GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId = STRING_TOKEN(STR_HELP); + +EFI_STATUS +EFIAPI +UefiMain ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + return EFI_SUCCESS; +} diff --git a/Lessons/Lesson_51/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf b/Lessons/Lesson_51/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf new file mode 100644 index 0000000..bf2afd2 --- /dev/null +++ b/Lessons/Lesson_51/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf @@ -0,0 +1,19 @@ +[Defines] + INF_VERSION = 1.25 + BASE_NAME = HIIStringsMan + FILE_GUID = 55fd4de5-0f19-4a23-a001-72bef56f8966 + MODULE_TYPE = UEFI_APPLICATION + VERSION_STRING = 1.0 + ENTRY_POINT = UefiMain + UEFI_HII_RESOURCE_SECTION = TRUE + +[Sources] + HIIStringsMan.c + Strings.uni + +[Packages] + MdePkg/MdePkg.dec + +[LibraryClasses] + UefiApplicationEntryPoint + UefiLib diff --git a/Lessons/Lesson_51/UefiLessonsPkg/HIIStringsMan/Strings.uni b/Lessons/Lesson_51/UefiLessonsPkg/HIIStringsMan/Strings.uni new file mode 100644 index 0000000..b6e0635 --- /dev/null +++ b/Lessons/Lesson_51/UefiLessonsPkg/HIIStringsMan/Strings.uni @@ -0,0 +1,30 @@ +#langdef en-US "English" + +#string STR_HELP #language en-US "" +".TH HIIStringsMan 0 "Simple application with a manual inside."\r\n" +".SH NAME\r\n" +"HIIStringsMan application.\r\n" +".SH SYNOPSIS\r\n" +"This is the synopsis section.\r\n" +".SH DESCRIPTION\r\n" +"This is the description section.\r\n" +".SH OPTIONS\r\n" +"This is the options section.\r\n" +".SH RETURN VALUES\r\n" +"This is the return values section.\r\n" +".SH ENVIRONMENT VARIABLES\r\n" +"This is the section for used environment variables\r\n" +".SH FILES\r\n" +"This is the section for files associated with the subject.\r\n" +".SH EXAMPLES\r\n" +"This is the section for examples and suggestions.\r\n" +".SH ERRORS\r\n" +"This is the section for errors reported by the command.\r\n" +".SH STANDARDS\r\n" +"This is the section for conformance to applicable standards.\r\n" +".SH BUGS\r\n" +"This is the section for errors and caveats.\r\n" +".SH CATEGORY\r\n" +"This is the section for categories.\r\n" +".SH CUSTOMSECTION\r\n" +"This is an example of a custom section.\r\n" diff --git a/Lessons/Lesson_51/UefiLessonsPkg/UefiLessonsPkg.dsc b/Lessons/Lesson_51/UefiLessonsPkg/UefiLessonsPkg.dsc new file mode 100644 index 0000000..c409dfa --- /dev/null +++ b/Lessons/Lesson_51/UefiLessonsPkg/UefiLessonsPkg.dsc @@ -0,0 +1,69 @@ +[Defines] + DSC_SPECIFICATION = 0x0001001C + PLATFORM_GUID = 3db7270f-ffac-4139-90a4-0ae68f3f8167 + PLATFORM_VERSION = 0.01 + PLATFORM_NAME = UefiLessonsPkg + SKUID_IDENTIFIER = DEFAULT + SUPPORTED_ARCHITECTURES = X64 + BUILD_TARGETS = RELEASE + + +[LibraryClasses] + UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf + UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf + DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf + BaseLib|MdePkg/Library/BaseLib/BaseLib.inf + #PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf + RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf + PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf + DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf + UefiLib|MdePkg/Library/UefiLib/UefiLib.inf + MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf + UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf + ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf + ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf + FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf + HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf + SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf + UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf + UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf + #SimpleLibrary|UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf + #SimpleLibrary|UefiLessonsPkg/Library/SimpleLibraryWithConstructor/SimpleLibraryWithConstructor.inf + SimpleLibrary|UefiLessonsPkg/Library/SimpleLibraryWithConstructorAndDestructor/SimpleLibraryWithConstructorAndDestructor.inf + +[Components] + UefiLessonsPkg/SimplestApp/SimplestApp.inf + UefiLessonsPkg/HelloWorld/HelloWorld.inf + UefiLessonsPkg/ImageHandle/ImageHandle.inf + UefiLessonsPkg/ImageInfo/ImageInfo.inf + UefiLessonsPkg/MemoryInfo/MemoryInfo.inf + UefiLessonsPkg/SimpleShellApp/SimpleShellApp.inf + UefiLessonsPkg/ListVariables/ListVariables.inf + UefiLessonsPkg/ShowBootVariables/ShowBootVariables.inf + UefiLessonsPkg/InteractiveApp/InteractiveApp.inf + UefiLessonsPkg/PCDLesson/PCDLesson.inf + UefiLessonsPkg/SmbiosInfo/SmbiosInfo.inf + UefiLessonsPkg/ShowTables/ShowTables.inf + UefiLessonsPkg/AcpiInfo/AcpiInfo.inf + UefiLessonsPkg/SaveBGRT/SaveBGRT.inf + UefiLessonsPkg/ListPCI/ListPCI.inf + UefiLessonsPkg/SimpleDriver/SimpleDriver.inf + UefiLessonsPkg/PCIRomInfo/PCIRomInfo.inf + UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf + UefiLessonsPkg/Library/SimpleLibraryWithConstructor/SimpleLibraryWithConstructor.inf + UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.inf + UefiLessonsPkg/SimpleClassProtocol/SimpleClassProtocol.inf + UefiLessonsPkg/SimpleClassUser/SimpleClassUser.inf + UefiLessonsPkg/HotKeyDriver/HotKeyDriver.inf + UefiLessonsPkg/ShowHII/ShowHII.inf + UefiLessonsPkg/HIIStringsC/HIIStringsC.inf + UefiLessonsPkg/HIIStringsUNI/HIIStringsUNI.inf + UefiLessonsPkg/HIIStringsUNIRC/HIIStringsUNIRC.inf + UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf + +[PcdsFixedAtBuild] + gUefiLessonsPkgTokenSpaceGuid.PcdMyVar32_2|44 + |