imageinfo: add possibility to display a custom text for image version

Origin commit data
------------------
Branch: ni/coolstream
Commit: a1640dd958
Author: J. Krieg <bellum07@googlemail.com>
Date: 2013-07-13 (Sat, 13 Jul 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
J. Krieg
2013-07-13 14:49:04 +02:00
committed by vanhofen
parent 357d53fcc4
commit 120fa83a64

View File

@@ -186,16 +186,20 @@ void CImageInfo::InitInfos()
const char * builddate = config.getString("builddate", "n/a").c_str();
#endif
std::string version_string;
#ifdef IMAGE_VERSION
version_string = IMAGE_VERSION;
#else
const char * _version = config.getString("version", "U000000000000000").c_str();
static CFlashVersionInfo versionInfo(_version);
std::string version_string;
version_string = versionInfo.getReleaseCycle();
version_string += " ";
version_string += versionInfo.getType();
version_string += " (";
version_string += versionInfo.getDate();
version_string += ")";
#endif
struct utsname uts_info;