Mario Limonciello
55de39c077
trivial: reformat the whole tree to match new format
2021-08-24 11:18:40 -05:00
Peter Marheine
464425fb5c
SMBIOS: try reading from /sys/class/dmi if direct access fails
...
The raw SMBIOS tables that Linux exposes in /sys/firmware/dmi
are restricted to being readable by root only. If running as
non-root access is still permitted by fields that have been
pre-parsed by the kernel in /sys/class/dmi, most of which are
world-readable. This allows the daemon to load most HWIDs even
if running as a non-root user, as is done on Chromium OS.
2021-07-23 09:46:45 +01:00
Richard Hughes
a02c1073f2
trivial: Fix up some of the developer docs
...
And add some missing content as requried.
2021-06-11 09:39:03 +01:00
Mario Limonciello
1e17457b16
Allow building the documentation with gi-docgen and gtk-doc
...
Until gi-docgen is declared stable support either of them.
This effectively means that hand builds and CI builds will use
gi-docgen, but distro builds use gtk-doc-tools.
2021-06-09 22:21:53 +01:00
Richard Hughes
79bbcd792a
Store the BSD kernel cmdline string in the failure report
...
Also split out a kenv helper into common code.
2021-05-25 06:31:46 +01:00
Norbert Kamiński
80ba3f07f2
fu-smbios.c: Add kenv support
...
Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
2021-05-18 14:32:07 +01:00
Richard Hughes
20ef071b3c
trivial: Style fixes to lots of gtk-doc
2021-05-10 14:35:10 +01:00
Richard Hughes
89d45a0d91
trivial: Standardize on introspection for @error and @cancellable
...
Also standarize on `Returns:` for the result.
2021-04-28 16:19:50 +01:00
Richard Hughes
52441f28a4
Allow objects to deserialize to XML
...
This makes a lot more sense; we can parse a firmware and export the same XML
we would use in a .builder.xml file. This allows us to two two things:
* Check we can round trip from XML -> binary -> XML
* Using a .builder.xml file we can check ->write() is endian safe
2021-03-15 12:07:30 +00:00
Richard Hughes
86c6c2d4a3
Add fu_firmware_set_version_raw()
...
A few plugins need this now, so move it into the base class.
2021-02-16 15:24:29 +00:00
Richard Hughes
b28e325339
trivial: Fix a buffer over-read when parsing corrupt SMBIOS data
2021-01-06 10:08:45 +00:00
Richard Hughes
cba9020eae
trivial: Fix a buffer over-read when parsing invalid SMBIOS data
2021-01-05 15:59:30 +00:00
Richard Hughes
338cab9e73
libfwupdplugin: Subclass FuFirmware in FuSmbios
...
This allows us to get fuzzing support for free.
2021-01-05 15:59:30 +00:00
Richard Hughes
64e9f6bd92
trivial: Fix up some NULL/FALSE confusion
2021-01-04 16:32:50 +00:00
Richard Hughes
6a489a9eaf
trivial: Add missing calls to g_return_val_if_fail()
2021-01-04 15:24:35 +00:00
Richard Hughes
01ba0c1eea
Set the SMBIOS chassis type to portable if a DT battery exists
...
This allows getting the HSI result on a Pinebook Pro laptop.
2020-11-07 08:15:20 +00:00
Richard Hughes
9f93b8bc66
trivial: Add fu_smbios_get_integer() helper
2020-10-18 20:24:10 +01:00
Richard Hughes
10c3fd2ff9
Support loading DMI data from DT systems
...
To do this with the existing codebase just fake the required SMBIOS structures.
2020-09-30 19:22:45 -05:00
Mario Limonciello
6b0e66354b
Convert libfwupdprivate to a shared library libfwupdplugin
2019-11-27 11:32:43 +00:00