diff options
Diffstat (limited to 'Lessons_uncategorized/Lesson_Build_tools/UefiLessonsPkg/BuildOptionsApp')
2 files changed, 45 insertions, 0 deletions
diff --git a/Lessons_uncategorized/Lesson_Build_tools/UefiLessonsPkg/BuildOptionsApp/BuildOptionsApp.c b/Lessons_uncategorized/Lesson_Build_tools/UefiLessonsPkg/BuildOptionsApp/BuildOptionsApp.c new file mode 100644 index 0000000..dc97c48 --- /dev/null +++ b/Lessons_uncategorized/Lesson_Build_tools/UefiLessonsPkg/BuildOptionsApp/BuildOptionsApp.c @@ -0,0 +1,22 @@ +#include <Library/UefiBootServicesTableLib.h> +#include <Library/UefiLib.h> + +EFI_STATUS +EFIAPI +UefiMain ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + #ifdef MY_DEBUG + Print(L"MY_DEBUG is defined\n"); + #endif + #ifdef MY_RELEASE + Print(L"MY_RELEASE is defined\n"); + #endif + #ifdef MY_ALL_TARGETS + Print(L"MY_ALL_TARGETS is defined\n"); + #endif + + return EFI_SUCCESS; +} diff --git a/Lessons_uncategorized/Lesson_Build_tools/UefiLessonsPkg/BuildOptionsApp/BuildOptionsApp.inf b/Lessons_uncategorized/Lesson_Build_tools/UefiLessonsPkg/BuildOptionsApp/BuildOptionsApp.inf new file mode 100644 index 0000000..a0581f1 --- /dev/null +++ b/Lessons_uncategorized/Lesson_Build_tools/UefiLessonsPkg/BuildOptionsApp/BuildOptionsApp.inf @@ -0,0 +1,23 @@ +[Defines] + INF_VERSION = 1.25 + BASE_NAME = BuildOptionsApp + FILE_GUID = 311c8fac-737c-436a-9a73-a66b0eae722d + MODULE_TYPE = UEFI_APPLICATION + VERSION_STRING = 1.0 + ENTRY_POINT = UefiMain + +[Sources] + BuildOptionsApp.c + +[Packages] + MdePkg/MdePkg.dec + +[LibraryClasses] + UefiApplicationEntryPoint + UefiLib + +[BuildOptions] + RELEASE_GCC5_X64_CC_FLAGS = "-DMY_RELEASE" + DEBUG_GCC5_X64_CC_FLAGS = "-DMY_DEBUG" + *_GCC5_X64_CC_FLAGS = "-DMY_ALL_TARGETS" + |