Richard Hughes
570f839483
trivial: Fix a tiny memory leak in the self tests
2018-08-28 20:40:50 +01:00
Mario Limonciello
7555738827
synapticsmst: Set parentage for Dell WD15/TB16/TB18 docks through quirks
2018-08-28 18:30:00 +01:00
Mario Limonciello
926da40a88
thunderbolt: Move setting parentage of TB16 into quirks
2018-08-28 18:30:00 +01:00
Richard Hughes
39a5228331
trivial: Optimize adding DFU devices we know about
...
Explicitly mark known-supported devices in the quirk file so that we don't have
to call fu_plugin_usb_device_added() on all USB plugins.
2018-08-28 18:30:00 +01:00
Richard Hughes
a417d6c82a
trivial: Allow setting the firmware min and max sizes from quirk files
2018-08-28 18:30:00 +01:00
Richard Hughes
a62618303f
trivial: Set the quirks instance on the unifying context object
...
This allows us to match quirks on added GUIDs.
2018-08-28 18:30:00 +01:00
Richard Hughes
bda4d81d3d
trivial: Allow plugins to add virtual children from quirk files
...
The example here would be adding virtual i2c devices attached to an existing
USB hub device.
2018-08-28 18:30:00 +01:00
Richard Hughes
96fa7d9f49
trivial: Allow devices to set the parent GUID from a quirk entry
2018-08-28 18:30:00 +01:00
Richard Hughes
6dec401a67
Store the DeviceInstanceId as a GUID in the quirk database
...
This allows us to match non-DeviceID GUIDs, and also GUIDs we don't know how to
generate.
To make this fully useful, search for device quirks when GUIDs are added.
2018-08-28 18:30:00 +01:00
Mario Limonciello
30407537ff
trivial: debian: Add Recommends for bolt
...
Newer versions of bolt provide a superior experience when using
Thunderbolt force power rather than directly using the kernel.
Pull bolt in when installing fwupd to take advantage of this.
2018-08-28 10:38:00 -05:00
Mario Limonciello
c07ce5b488
thunderbolt-power: Use bolt force power API if available
...
This is new support for bolt supported by
https://gitlab.freedesktop.org/bolt/bolt/merge_requests/101
2018-08-28 09:47:56 -05:00
Richard Hughes
201d0cce54
trivial: Further simplify the fake DFU runtime logic
2018-08-28 15:33:43 +01:00
Richard Hughes
245b595f45
flashrom: Do not use no-longer-exported symbols
...
This was compiling and passing CI as the un-implemented legacy functionality
was still exported in the header.
Remove the prototypes for the missing symbols and fix up the plugin.
2018-08-28 15:26:34 +01:00
Richard Hughes
c1163ba10d
trivial: Fix up the quirk documentation now we use DeviceInstanceId
2018-08-28 15:19:31 +01:00
Richard Hughes
a0d7977968
dfu: Check the device state before assuming a fake runtime
...
If the device is not in APP_IDLE this doesn't make any sense.
2018-08-28 12:16:30 +01:00
Richard Hughes
04e321274a
dfu: Never add a fake DFU runtime when targets already exist
2018-08-28 12:16:26 +01:00
Richard Hughes
73bf2337c1
trivial: Add fu_common_strtoull() as a shared function
2018-08-28 09:41:10 +01:00
Richard Hughes
c16554252b
flashrom: Add a plugin for updating using the flashrom command line tool
2018-08-28 09:25:36 +01:00
Richard Hughes
e0fef5d1c4
trivial: Fix a potential invalid read when merging quirks
2018-08-28 09:13:41 +01:00
Richard Hughes
e274f6654b
superio: Add support for the W740SU
...
From Thomas Krug, many thanks.
2018-08-27 09:32:49 +01:00
Richard Hughes
6bf9879189
trivial: Use the BaseboardProduct DMI match for superio
...
This will match more EC hardware that uses a customized BIOS.
2018-08-27 09:32:05 +01:00
Richard Hughes
cdb01590e0
nvme: Add a new plugin to update NVMe hardware
2018-08-26 19:42:28 +01:00
Richard Hughes
dd5b43f63b
udev: Use the new FuUdevDevice abstraction
2018-08-26 19:42:28 +01:00
Richard Hughes
9d6e0e743b
Move the GUdevClient to the core daemon
...
Allowing plugins to 'register' for different udev subsystems in _init() allows
us to move the client to the engine, reducing the number of wakeups considerably
for each device event. It also will reduce the amount of boilerplate code in
each plugin that uses GUdev, much like we have done for GUsb.
2018-08-26 19:42:28 +01:00
Richard Hughes
dba160be42
trivial: Allow getting the quirks of a FuUdevDevice
2018-08-26 19:42:28 +01:00
Richard Hughes
0216d83b71
Add FuUdevDevice as a derivable helper object
...
There are currently three plugins that use GUdev rather than libusb, and there
are several more in the works. Add a helper object so we can make the plugins
smaller and simpler, much like we already do with FuUsbDevice.
2018-08-26 19:42:28 +01:00
Richard Hughes
bb764e99a0
trivial: Add fu_device_list_get_by_platform_id()
2018-08-26 19:38:58 +01:00
Richard Hughes
95227a919d
trivial: Move gudev to the core plugin deps
2018-08-26 19:38:58 +01:00
Richard Hughes
07ed2f00fa
trivial: Use the new subclassed device methods
...
This just reduces our API surface a little, no behaviour change.
2018-08-24 21:48:59 +01:00
Richard Hughes
b37d54e22d
trivial: Link in FuChunk when using fwupdtool
2018-08-24 21:39:15 +01:00
Richard Hughes
16e85aa8cf
superio: Add a new plugin to enumerate EC firmware
2018-08-24 20:37:27 +01:00
Richard Hughes
98f6757fbb
trivial: Add an example key for a USB device
2018-08-24 20:22:05 +01:00
Richard Hughes
1bf7ff9966
trivial: Fix a debugging typo
2018-08-24 20:21:51 +01:00
Mario Limonciello
7d35278cb6
fu-install-task: Don't fail update installation if compiled without GPG/PKCS7
...
Currently if you download a CAB file from LVFS and try to install it
on a daemon compiled without GPG it will fail to install since LVFS has signed
it. You had to make an intentional decision to disable GPG.
Allow this scenario to work just as if the CAB file were unsigned, but save
a warning in the logs that it happened.
2018-08-24 19:11:00 +01:00
Richard Hughes
6d794e2de6
trivial: Fix linking when using Ubuntu 18.04
...
Apparently the linker complains when dlopen'ing a plugin that's linked against
the libfwupdprivate library the daemon is using. This only seems to happen when
using distro packages...
2018-08-23 17:29:31 +01:00
Mario Limonciello
00b8f150dd
trivial: debian: disable test suite if fwupd is currently installed
2018-08-23 10:58:50 -05:00
Richard Hughes
29129ed4f4
uefi: Allow upgrades using a self-signed fwupd.efi binary
...
This doesn't require shim, so for this uncommon case add a configure option.
Fixes https://github.com/hughsie/fwupd/issues/669
2018-08-23 14:30:04 +01:00
Richard Hughes
ddb3e20d29
trivial: Fix a few new FALSE/NULL confusions
2018-08-23 11:30:18 +01:00
Richard Hughes
8fe7cddc74
trivial: Add helper function for getting an integer quirk value
2018-08-23 10:09:45 +01:00
Richard Hughes
2d9ba8d1a3
trivial: Don't include the default GUID in the device ID if NULL
2018-08-23 09:47:28 +01:00
Richard Hughes
9d72954cc1
trivial: Fix linking problems with the recent FuChunk move
2018-08-23 09:11:15 +01:00
Mario Limonciello
840920e928
trivial: debian: Add some signing bits that were missed ( Closes : #906599 )
2018-08-22 23:09:45 -05:00
Mario Limonciello
df60f69814
uefi: Add special handling for /efi ( Closes #680 )
...
This is a similar problem to #627 (which was fixed by 9bdbbc5ca
).
Add special handling to allow writing to /efi/EFI
2018-08-22 16:43:20 -05:00
Mario Limonciello
a913bcd271
fixups
2018-08-22 14:46:11 -05:00
Mario Limonciello
09774dd90b
fu-progressbar: Show a time estimate after update has started
2018-08-22 14:46:11 -05:00
Thomas Hindoe Paaboel Andersen
a09f2212ec
wacomhid: fix allow trunc flag check
...
The size check would always short circuit as
FU_WAC_DEVICE_FEATURE_FLAG_ALLOW_TRUNC == 0
is never true. The error message was thus never
written even if a difference was found.
With this patch we check if ALLOW_TRUNC is set in flags
instead, and only write the error if it is not.
2018-08-22 19:53:28 +01:00
Thomas Hindoe Paaboel Andersen
24c6eb758f
unifying: remove duplicate && line
2018-08-22 19:53:28 +01:00
Richard Hughes
f22bd6e424
trivial: Move out the byte-array chunking to libfwupdprivate
...
Five plugins (soon to be 7) are linking to the DFU plugin just for this simple
segment-aware chunking functionality. Move this into common code to make
building simpler.
2018-08-22 15:14:12 +01:00
Richard Hughes
61eb20d194
trivial: Fix a gtk-doc typo
2018-08-22 14:03:23 +01:00
Richard Hughes
54879c6b9a
altos: Use the new FuDevice:probe vfunc
2018-08-22 13:32:29 +01:00