mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-11 17:59:44 +00:00
uefi: Log the efivar library version too into the report
This commit is contained in:
parent
b27639ae9f
commit
a076c81a07
@ -201,6 +201,7 @@ if get_option('plugin_uefi')
|
|||||||
conf.set('HAVE_FWUP_GET_BGRT_INFO', '1')
|
conf.set('HAVE_FWUP_GET_BGRT_INFO', '1')
|
||||||
endif
|
endif
|
||||||
efivar = dependency('efivar')
|
efivar = dependency('efivar')
|
||||||
|
conf.set_quoted('EFIVAR_LIBRARY_VERSION', efivar.version())
|
||||||
conf.set_quoted('LIBFWUP_LIBRARY_VERSION', fwup.version())
|
conf.set_quoted('LIBFWUP_LIBRARY_VERSION', fwup.version())
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ fu_plugin_init (FuPlugin *plugin)
|
|||||||
{
|
{
|
||||||
fu_plugin_add_rule (plugin, FU_PLUGIN_RULE_RUN_AFTER, "upower");
|
fu_plugin_add_rule (plugin, FU_PLUGIN_RULE_RUN_AFTER, "upower");
|
||||||
fu_plugin_add_report_metadata (plugin, "FwupdateVersion", LIBFWUP_LIBRARY_VERSION);
|
fu_plugin_add_report_metadata (plugin, "FwupdateVersion", LIBFWUP_LIBRARY_VERSION);
|
||||||
|
fu_plugin_add_report_metadata (plugin, "EfivarVersion", EFIVAR_LIBRARY_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar *
|
static gchar *
|
||||||
|
@ -2365,6 +2365,10 @@ main (int argc, char *argv[])
|
|||||||
#ifdef LIBFWUP_LIBRARY_VERSION
|
#ifdef LIBFWUP_LIBRARY_VERSION
|
||||||
g_print ("\tfwupdate:\t%s\n",
|
g_print ("\tfwupdate:\t%s\n",
|
||||||
LIBFWUP_LIBRARY_VERSION);
|
LIBFWUP_LIBRARY_VERSION);
|
||||||
|
#endif
|
||||||
|
#ifdef EFIVAR_LIBRARY_VERSION
|
||||||
|
g_print ("\tefivar:\t%s\n",
|
||||||
|
EFIVAR_LIBRARY_VERSION);
|
||||||
#endif
|
#endif
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user