mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +01:00
e0bde75175
Signed-off-by: Slice <sergey.slice@gmail.com>
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
/*
|
|
* CloverVersion.cpp
|
|
*
|
|
* Created on: Apr 26, 2021
|
|
* Author: jief
|
|
*/
|
|
|
|
#include "CloverVersion.h"
|
|
#include "../../../Version.h"
|
|
|
|
|
|
|
|
#ifdef FIRMWARE_REVISION
|
|
CONST CHAR16 *gFirmwareRevision = FIRMWARE_REVISION;
|
|
CONST CHAR8* gRevisionStr = REVISION_STR;
|
|
CONST CHAR8* gFirmwareBuildDate = FIRMWARE_BUILDDATE;
|
|
CONST CHAR8* gBuildInfo = BUILDINFOS_STR;
|
|
#else
|
|
CONST CHAR16 *gFirmwareRevision = L"unknown";
|
|
CONST CHAR8* gRevisionStr = "unknown";
|
|
CONST CHAR8* gFirmwareBuildDate = "unknown";
|
|
CONST CHAR8* gBuildInfo = NULL;
|
|
#endif
|
|
#ifdef BUILD_ID
|
|
const LString8 gBuildId __attribute__((used)) = LString8(BUILD_ID);
|
|
const LString8 gBuildIdGrepTag __attribute__((used)) = "CloverBuildIdGrepTag: " BUILD_ID;
|
|
#else
|
|
const LString8 gBuildId __attribute__((used)) = "unknown";
|
|
const LString8 gBuildIdGrepTag __attribute__((used)) = "CloverBuildIdGrepTag: " "unknown";
|
|
#endif
|
|
|
|
// __attribute__((used)) seems to not always work. So, in AboutRefit(), there is a trick to let the compiler thinks it's used.
|
|
const LString8 path_independant __attribute__((used)) = "path_independant";
|
|
|