mirror of
https://github.com/rvtr/ctr_eFuse.git
synced 2025-11-02 00:11:04 -04:00
バイナリにビルド日時を埋め込む(LIBGENID_BUILD_INFO:,__DATE__,__TIME_)
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@172 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
parent
6dbcbb1218
commit
a8883e8493
@ -129,6 +129,13 @@
|
|||||||
#include "cr_generate_id_private.h"
|
#include "cr_generate_id_private.h"
|
||||||
#include "cr_alloc.h"
|
#include "cr_alloc.h"
|
||||||
|
|
||||||
|
// ビルド時の日時記録
|
||||||
|
static struct
|
||||||
|
{
|
||||||
|
const u8 *title; const u8 *date; const u8 *time;
|
||||||
|
}
|
||||||
|
buildInfo = { "LIBGENID_BUILD_INFO:", __DATE__, __TIME__ };
|
||||||
|
|
||||||
static u64 generatingCount = 0; // 現在生成中のID(起動時からの通算)
|
static u64 generatingCount = 0; // 現在生成中のID(起動時からの通算)
|
||||||
|
|
||||||
int cr_print_flag = 0;
|
int cr_print_flag = 0;
|
||||||
@ -137,7 +144,12 @@ int cr_print_flag = 0;
|
|||||||
int cr_generate_id_initialize( u8 err_buf[CR_ID_BUF_SIZE] )
|
int cr_generate_id_initialize( u8 err_buf[CR_ID_BUF_SIZE] )
|
||||||
{
|
{
|
||||||
int ret_code = CR_GENID_SUCCESS;
|
int ret_code = CR_GENID_SUCCESS;
|
||||||
|
|
||||||
|
// ビルド情報がデッドストリップされないよう参照
|
||||||
|
const u8 *dummyPtr = NULL;
|
||||||
|
dummyPtr = buildInfo.title;
|
||||||
|
dummyPtr = NULL;
|
||||||
|
|
||||||
// 生成カウンタの初期化
|
// 生成カウンタの初期化
|
||||||
generatingCount = 0;
|
generatingCount = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user