Richard Hughes
6aedaa816c
trivial: post release version bump
2021-11-19 09:56:50 +00:00
Richard Hughes
a15a50bc5c
Release fwupd 1.7.2
2021-11-19 09:54:57 +00:00
Richard Hughes
5ebbfe7f7d
Export the component release ID over DBus
...
This allows us to map a specific component on the LVFS without guessing
by using the generated checksum.
2021-11-19 06:55:53 +00:00
Richard Hughes
3e2e0aa616
trivial: Fix build error with old meson versions
...
On 0.58.1:
ERROR: Bad source of type 'SharedModule' in target 'tpm-self-test'.
2021-11-19 06:54:46 +00:00
Gabriel Kerneis
3e8f09a0f7
Add HSI check that PCR registers 0-7 are not empty
...
Some BIOSes forget add measurements to PCR registers, which results in
all-zero checksums and breaks measured boot guarantees.
Fixes #3901
2021-11-17 16:21:52 +00:00
Mario Limonciello
b70d3a73e8
trivial: Fix style for fu-fuzzer-firmware.c
...
This was skipped because pre-commit identified c.in as text not C.
2021-11-17 16:19:41 +00:00
Richard Hughes
40c7f7ba21
Show a daemon warning if quirk flags are malformed
2021-11-17 15:14:13 +00:00
Richard Hughes
fedce9e077
trivial: Crash the fuzzer on critical warning
...
We want to abort early rather than relying on other problems like segfault or OOM.
2021-11-17 15:13:56 +00:00
Richard Hughes
b9024e80ae
trivial: Show percentage values when non-interactive
...
Now we have a global progressbar it's a sane amount of data to log.
2021-11-16 17:04:07 +00:00
Richard Hughes
8f0985fb9a
dfu: Fix a crash if the attach failed due to hw fault
2021-11-16 17:04:07 +00:00
Richard Hughes
571d22d9b9
dfu: Do not try to handle attach and detach in dump-firmware
...
This just can't work, as devices typically replug with a different VID and PID.
2021-11-16 17:04:07 +00:00
Richard Hughes
8477d248e6
dfu: Use DfuSe when the target defines an alt name
...
This fixes dump-firmware on AVR devices that only have one target.
2021-11-16 17:04:07 +00:00
Richard Hughes
51ba3d99bd
dfu: Allow the DFU plugin to write Intel HEX firmware
...
This was being used in the A3BU device test, which broke when we
switched to fu_firmware_new_from_gtypes().
2021-11-16 17:04:07 +00:00
Richard Hughes
f62a2a32d0
dfu: Fix some unconverted FuProgress usage
2021-11-16 17:04:07 +00:00
Richard Hughes
d7bcb2195e
ccgx: Fix a critial warning found by the fuzzer
...
Fixes https://oss-fuzz.com/testcase-detail/5426177995046912
2021-11-15 20:46:26 -06:00
Richard Hughes
0592552b40
elantp: Fix a tiny memory leak when parsing firmware
2021-11-15 20:45:57 -06:00
Richard Hughes
eef106213e
dfu: Add some trivial debugging to locate a bug
2021-11-15 16:40:27 +00:00
Richard Hughes
2958586d50
trivial: Add some debugging when a private flag does not match
2021-11-15 16:40:27 +00:00
Richard Hughes
9ef27052d5
altos: Remove support for the ChaosKey
...
The hardware is discontinued, and no further update from 1.6.7 was ever
supplied.
2021-11-15 15:17:38 +00:00
Richard Hughes
a9e696ab62
solokey: Remove support for the SoloKey device
...
The vendor does not intend on uploading firmware for this EOL device.
For the Solo V2 the vendor wants to use a different flashing protocol,
so all this is just dead code now.
2021-11-15 15:17:07 +00:00
Richard Hughes
7e386f8791
trivial: Do not install the fwupdtpmevlog debugging cli to save 50Kb
2021-11-15 15:01:22 +00:00
Richard Hughes
49afe450ab
Use -Dcompat_cli=false to reduce the install size by over 100Kb
...
We don't need these binaries for green-field projects.
2021-11-15 15:01:22 +00:00
Richard Hughes
64d1a01d42
trivial: Downgrade a configure error() to a warning()
2021-11-15 15:01:22 +00:00
Richard Hughes
31d692f1a2
dfu: Fix all devices that rely on use-any-interface
...
This was a regression caused in aaa77c6f51
.
2021-11-15 15:00:07 +00:00
Richard Hughes
60612294f5
trivial: Use the device GType as the debugging root
...
We never show the fu_device_to_string() output to the user in normal
circumstances, and it's super useful for it to match the FuFirmware
format.
2021-11-15 14:59:52 +00:00
Richard Hughes
3e88040b7f
trivial: Always use a newline when at 100%, even if not idle
2021-11-15 14:59:37 +00:00
Richard Hughes
fca20c0722
trivial: Fix the progress status when required
...
When the child has completed we rely on the next fu_progress_step_done()
call to set the status value back to the parent-defined value. In the
case where there is a delay until the next step is done (e.g. waiting
for hardware to re-enumerate) the child status persisted incorrectly.
2021-11-15 14:59:37 +00:00
Richard Hughes
b932c16b17
Remove the FuEngine::percentage-changed signal
...
Proxying the values is firstly inefficient, in that there were only
three functions in fu-engine.c that did not already have FuProgress
objects passed to them.
Secondly, processing the 'status' values from the engine meant that we
reset the percentage value to 0 for a split second, which made the
progress bar jump back to zero for one frame making it flicker.
Just make it all simpler and use FuProgress directly.
2021-11-15 14:59:37 +00:00
Richard Hughes
99e903669a
Revert "Wait for device reboot when using fwupdtool detach"
...
This reverts commit 448772b73e
.
2021-11-15 12:21:32 +00:00
ml
61b575856d
fwupdtool: Show get-details command argument FILE
2021-11-15 06:55:18 +00:00
ml
abcea90ba8
firmware_packager.py: Fix templated values in XML
2021-11-14 19:55:25 -06:00
Richard Hughes
5f01678daa
Use -Doffline=false to reduce the install size by over 100Kb
...
If there's no SuperIO chip then there's no need to support this.
2021-11-12 21:06:34 +00:00
Richard Hughes
e840e9c23b
Use -Dfish_completion=false to reduce the install size by a few more Kb
2021-11-12 21:06:34 +00:00
Richard Hughes
34d531074c
Use -Dmetainfo=false to reduce the install size by over 100Kb
2021-11-12 21:06:34 +00:00
Richard Hughes
da4f50ccf0
dfu: Fix replugging when using dfu-tool to flash hardware
...
All kinds of things break when using more than one GUsbContext at the
same time.
2021-11-12 15:27:01 +00:00
Richard Hughes
f9cba32625
dfu: Fix critical warning when using dfu-tool
...
Actually connect to the correct object.
Fixes https://github.com/fwupd/fwupd/issues/3975
2021-11-12 15:27:01 +00:00
Richard Hughes
b87a909223
trivial: Do not show a critical warning is LANG is unset
2021-11-12 15:26:31 +00:00
Richard Hughes
2b37ec4afc
Fix critical warning when /etc/machine-id does not exist
2021-11-12 12:45:52 +00:00
Richard Hughes
68722ec6e4
redfish: Set SSL_VERIFYHOST=0 to fix OpenBMC auth
2021-11-11 20:47:20 +00:00
Richard Hughes
5a95cf61d8
redfish: Fix crash when specifying a URL without a port
2021-11-11 20:47:20 +00:00
Crag Wang
23e194413a
dell-dock: remove require-ac flag as dock supplies the power
2021-11-11 15:55:04 +00:00
Richard Hughes
4f3e2c3a57
Allow overriding HwId data from the config file
...
To use this on a immutable system like ChromeOS you can create a file
in /var/lib/fwupd/daemon.conf which is used as an override.
2021-11-10 17:59:52 +00:00
Richard Hughes
2c72b24978
thunderbolt: Use fu_device_inhibit() to correctly use UPDATABLE_HIDDEN
...
By not exposing either UPDATABLE or UPDATABLE_HIDDEN the device is
hidden in gnome-firmware. Do what all the other devices do.
2021-11-10 17:23:25 +00:00
Richard Hughes
c1f7ac47e8
tpm: Actually add the v1.2 device
...
Also, add end-to-end tests for this so it can never happen again.
Fixes https://github.com/fwupd/fwupd/issues/3972
2021-11-10 14:08:08 +00:00
Yehezkel Bernat
86286c3efd
trivial: remove outdated comment
...
This comment became outdated with #3940 , where the `NULL` check for `priv->ctx` that followed by early return was removed
2021-11-09 20:20:03 +00:00
Ross Burton
774a7098ad
build: check that outb is present in io.h
...
The flashrom plugin can use inb/outb to do a CMOS reset. The build gates
this on whether io.h exists (since bc43ad) as with glibc if io.h exists,
inb/outb are defined. However on musl, io.h always exists but it may not
define inb/outb.
Thus, fwupd builds with musl on non-x86 platforms will fail to link. Fix
this by checking for both io.h and that outb() is defined.
Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-11-09 14:13:03 -06:00
Richard Hughes
683fae6be3
nvme: Fix the Samsung vendor to avoid showing junk in the UI
2021-11-09 16:09:16 +00:00
Richard Hughes
ae278e1b80
Be case insensitive when fixing the device model
2021-11-09 16:09:16 +00:00
Richard Hughes
e87fc05ab9
Speed up the daemon startup by ~2% by doing dlsym much less
...
We were calling g_module_symbol() 2703 times, which is actually more
expensive than you'd think.
It also means the plugins are actually what we tell people they are:
A set of vfuncs that get run. The reality before that they were dlsym'd
functions that get called at pretty random times.
2021-11-09 12:02:07 +00:00
Richard Hughes
4d63d4ad7c
Use g_subprocess_communicate() to fix IPFS downloads
...
Since switching to a custom GMainContext we broke reading the stream of
the GSubprocess.
2021-11-09 09:22:18 +00:00