aboutsummaryrefslogtreecommitdiffstats
path: root/Lessons/Lesson_36/UefiLessonsPkg/Library
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2021-07-10 01:31:32 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2021-07-10 01:31:32 +0300
commit017a590ec6c14e0f5366efd4da9be444b3e62809 (patch)
tree8c3fd1c91c91765ec118c1304c25d68f15bdd770 /Lessons/Lesson_36/UefiLessonsPkg/Library
parent6064c1e48b622f53538f4df9bdd402c607a87d51 (diff)
downloadUEFI-Lessons-017a590ec6c14e0f5366efd4da9be444b3e62809.tar.gz
UEFI-Lessons-017a590ec6c14e0f5366efd4da9be444b3e62809.tar.bz2
UEFI-Lessons-017a590ec6c14e0f5366efd4da9be444b3e62809.zip
Add lesson 36
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons/Lesson_36/UefiLessonsPkg/Library')
-rw-r--r--Lessons/Lesson_36/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.c5
-rw-r--r--Lessons/Lesson_36/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf15
2 files changed, 20 insertions, 0 deletions
diff --git a/Lessons/Lesson_36/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.c b/Lessons/Lesson_36/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.c
new file mode 100644
index 0000000..acffba4
--- /dev/null
+++ b/Lessons/Lesson_36/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.c
@@ -0,0 +1,5 @@
+#include <Library/SimpleLibrary.h>
+
+UINTN Plus2(UINTN number) {
+ return number+2;
+}
diff --git a/Lessons/Lesson_36/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf b/Lessons/Lesson_36/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf
new file mode 100644
index 0000000..92027a4
--- /dev/null
+++ b/Lessons/Lesson_36/UefiLessonsPkg/Library/SimpleLibrary/SimpleLibrary.inf
@@ -0,0 +1,15 @@
+[Defines]
+ INF_VERSION = 1.25
+ BASE_NAME = SimpleLibrary
+ FILE_GUID = 826c8951-5bd2-4d72-a9d9-f7ab48684117
+ MODULE_TYPE = UEFI_APPLICATION
+ VERSION_STRING = 1.0
+ LIBRARY_CLASS = SimpleLibrary | UEFI_APPLICATION
+
+[Sources]
+ SimpleLibrary.c
+
+[Packages]
+ MdePkg/MdePkg.dec
+ UefiLessonsPkg/UefiLessonsPkg.dec
+