Add git version to the EFI application

This commit is contained in:
Lauri Kenttä
2016-06-04 20:52:23 +03:00
parent ff838ec0f6
commit b7fd08c978
2 changed files with 9 additions and 1 deletions

View File

@@ -381,7 +381,13 @@ EFI_STATUS EFIAPI EfiMain(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *ST_) {
goto fail;
fail: {
Print(L"HackBGRT has failed. Use parameter debug=1 for details.\nPress any key to exit.\n");
Print(L"HackBGRT has failed. Use parameter debug=1 for details.\n");
#ifdef GIT_DESCRIBE
Print(L"HackBGRT version: " GIT_DESCRIBE L"\n");
#else
Print(L"HackBGRT version: unknown; not an official release?\n");
#endif
Print(L"Press any key to exit.\n");
ReadKey();
return 1;
}