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
Richard Hughes
c0fe556350
Add more common vfuncs to FuDevice
...
This allows us to abstract out common code for plugins not using FuUsbDevice.
2018-08-22 13:32:29 +01:00
Mario Limonciello
e3f581297f
upower: Allow forcing installation even if no AC power is applied
2018-08-21 13:49:38 -05:00
Mario Limonciello
e3b1a3f558
Plumb through support to set FwupdInstallFlags for update_prepare/update_cleanup
...
This will be used by other future commits.
2018-08-21 13:49:38 -05:00
Richard Hughes
898fc80fde
Allow updating just one specific device from the command line
2018-08-21 12:21:50 +01:00
Mario Limonciello
f00ca2a8e0
fu-util: When processing "install" command don't try to show current_release
...
The frontend was never notified of the release (and didn't parse the CAB) so
it doesn't know at this time what the version of the release is and
so this shows a NULL assertion at the time.
2018-08-21 10:06:27 +01:00
Richard Hughes
0971192575
trivial: Remove duplicate dependency() for json-glib
2018-08-21 09:43:08 +01:00
Mario Limonciello
25b49b6a6f
uefi: Add 'autofs' to supported filesystems ( Closes : #660 )
...
systemd-automount will unmount the ESP when not in use for some
people. This causes automatic ESP detection to fail.
In this case the ESP will need to be added to the conf file and
then this commit will let it keep working.
2018-08-20 07:44:17 -05:00
Richard Hughes
7132122387
Implement the systemd recommendations for offline updates
...
See https://www.freedesktop.org/software/systemd/man/systemd.offline-updates.html
for details.
Reported by Hans de Goede <hdegoede@redhat.com>, many thanks.
2018-08-20 09:58:28 +01:00
Mario Limonciello
3d62c8f8f9
trivial: debian: Pass -a into dh_missing ( Closes : #906357 )
...
dpkg-buildpackage -A does the architecture independent builds and
is failing due to mistakingly seeing a file that is not installed.
2018-08-17 11:58:47 -05:00
Mario Limonciello
669d4382a0
meson: Detect location of python3 interpreter
...
This fixes building UEFI labels on the snap build.
2018-08-16 13:37:54 -05:00