Richard Hughes
59b6b6d2c5
uefi-dbx: Fix a critical warning when parsing invalid firmware
2021-01-05 15:59:30 +00:00
Richard Hughes
09f8a549c9
hailuck: Fix a critical warning when parsing invalid firmware
2021-01-05 15:59:30 +00:00
Richard Hughes
f68107e609
ccgx: Fix a critical warning when parsing invalid firmware
2021-01-05 15:59:30 +00:00
Richard Hughes
ebb10a5c4a
trivial: Fix a tiny memory leak when using fu_plugin_add_firmware_gtype()
2021-01-05 15:59:30 +00:00
Richard Hughes
81e7da2610
trivial: Update fuzzing instructions to not use libcurl
2021-01-05 15:59:30 +00:00
Richard Hughes
6b8d57b0c5
trivial: Fix building on older meson
2021-01-05 15:38:54 +00:00
Richard Hughes
ee2e2c3674
uefi: Rename to uefi-capsule
...
Rename the plugin to make it clearer of the scope.
Based on a patch from Mario Limonciello <mario.limonciello@dell.com>
2021-01-05 15:31:22 +00:00
Richard Hughes
364e2685ca
Do not show unprintable chars from invalid firmware in the logs
2021-01-05 15:15:07 +00:00
Richard Hughes
fcb5667d79
libfwupdplugin: Subclass FuFirmware in FuEfiSignatureList
...
This allows us to get fuzzing support 'for free' and also simplifies the code.
2021-01-05 14:45:31 +00:00
Richard Hughes
ac927583a3
libfwupdplugin: Allow getting images by checksum value
2021-01-05 14:45:31 +00:00
Richard Hughes
eddaed0c11
Allow specifying more than one VendorID for a device
...
Asking the user for the UID mapping isn't working very well, as it requires lots
of manual handholding. It also doesn't work very well when the device vendor
does not actually have a PCI ID or if the vendor has split into two entities.
Just use the OUI address as an additional VendorID and match any of the device
IDs against any of the metadata-supplied values.
2021-01-04 22:30:20 +00:00
Richard Hughes
3252573ac7
synaptics-prometheus: Fix flashing a fingerprint reader that is in use
...
The fprint daemon only keeps the device open for 5 seconds and then releases it,
which seems like a small window to hit.
But! We're asking the user to authenticate with the same device we're about to
upgrade so a different part of the stack woke up the hardware just before we're
about to deploy an update onto it.
Just retry a few times to make sure the device is idle. Use a flag to prevent
accidentally causing regressions in other plugins.
Fixes https://github.com/fwupd/fwupd/issues/2650
2021-01-04 21:52:10 +00:00
Jimmy Yu
23cd466ef1
Add plugin to update PixArt RF devices
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2021-01-04 17:20:13 +00:00
Richard Hughes
64e9f6bd92
trivial: Fix up some NULL/FALSE confusion
2021-01-04 16:32:50 +00:00
Richard Hughes
f9fe19f7f6
Make libcurl optional for fuzzing
...
For fuzzing we want to exclude libcurl support as it depends on other very heavy
libraries like OpenSSL or libtasn which make the fuzzing binary much larger if
linked statically.
2021-01-04 16:22:36 +00:00
Richard Hughes
c2a0259fe6
Remove now-unused synaptics_rmi_dump fuzzing target generator
...
We can implement firmware->build and firmware->write and then use the shared
firmware.builder.xml functionality.
2021-01-04 15:42:17 +00:00
Richard Hughes
9f71fe3dc9
Make the 'id' for fu_plugin_add_firmware_gtype() optional
...
We can work out the correct value automatically in all cases but one, and it's
less for the plugin author to get wrong...
2021-01-04 15:27:10 +00:00
Richard Hughes
2e5c1d15bc
Do not hardcode building shared libraries
...
Respect the -Ddefault_library meson define.
2021-01-04 15:26:28 +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
a2abc42760
libfwupdplugin: Use G_GNUC_WARN_UNUSED_RESULT for methods that should be checked
2021-01-04 15:24:35 +00:00
Richard Hughes
7d5a4f391b
libfwupd: Use G_GNUC_WARN_UNUSED_RESULT for methods that should be checked
2021-01-04 15:24:35 +00:00
Richard Hughes
96ec0198e5
hailuck: trivial: Fix the GType name
...
The vendor is Hailuck as in one word, not Hai Luck.
2021-01-03 21:07:44 +00:00
RickyWu
9ce0922448
plugins: rts54hub: add Lenovo HotRod VID/PID
...
Signed-off-by: RickyWu <ricky_wu@realtek.com>
2020-12-31 09:18:46 +00:00
jingle.wu
6f8269fe0f
elantp: Add new HWID for Lenovo X13 Gen 2.
2020-12-31 06:38:34 +00:00
Ricky Wu
f3510f56b2
plugins: rts54hid fix get report index error
...
fixed rts54hid get report index error
Signed-off-by: Ricky Wu <Ricky_wu@realtek.com>
2020-12-23 09:33:35 +00:00
Jingle Wu
fed9f56da8
elantp: Add new HWID for Lenovo X13 Yoga Gen 2.
2020-12-23 07:37:22 +00:00
Richard Hughes
3dc49c21b5
dfu: If no DNLOAD timeout is set assume a default value
...
This is probably a case where the device does not adhere to the specification.
Some hardware may be deliberately setting DNLOAD timeout to 0ms, and this patch
will make each request 5ms slower. This is probably a good tradeoff for having
most hardware 'just work' without a quirk entry.
Based on a patch by Zack Lee Yi Wei <zack_lee@chicony.com>, many thanks.
2020-12-21 13:11:14 +00:00
Richard Hughes
c32d14ebad
dfu: Only wait for DFU_DNBUSY for 120 seconds
2020-12-21 13:11:14 +00:00
Richard Hughes
b8246a6cce
dfu: Retry the GET_STATUS is DNLOAD_BUSY is returned
...
Perhaps fixes https://github.com/fwupd/fwupd/discussions/2687
2020-12-21 13:11:14 +00:00
Richard Hughes
2b850b96c2
trivial: post release version bump
2020-12-16 13:16:36 +00:00
Richard Hughes
32d36a0bf5
Release fwupd 1.5.4
2020-12-16 12:52:28 +00:00
Mario Limonciello
ed4e9123c6
trivial: libfwupdplugin: don't fail to set up bwrap if /lib64 doesn't exist
...
Fixes : #2690
2020-12-16 07:56:09 +00:00
Richard Hughes
9d20bf9212
Do not trust the Block.HintSystem boolean for ESP filtering
...
Instead use it for preferential selection. If there is none it's okay, but if
there are 3 pick the one with the flag.
Fixes https://github.com/fwupd/fwupd/issues/2676
2020-12-15 15:42:13 +00:00
Richard Hughes
f99dc76cfe
trivial: Actually check if __get_cpuid_count exists before using cpuid.h
2020-12-15 12:21:32 +00:00
Richard Hughes
9619514508
trivial: One more <string.h> missing include
2020-12-15 10:02:59 +00:00
Richard Hughes
e6dea87cb0
dfu: Use the standard debugging helpers
2020-12-15 09:36:41 +00:00
Richard Hughes
93867eda8e
Allow linking with the CXX linker
...
This is required by oss-fuzz, for non-obvious reasons!
2020-12-14 20:34:20 +00:00
Richard Hughes
e3fb2e45cd
trivial: Fix two more missing <string.h> instances
2020-12-14 20:24:04 +00:00
Richard Hughes
4ab347ec78
trivial: Do not use g_file_load_bytes() in the self tests
...
This is not available in older GLib versions.
2020-12-14 20:24:01 +00:00
Mario Limonciello
a7d1530385
fu-util: Add a new --no-remote-check to ignore checking for download remotes
...
This fixes the overloaded `--no-metadata-check` that was previously
present from being used in multiple instances.
2020-12-14 12:52:38 -06:00
Mario Limonciello
89a2f190b6
trivial: fwupd-refresh: don't add --no-metadata-check
...
This is implied because the service is started non-interactively
by systemd.
2020-12-14 12:52:38 -06:00
Richard Hughes
c0d4c09a02
Lower libcurl requirement further still
...
This allows us to build on Ubuntu 16.04!
2020-12-14 16:50:30 +00:00
Richard Hughes
a14de30153
trivial: Require <string.h> for strlen() and memcpy()
2020-12-14 16:49:03 +00:00
Richard Hughes
3a0ee309d5
trivial: Fix build warning when compiling without systemd
2020-12-14 16:29:39 +00:00
Richard Hughes
db8533f743
trivial: Don't accidentally depend on GLib 2.54.3
...
None of these branches are important enough to provide fallbacks for.
2020-12-14 15:33:00 +00:00
Richard Hughes
68f565c441
Don't assume we have memfd_create()
2020-12-14 13:09:47 +00:00
Richard Hughes
83a2b56044
trivial: Fix compiling when using -Dtests=false
2020-12-14 11:34:43 +00:00
Richard Hughes
e5074cdbbb
trivial: Fix compiling without GUdev
2020-12-14 11:34:43 +00:00
Richard Hughes
39e391e046
Fix compile warnings when using -Db_sanitize=undefined
2020-12-14 08:33:41 +00:00
Piotr Drąg
dc5c3fef29
Update POTFILES.in
2020-12-12 12:36:16 +00:00