Commit Graph

6431 Commits

Author SHA1 Message Date
Richard Hughes
6e651269ba Fix running the tests when fwupd is not installed
This probably regressed in 70f9124545 as
the callers actually expect an error in the GDBusError domain, rather
than one fixed up in the FwupdError domain.

Fixes https://github.com/fwupd/fwupd/issues/4014
2021-11-23 15:18:41 +00:00
Richard Hughes
7b865f213c trivial: Only install files that are going to be used 2021-11-23 15:14:14 +00:00
Richard Hughes
71d93a65fb Make sqlite optional
This isn't required when fwupd is installed on targets like a BMC.
2021-11-23 15:09:05 +00:00
Richard Hughes
e1e212553b elanfp: Add some sanity checks to the firmware parser
Fixes https://oss-fuzz.com/testcase-detail/6107550261575680
2021-11-23 14:56:47 +00:00
Gabriel Kerneis
93aae762a6 Offer to run tests before pushing in contrib/setup
Also make clearer that the default choice is "no" for interactive
prompts.
2021-11-23 15:41:46 +01:00
Richard Hughes
5e52b3527f trivial: Add two missing files to the gtkdoc manifest 2021-11-23 09:50:19 +00:00
Richard Hughes
b2ad10a818 trivial: Work around two false positives when compiling with gcc -Os 2021-11-22 15:19:38 +00:00
Richard Hughes
c92f352393 intel-spi: Use lowercase flag names
This was missed in the addition of 40c7f7ba21
2021-11-19 12:25:06 +00:00
Richard Hughes
6ac7b93d70 trivial: Remove the libelf dep for CI
Fixes https://github.com/fwupd/fwupd/issues/4009
2021-11-19 11:03:24 +00:00
Richard Hughes
a4c79aac3a trivial: Fix the example spec file to work on s390x 2021-11-19 11:03:24 +00:00
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