mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-13 03:11:07 +00:00

Detect and parse current coreboot version. There's no need to depend on libflashrom for now. An update mechanism isn't implemented as the kernel interface isn't stable yet and will be implemented in a separate commit. Tested on coreboot enabled machine. Example output: coreboot System Firmware DeviceId: 81104bde9db7cb037936659ea727c739f47a5029 Guid: 230c8b18-8d9b-53ec-838b-6cfc0383493a <- main-system-firmware Guid: de6fd40f-4ec9-5c0b-95e1-8fb13d1b030c <- LENOVO&ThinkPad T410&2537VG5 Guid: 978b0d18-bfe9-5279-9a9f-68dc247a705f <- LENOVO&ThinkPad T410&LENOVO&2537VG5 Summary: Open Source system boot firmware Plugin: coreboot Flags: internal|registered Vendor: LENOVO Version: 4.10.991 VersionFormat: triplet Icon: computer Created: 2019-10-14 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
17 lines
413 B
C
17 lines
413 B
C
/*
|
|
* Copyright (C) 2019 9elements Agency GmbH <patrick.rudolph@9elements.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "fu-plugin.h"
|
|
#include "fu-device.h"
|
|
|
|
const gchar * fu_plugin_coreboot_version_string_to_triplet (const gchar *coreboot_version,
|
|
GError **error);
|
|
|
|
const gchar* fu_plugin_coreboot_get_name_for_type (FuPlugin *plugin,
|
|
const gchar *vboot_partition);
|