进一步完善编译时间和短日期等信息

This commit is contained in:
大石头 2017-03-22 16:44:43 +08:00
parent 6739d23dfd
commit 3e20321e7b
5 changed files with 11 additions and 8 deletions

View File

@ -14,13 +14,13 @@ SystemConfig g_Config = {
"SmartOS_CPU",
// 硬件
0x0,
(0x0 | __BUILD_DATE__),
// 应用软件
0x0,
0x0,
(0x0 | __BUILD_DATE__),
(0x0 | __BUILD_DATE__),
__BUILD_USER__,
"170321",
__BUILD_SDATE__,
};
#if defined(BOOT) || defined(APP)
@ -65,7 +65,7 @@ void TSys::ShowInfo() const
debug_printf("%s::%s Code:%04X ", Company, Name, Code);
Version v(Config->Ver);
debug_printf("Ver:%s\r\n", v.ToString().GetBuffer());
debug_printf("Product:%s Build:%s %s\r\n", Config->Product, __BUILD_USER__, __BUILD_COMPILE__);
debug_printf("Product:%s Build:%s %s\r\n", Config->Product, __BUILD_USER__, __BUILD_STIME__);
Version v1(Config->AppVer);
Version v2(Config->HardVer);
debug_printf("AppVer:%s HardVer:%s\r\n", v1.ToString().GetBuffer(), v2.ToString().GetBuffer());

View File

@ -213,11 +213,14 @@ public:
#ifndef __BUILD_TIME__
#define __BUILD_TIME__ 1490054400 // 2017-03-21 00:00:00
#endif
#ifndef __BUILD_COMPILE__
#define __BUILD_COMPILE__ "2017-03-21 00:00:00"
#ifndef __BUILD_SDATE__
#define __BUILD_SDATE__ "170321"
#endif
#ifndef __BUILD_STIME__
#define __BUILD_STIME__ "2017-03-21 00:00:00"
#endif
#ifndef __BUILD_USER__
#define __BUILD_USER__ "User_Computer"
#define __BUILD_USER__ "Computer_User"
#endif

Binary file not shown.

Binary file not shown.

Binary file not shown.