Richard Hughes
96e6783982
trivial: Fix potential compile failures for high -j values
2019-02-01 16:52:16 +00:00
Mario Limonciello
53ce25d985
Add support to call composite prepare and cleanup using fwupdtool
...
Two new arguments added to fwupdtool: `--prepare` and `--cleanup`
They are used only with the `install-blob` command
This makes sure that devices can get rebooted in dell-dock even if using
fwupdtool to install a single blob.
Signed-off-by: Richard Hughes <richard@hughsie.com>
2019-02-01 16:39:08 +00:00
Richard Hughes
1e07ec95b6
uefi: Disable -Wno-address-of-packed-member
...
Unaligned reads don't really matter on all the architectures the EFI binary is
being built for.
2019-02-01 16:38:14 +00:00
Richard Hughes
c6b94791ec
uefi: Don't unconditionally enable Werror for the EFI binary
2019-02-01 16:38:14 +00:00
Richard Hughes
a039e72363
Disable -Wno-address-of-packed-member
...
It's incompatible with g_autoptr(), which is probably unintentional.
2019-02-01 16:38:14 +00:00
Richard Hughes
575eb71efc
trivial: post release version bump
2019-02-01 14:31:46 +00:00
Richard Hughes
8ece8874b5
Release fwupd 1.2.4
2019-02-01 14:28:36 +00:00
Richard Hughes
7ccba7afba
Remove the autogenerated headers in the gettext files
...
These change every release as we're importing from Transifex. They're not
required, so strip them out using a small python script.
2019-02-01 14:25:26 +00:00
Richard Hughes
0a26551bf3
ata: Default to the non-activation 0xE subcommand
...
During download and activation we have to reset the drive to apply the new
firmware. If the kernel gets an unexpected ATA reset then it might panic.
Default to activating the command on the next drive power-up to be safe.
Many thanks to the Dell storage team for the advice.
2019-02-01 06:13:38 -06:00
Aleksander Morgado
0f0da353c2
fastboot: Use a much longer timeout as the removal delay
...
A device that has gone through a fastboot update may need more than
the previous default of 10s to come back up. Just use a much longer
value to make sure it's detected properly.
Signed-off-by: Richard Hughes <richard@hughsie.com>
2019-02-01 10:26:43 +00:00
Aleksander Morgado
0de532b0b0
trivial: Allow iterating over the contents of an archive
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2019-02-01 10:25:20 +00:00
Mario Limonciello
9b31e6f33a
fu-progressbar: be more quiet when running non-interactive
...
If fwupdmgr or fwupdtool are scripted all the erasing of lines and
progressbars are much less useful.
2019-01-31 22:40:50 +00:00
Mario Limonciello
303c4f0f90
trivial: upower: correct a logic error from ed021ab
...
When unable to read battery value this should return FALSE to indicate
AC power.
2019-01-31 14:56:08 -06:00
Mario Limonciello
7a3df4bb07
fu-tool: Show UpdateMessage if applicable for install command
...
When calling with a CAB as an install argument, this needs to be
manually populated since the release won't be built.
2019-01-31 13:54:01 -06:00
Mario Limonciello
1d26689b2f
trivial: dell-dock: mirror update status from passive flow
...
If fwupd is restarted multiple times before dock is unplugged, don't
let any devices update if we can avoid it.
2019-01-31 10:53:54 -06:00
Mario Limonciello
ead0deaa25
trivial: dell-dock: enable passive flow on all EC23+
...
The feature did land in EC23 and testing looks positive.
2019-01-31 10:53:54 -06:00
Richard Hughes
206b70120d
dfu: Simplify the SREC parser to avoid a crash with an invalid file
...
Splitting the file into lines does increase memory usage, but allows us to use
a much simpler parser design. This is just like we fixed IHEX a few weeks ago.
2019-01-31 16:05:34 +00:00
Richard Hughes
ccc79c9fbc
trivial: Split out strnsplit for future use
2019-01-31 16:05:34 +00:00
Richard Hughes
c1fad937d8
wacom-raw: Use the correct error codes when the panel is not supported
...
Otherwise, we get a nasty red console warning when plugging in a *USB* panel.
2019-01-31 11:55:48 +00:00
Richard Hughes
a3b13046c2
wacom-usb: Add some more information to the README
2019-01-31 11:55:12 +00:00
Mario Limonciello
19968a756d
fu-keyring-utils: Don't fail missing PKI directory when compiled with GPG/PKCS7
...
This directory won't be installed when compiled without those.
2019-01-30 16:29:17 -06:00
Mario Limonciello
769f990cf6
trivial: dell: filter another dock SKU from this plugin
...
Prevents showing errors in the logs
2019-01-30 11:00:45 -06:00
Mario Limonciello
423dde520c
dell: Check that the flash interface command is available
...
This prevents the kernel showing errors when running on systems
without this command.
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=202259
2019-01-30 11:00:45 -06:00
Richard Hughes
52b9800744
wacom-usb: Fix the plugin name to allow devices to be updated
2019-01-30 13:09:54 +00:00
Richard Hughes
b9b6834f54
trivial: Add FuFastbootDeviceReadFlags to fu_fastboot_device_cmd()
2019-01-30 12:14:17 +00:00
Aleksander Morgado
046c84b5b3
fastboot: flash the partition after downloading the file
2019-01-30 12:14:17 +00:00
Richard Hughes
44ce5aeae4
uefi: Add a quirk to use the legacy bootmgr description
...
Some hardware from Lenovo deduplicates UEFI Boot entries, and uses the old
string 'Linux-Firmware-Updater' to avoid removing the firmware update entry.
Although this is forbidden in the UEFI specification we shouldn't break
firmware updates from old firmware versions.
Provide a quirk for this, and automatically whitelist anything with the LENOVO
SMBIOS Manufacturer.
2019-01-30 12:13:39 +00:00
Richard Hughes
2a77afcd5c
trivial: Do not propagate UNKNOWN from FuDevice->FuEngine->FuMain
2019-01-30 06:10:36 -06:00
Richard Hughes
96019e815c
trivial: Allow reflashing the same device more than once without restarting
...
Set the device status back to the default when completed flashing so that we
don't ignore the status change for the subsequent flash.
2019-01-30 06:10:36 -06:00
Richard Hughes
dd0264d0ef
ata: Mark all devices as needing a reboot
...
Although not strictly required, I would feel a lot more warm and fuzzy knowing
the drives are running the new firmware ASAP.
2019-01-30 06:10:36 -06:00
Richard Hughes
0bf8ee810b
ata: Add a new plugin to upgrade firmware on ATA/ATAPI hardware
...
Some of the ATA12 fixup code is by Mark Lord, taken from the hdparm project.
Fixes: https://github.com/hughsie/fwupd/issues/946
2019-01-29 22:28:09 +00:00
Richard Hughes
4fef28d0ac
trivial: Add the missing protocol IDs to the plugin READMEs
2019-01-29 22:28:09 +00:00
Richard Hughes
62eae7a981
trivial: Show the possible subsystems when failing to set the physical ID
...
This makes new plugin development much easier.
2019-01-29 22:28:09 +00:00
Richard Hughes
bdd17b6ffc
trivial: Use DEVPATH for the physical ID when using scsi devices
2019-01-29 22:28:09 +00:00
Richard Hughes
f6838c738a
trivial: Add fu_udev_device_get_slot_depth()
...
We'll need this for another plugin soon.
2019-01-29 22:28:09 +00:00
Richard Hughes
a08891b6cb
trivial: Do not use the testing remote for the Fedora CI
2019-01-29 22:28:09 +00:00
Richard Hughes
82f7499faa
udev-device: Add a utility function for debugging
...
I normally have to remember this trick every time I write a new plugin, so
include this in the common code to be called by plugins as required.
2019-01-29 22:28:09 +00:00
Richard Hughes
57d8afd659
udev-device: Set the firmware revision automatically
2019-01-29 22:28:09 +00:00
Richard Hughes
297e1e8971
udev-device: Set the serial number automatically
2019-01-29 22:28:09 +00:00
Richard Hughes
caadb7b66a
udev-device: Fall back to non-database model and vendor values
2019-01-29 22:28:09 +00:00
Richard Hughes
fc4fbfc98f
udev-device: Fix critical warning if the device has no parent
2019-01-29 22:28:09 +00:00
Mario Limonciello
5502cd5689
dell-dock: Add support for a passive flow
...
This behavior will prevent the dock from performing most resets until
it has been unplugged from a host system.
This significantly speeds up the perceived update duaration and prevents
data loss during update.
It's not confirmed whether EC23 or later EC will enable it.
* So only enable by a custom flag until this is confirmed.
* Custom flag will be dropped when included into stable EC release.
This functionality also relies upon the CAB file providing a message warning
user that the dock might not be usable after unplugging for up to 1 minute.
2019-01-29 15:51:12 -06:00
Mario Limonciello
32241f4256
Add support for an UpdateMessage
and display it in tools
...
The idea is that if the user should know something about the device update
"after" it's succesfully completed then the plugin can set `UpdateMessage`
for the device and a client can show it.
An example would be a device that doesn't reboot on its own and the user
needs to power cycle it manually.
2019-01-29 13:59:07 -06:00
Mario Limonciello
1e35e4c22d
fu-tool: Port the get-updates
command over
...
Now that there is actually support to load non-static information
(at least from fwupd perspective) it makes sense to support this
command in both tools.
2019-01-29 09:21:54 -06:00
Mario Limonciello
4f24d0bae3
When using directory
remote type automatically generate metadata
...
The CAB files will be parsed upon `fwupd`/`fwupdtool` startup and
loaded into the daemon.
2019-01-29 09:21:54 -06:00
Mario Limonciello
706ab43898
libfwupd: Add support for new remote type "directory"
...
This remote will be used for automatically building metadata based
on files in a directory.
2019-01-29 09:21:54 -06:00
Richard Hughes
fd826c10a0
trivial: Print some debugging when ignoring a remote path
2019-01-29 09:21:54 -06:00
Richard Hughes
09cbacd771
trivial: Move Fedora CI to f29
...
We'll need this for some updated deps soon.
2019-01-28 15:42:30 +00:00
Richard Hughes
0af196151d
Ensure cabinet archives always have a container checksum
...
This means the correct hash is shown when using `fwupdtool get-details` and
will be useful for future functionality.
2019-01-28 13:00:30 +00:00
Richard Hughes
7185828163
Add support for a per-release source and details URL
...
The source URL allows us to comply with our various obligations when shipping
firmware built from GPL licensed sources. The details URL allows vendors to
include a link to a full HTML details page about the specific release.
2019-01-28 12:59:39 +00:00