aboutsummaryrefslogtreecommitdiffstats
path: root/UefiLessonsPkg
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2021-11-08 14:38:13 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2021-11-08 19:02:59 +0300
commitbf1ec7c34e789a82b362adede1c96049c32d3d27 (patch)
tree2e7cc9ca2419743c0d8bd802a682580085c813db /UefiLessonsPkg
parent43a54284ee4bdda6d9ffdb6348d7c2d79c9d09f1 (diff)
downloadUEFI-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 'UefiLessonsPkg')
-rw-r--r--UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c14
-rw-r--r--UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf19
-rw-r--r--UefiLessonsPkg/HIIStringsMan/Strings.uni30
-rw-r--r--UefiLessonsPkg/UefiLessonsPkg.dsc1
4 files changed, 64 insertions, 0 deletions
diff --git a/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c b/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c
new file mode 100644
index 0000000..569f2d7
--- /dev/null
+++ b/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/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf b/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf
new file mode 100644
index 0000000..bf2afd2
--- /dev/null
+++ b/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/UefiLessonsPkg/HIIStringsMan/Strings.uni b/UefiLessonsPkg/HIIStringsMan/Strings.uni
new file mode 100644
index 0000000..b6e0635
--- /dev/null
+++ b/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/UefiLessonsPkg/UefiLessonsPkg.dsc b/UefiLessonsPkg/UefiLessonsPkg.dsc
index c279a21..b97cbbe 100644
--- a/UefiLessonsPkg/UefiLessonsPkg.dsc
+++ b/UefiLessonsPkg/UefiLessonsPkg.dsc
@@ -68,6 +68,7 @@
UefiLessonsPkg/HIIStringsC/HIIStringsC.inf
UefiLessonsPkg/HIIStringsUNI/HIIStringsUNI.inf
UefiLessonsPkg/HIIStringsUNIRC/HIIStringsUNIRC.inf
+ UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf
[PcdsFixedAtBuild]
gUefiLessonsPkgTokenSpaceGuid.PcdMyVar32_2|44