From ea49e59ed0fc50085716e55d66395b6afef8a554 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Mon, 12 Jul 2021 15:28:51 +0300 Subject: Update UefiLessonsPkg Signed-off-by: Konstantin Aladyshev --- UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.c | 16 ++++++++++++++++ .../SimpleLibraryUser/SimpleLibraryUser.inf | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.c create mode 100644 UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.inf (limited to 'UefiLessonsPkg/SimpleLibraryUser') diff --git a/UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.c b/UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.c new file mode 100644 index 0000000..9747b97 --- /dev/null +++ b/UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.c @@ -0,0 +1,16 @@ +#include +#include + +#include + +EFI_STATUS +EFIAPI +UefiMain ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + Print(L"%d\n", Plus2(3)); + + return EFI_SUCCESS; +} diff --git a/UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.inf b/UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.inf new file mode 100644 index 0000000..d7e5be8 --- /dev/null +++ b/UefiLessonsPkg/SimpleLibraryUser/SimpleLibraryUser.inf @@ -0,0 +1,20 @@ +[Defines] + INF_VERSION = 1.25 + BASE_NAME = SimpleLibraryUser + FILE_GUID = 22a1f57c-21ca-4011-9133-e3df0d01dace + MODULE_TYPE = UEFI_APPLICATION + VERSION_STRING = 1.0 + ENTRY_POINT = UefiMain + +[Sources] + SimpleLibraryUser.c + +[Packages] + MdePkg/MdePkg.dec + UefiLessonsPkg/UefiLessonsPkg.dec + +[LibraryClasses] + UefiApplicationEntryPoint + UefiLib + SimpleLibrary + -- cgit v1.2.3-18-g5258