imageinfo.cpp: show machine type and git describe of system

This commit is contained in:
2020-12-18 22:21:41 +01:00
parent 78928e2633
commit 0a423563f8

View File

@@ -300,6 +300,16 @@ void CImageInfo::InitInfoData()
if (file_exists(OE_IMAGE_VERSION_FILE)){
config.loadConfig(OE_IMAGE_VERSION_FILE);
oe_image_version = config.getString("imageversion", "");
string desc = config.getString("imagedescription", "");
if (!desc.empty())
oe_image_version += " - " + desc;
desc = config.getString("describe", "");
if (!pretty_name.info_text.empty()) {
if (!desc.empty())
pretty_name.info_text += " - " + desc;
}
else
pretty_name.info_text = "unknown";
config.clear();
}